pub enum LlvmValue {
Const(i64),
Float(f64),
Undef,
Null,
True_,
False_,
GlobalRef(String),
LocalRef(String),
ConstArray(LlvmType, Vec<LlvmValue>),
ConstStruct(Vec<LlvmValue>),
ZeroInitializer,
}Expand description
LLVM value (operand) representation.
Variants§
Const(i64)
Integer constant: 42
Float(f64)
Floating-point constant: 3.14
Undef
undef
Null
null
True_
true (i1 constant 1)
False_
false (i1 constant 0)
GlobalRef(String)
Global reference: @name
LocalRef(String)
Local register reference: %name
ConstArray(LlvmType, Vec<LlvmValue>)
Constant array: [i32 1, i32 2, ...]
ConstStruct(Vec<LlvmValue>)
Constant struct: { i32 1, ptr null }
ZeroInitializer
zeroinitializer
Trait Implementations§
impl StructuralPartialEq for LlvmValue
Auto Trait Implementations§
impl Freeze for LlvmValue
impl RefUnwindSafe for LlvmValue
impl Send for LlvmValue
impl Sync for LlvmValue
impl Unpin for LlvmValue
impl UnsafeUnpin for LlvmValue
impl UnwindSafe for LlvmValue
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