pub struct MetadataOperation<'c> { /* private fields */ }
Expand description
A metadata
operation. LLVM dialect metadata..
llvm.metadata op defines one or more metadata nodes.
Example:
llvm.metadata @metadata {
llvm.access_group @group1
llvm.access_group @group2
}
Implementations§
source§impl<'c> MetadataOperation<'c>
impl<'c> MetadataOperation<'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>
) -> MetadataOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> MetadataOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn body(&self) -> Result<RegionRef<'c, '_>, Error>
pub fn sym_name(&self) -> Result<StringAttribute<'c>, Error>
pub fn set_sym_name(&mut self, value: StringAttribute<'c>)
Trait Implementations§
source§impl<'c> From<MetadataOperation<'c>> for Operation<'c>
impl<'c> From<MetadataOperation<'c>> for Operation<'c>
source§fn from(operation: MetadataOperation<'c>) -> Self
fn from(operation: MetadataOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for MetadataOperation<'c>
impl<'c> !Send for MetadataOperation<'c>
impl<'c> !Sync for MetadataOperation<'c>
impl<'c> Unpin for MetadataOperation<'c>
impl<'c> UnwindSafe for MetadataOperation<'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