Function get_value_kind

Source
pub fn get_value_kind(val: &ValueRef) -> ValueKind
Expand description

Returns the kind of the given LLVM value (Obtain the enumerated type of the Value instance.).

§Details

Retrieves the kind of value represented by this LLVM value.

This function wraps the LLVMGetValueKind function from the LLVM core library. It returns a ValueKind enumeration that identifies the specific kind of the value, such as whether it is an instruction, a constant, a global variable, a function, etc. This is useful for understanding what kind of entity a value represents within the LLVM IR.

§Returns

Returns a ValueKind enumeration that represents the kind of the value.