pub struct GetGlobalOperation<'c> { /* private fields */ }Expand description
A get_global operation. Get the memref pointing to a global variable.
The memref.get_global operation retrieves the memref pointing to a
named global variable. If the global variable is marked constant, writing
to the result memref (such as through a memref.store operation) is
undefined.
Example:
%x = memref.get_global @foo : memref<2xf32>Implementations§
Source§impl<'c> GetGlobalOperation<'c>
impl<'c> GetGlobalOperation<'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>,
) -> GetGlobalOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c>, ) -> GetGlobalOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn _name(&self) -> Result<FlatSymbolRefAttribute<'c>, Error>
pub fn set_name(&mut self, value: FlatSymbolRefAttribute<'c>)
Trait Implementations§
Source§impl<'c> Clone for GetGlobalOperation<'c>
impl<'c> Clone for GetGlobalOperation<'c>
Source§fn clone(&self) -> GetGlobalOperation<'c>
fn clone(&self) -> GetGlobalOperation<'c>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'c> Debug for GetGlobalOperation<'c>
impl<'c> Debug for GetGlobalOperation<'c>
Source§impl<'b> From<GetGlobalOperation<'b>> for MemRefDialectOperation<'b>
impl<'b> From<GetGlobalOperation<'b>> for MemRefDialectOperation<'b>
Source§fn from(op: GetGlobalOperation<'b>) -> Self
fn from(op: GetGlobalOperation<'b>) -> Self
Converts to this type from the input type.
Source§impl<'c> From<GetGlobalOperation<'c>> for Operation<'c>
impl<'c> From<GetGlobalOperation<'c>> for Operation<'c>
Source§fn from(operation: GetGlobalOperation<'c>) -> Self
fn from(operation: GetGlobalOperation<'c>) -> Self
Converts to this type from the input type.
Source§impl<'c> PartialEq for GetGlobalOperation<'c>
impl<'c> PartialEq for GetGlobalOperation<'c>
Source§impl<'c> TryFrom<Operation<'c>> for GetGlobalOperation<'c>
impl<'c> TryFrom<Operation<'c>> for GetGlobalOperation<'c>
impl<'c> Eq for GetGlobalOperation<'c>
impl<'c> StructuralPartialEq for GetGlobalOperation<'c>
Auto Trait Implementations§
impl<'c> Freeze for GetGlobalOperation<'c>
impl<'c> RefUnwindSafe for GetGlobalOperation<'c>
impl<'c> !Send for GetGlobalOperation<'c>
impl<'c> !Sync for GetGlobalOperation<'c>
impl<'c> Unpin for GetGlobalOperation<'c>
impl<'c> UnwindSafe for GetGlobalOperation<'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