pub enum Value {
Function {
ty: TypeId,
declaration: bool,
attributes: Option<usize>,
properties: GlobalProperties,
calling_conv: u64,
gc: Option<String>,
},
Global {
ty: TypeId,
value_ty: TypeId,
init: Option<ValueId>,
constant: bool,
address_space: u32,
properties: GlobalProperties,
thread_local: u8,
externally_initialized: bool,
},
Constant(Constant),
Local,
}Expand description
A value the module numbers.
Variants§
Function
A function, defined or declared.
Fields
§
attributes: Option<usize>The attribute list it names (an index into Module::attribute_lists), where it names one.
§
properties: GlobalPropertiesIts linkage and the other properties of its record.
Global
A global variable.
Fields
§
address_space: u32LLVM’s address space: 0 the default, 3 group shared. No other space occurs in the programs of the games read.
§
properties: GlobalPropertiesIts linkage and the other properties of its record.
Constant(Constant)
A constant.
Local
A function argument or an instruction’s result.
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Forget for Value
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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