pub struct Global(/* private fields */);
Implementations§
Source§impl Global
impl Global
pub fn new( t: &GlobalType, sym_name: &SymbolName, visibility: SymbolVisibilityKind, init: Option<&InitialValue>, is_const: Option<&IsConstant>, align: Option<&Alignment>, loc: &Location, ) -> Self
pub fn from(op: MlirOperation) -> Self
pub fn get(&self) -> &MlirOperation
pub fn get_mut(&mut self) -> &mut MlirOperation
pub fn get_alignment(&self) -> Option<Alignment>
pub fn get_constant_attribute(&self) -> Option<IsConstant>
pub fn get_context(&self) -> Context
pub fn get_global_ref(&self, context: &Context) -> GlobalRef
pub fn get_initial_value(&self) -> Option<InitialValue>
pub fn get_result(&self) -> Value
pub fn get_symbol_name(&self) -> SymbolName
pub fn get_symbol_ref(&self) -> SymbolRef
pub fn get_symbol_visibility(&self) -> SymbolVisibility
pub fn get_type_attribute(&self) -> GlobalType
pub fn is_constant(&self) -> bool
pub fn is_declaration(&self) -> bool
pub fn is_initialized(&self) -> bool
Trait Implementations§
Source§impl IOperation for Global
impl IOperation for Global
fn get(&self) -> &MlirOperation
fn get_dialect(&self) -> Dialect
fn get_effects(&self) -> MemoryEffectList
fn get_interfaces(&self) -> &'static [Interface]
fn get_mut(&mut self) -> &mut MlirOperation
fn get_name(&self) -> &'static str
fn get_op(&self) -> OpRef
fn get_traits(&self) -> &'static [Trait]
fn as_operation(&self) -> Operation ⓘ
Auto Trait Implementations§
impl Freeze for Global
impl RefUnwindSafe for Global
impl !Send for Global
impl !Sync for Global
impl Unpin for Global
impl UnwindSafe for Global
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