Struct melior::dialect::ods::pdl_interp::CheckOperationNameOperation
source · pub struct CheckOperationNameOperation<'c> { /* private fields */ }
Expand description
A check_operation_name
operation. Check the OperationName of an Operation
.
pdl_interp.check_operation_name
operations compare the name of a given
operation with a known name. On success, this operation branches to the true
destination, otherwise the false destination is taken.
Example:
pdl_interp.check_operation_name of %op is "foo.op" -> ^matchDest, ^failureDest
Implementations§
source§impl<'c> CheckOperationNameOperation<'c>
impl<'c> CheckOperationNameOperation<'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>
) -> CheckOperationNameOperationBuilder<'c, Unset, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> CheckOperationNameOperationBuilder<'c, Unset, Unset, Unset, Unset>
Creates a builder.
pub fn input_op(&self) -> Result<Value<'c, '_>, Error>
pub fn true_dest(&self) -> Result<BlockRef<'c, '_>, Error>
pub fn false_dest(&self) -> Result<BlockRef<'c, '_>, Error>
pub fn _name(&self) -> Result<StringAttribute<'c>, Error>
pub fn set_name(&mut self, value: StringAttribute<'c>)
Trait Implementations§
source§impl<'c> From<CheckOperationNameOperation<'c>> for Operation<'c>
impl<'c> From<CheckOperationNameOperation<'c>> for Operation<'c>
source§fn from(operation: CheckOperationNameOperation<'c>) -> Self
fn from(operation: CheckOperationNameOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for CheckOperationNameOperation<'c>
impl<'c> !Send for CheckOperationNameOperation<'c>
impl<'c> !Sync for CheckOperationNameOperation<'c>
impl<'c> Unpin for CheckOperationNameOperation<'c>
impl<'c> UnwindSafe for CheckOperationNameOperation<'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