Struct melior::dialect::ods::pdl_interp::GetDefiningOperation
source · pub struct GetDefiningOperation<'c> { /* private fields */ }
Expand description
A get_defining_op
operation. Get the defining operation of a Value
.
pdl_interp.get_defining_op
operations try to get the defining operation
of a specific value or range of values. In the case of range, the defining
op of the first value is returned. If the value is not an operation result
or range of operand results, null is returned.
Example:
%op = pdl_interp.get_defining_op of %value : !pdl.value
Implementations§
source§impl<'c> GetDefiningOperation<'c>
impl<'c> GetDefiningOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> GetDefiningOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> GetDefiningOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn input_op(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn value(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<GetDefiningOperation<'c>> for Operation<'c>
impl<'c> From<GetDefiningOperation<'c>> for Operation<'c>
source§fn from(operation: GetDefiningOperation<'c>) -> Self
fn from(operation: GetDefiningOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for GetDefiningOperation<'c>
impl<'c> !Send for GetDefiningOperation<'c>
impl<'c> !Sync for GetDefiningOperation<'c>
impl<'c> Unpin for GetDefiningOperation<'c>
impl<'c> UnwindSafe for GetDefiningOperation<'c>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more