pub fn get_const_opcode(val: &ValueRef) -> Opcode
Expand description
Get the opcode for a constant value.
§Details
Retrieves the opcode of a constant expression.
This function wraps the LLVMGetConstOpcode
function from the LLVM core library, which returns
the opcode (operation code) for a constant expression. The opcode indicates the specific
operation that the constant expression represents, such as addition, multiplication, etc.
§Returns
Returns an Opcode
enum value that represents the opcode of the constant expression. The
Opcode
enum provides a Rust-friendly abstraction over the raw opcode value returned by
LLVM.