Function get_num_operands

Source
pub fn get_num_operands(val: &ValueRef) -> i32
Expand description

Obtain the number of operands in a LLVM User value.

§Details

Retrieves the number of operands associated with a value in LLVM IR.

This function wraps the LLVMGetNumOperands function from the LLVM core library. It returns the number of operands that the value represented by ValueRef has. This is useful for determining how many inputs or arguments a particular instruction or value takes within LLVM IR.

§Returns

Returns an i32 representing the number of operands associated with the value.