pub struct ApplyRegisteredPassOperation<'c> { /* private fields */ }
Expand description
An apply_registered_pass
operation. Applies the specified registered pass.
This transform applies the specified pass to the targeted ops. The name of the pass is specified as a string attribute, as set during pass registration. Optionally, pass options may be specified as a string attribute. The pass options syntax is identical to the one used with “mlir-opt”.
This transform consumes the target handle and produces a new handle that is mapped to the same op. Passes are not allowed to remove/modify the operation that they operate on, so the target op is guaranteed to still exist. The target handle is invalidated because a pass may arbitrarily modify the body of targeted ops.
Implementations§
source§impl<'c> ApplyRegisteredPassOperation<'c>
impl<'c> ApplyRegisteredPassOperation<'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>
) -> ApplyRegisteredPassOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> ApplyRegisteredPassOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn target(&self) -> Result<Value<'c, '_>, Error>
pub fn pass_name(&self) -> Result<StringAttribute<'c>, Error>
pub fn set_pass_name(&mut self, value: StringAttribute<'c>)
pub fn options(&self) -> Result<StringAttribute<'c>, Error>
pub fn set_options(&mut self, value: StringAttribute<'c>)
pub fn remove_options(&mut self) -> Result<(), Error>
Trait Implementations§
source§impl<'c> From<ApplyRegisteredPassOperation<'c>> for Operation<'c>
impl<'c> From<ApplyRegisteredPassOperation<'c>> for Operation<'c>
source§fn from(operation: ApplyRegisteredPassOperation<'c>) -> Self
fn from(operation: ApplyRegisteredPassOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ApplyRegisteredPassOperation<'c>
impl<'c> !Send for ApplyRegisteredPassOperation<'c>
impl<'c> !Sync for ApplyRegisteredPassOperation<'c>
impl<'c> Unpin for ApplyRegisteredPassOperation<'c>
impl<'c> UnwindSafe for ApplyRegisteredPassOperation<'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