pub enum ValueKind {
Show 27 variants
Argument,
BasicBlock,
MemoryUse,
MemoryDef,
MemoryPhi,
Function,
GlobalAlias,
GlobalIFunc,
GlobalVariable,
BlockAddress,
ConstantExpr,
ConstantArray,
ConstantStruct,
ConstantVector,
Undef,
ConstantAggregateZero,
ConstantDataArray,
ConstantDataVector,
ConstantInt,
ConstantFP,
ConstantPointerNull,
ConstantTokenNone,
MetadataAsValue,
InlineAsm,
Instruction,
Poison,
ConstantTargetNone,
}Expand description
Represents the different kinds of values in LLVM IR.
The ValueKind enum categorizes the various types of values that can exist within LLVM IR. Each variant
of this enum corresponds to a specific kind of value or entity in the LLVM IR, such as a function, global variable,
instruction, or constant. This enum is useful for identifying the type of a value when working with LLVM IR structures.
Variants§
Argument
BasicBlock
MemoryUse
MemoryDef
MemoryPhi
Function
GlobalAlias
GlobalIFunc
GlobalVariable
BlockAddress
ConstantExpr
ConstantArray
ConstantStruct
ConstantVector
Undef
ConstantAggregateZero
ConstantDataArray
ConstantDataVector
ConstantInt
ConstantFP
ConstantPointerNull
ConstantTokenNone
MetadataAsValue
InlineAsm
Instruction
Poison
ConstantTargetNone
Trait Implementations§
source§impl From<LLVMValueKind> for ValueKind
impl From<LLVMValueKind> for ValueKind
source§fn from(value: LLVMValueKind) -> Self
fn from(value: LLVMValueKind) -> Self
Converts to this type from the input type.
impl Copy for ValueKind
impl Eq for ValueKind
impl StructuralPartialEq for ValueKind
Auto Trait Implementations§
impl Freeze for ValueKind
impl RefUnwindSafe for ValueKind
impl Send for ValueKind
impl Sync for ValueKind
impl Unpin for ValueKind
impl UnwindSafe for ValueKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)