pub struct GlobalDtorsOperation<'c> { /* private fields */ }
Expand description
A mlir.global_dtors
operation. LLVM dialect global_dtors..
Specifies a list of destructor functions and priorities. The functions
referenced by this array will be called in descending order of priority (i.e.
highest first) when the module is unloaded. The order of functions with the
same priority is not defined. This operation is translated to LLVM’s
global_dtors global variable. The data
field present in LLVM’s
global_dtors variable is not modeled here.
Examples:
llvm.func @dtor() {
llvm.return
}
llvm.mlir.global_dtors {@dtor}
Implementations§
source§impl<'c> GlobalDtorsOperation<'c>
impl<'c> GlobalDtorsOperation<'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>
) -> GlobalDtorsOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> GlobalDtorsOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn dtors(&self) -> Result<ArrayAttribute<'c>, Error>
pub fn set_dtors(&mut self, value: ArrayAttribute<'c>)
pub fn priorities(&self) -> Result<ArrayAttribute<'c>, Error>
pub fn set_priorities(&mut self, value: ArrayAttribute<'c>)
Trait Implementations§
source§impl<'c> From<GlobalDtorsOperation<'c>> for Operation<'c>
impl<'c> From<GlobalDtorsOperation<'c>> for Operation<'c>
source§fn from(operation: GlobalDtorsOperation<'c>) -> Self
fn from(operation: GlobalDtorsOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for GlobalDtorsOperation<'c>
impl<'c> !Send for GlobalDtorsOperation<'c>
impl<'c> !Sync for GlobalDtorsOperation<'c>
impl<'c> Unpin for GlobalDtorsOperation<'c>
impl<'c> UnwindSafe for GlobalDtorsOperation<'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