Function get_used_value

Source
pub fn get_used_value(u: &UseRef) -> ValueRef
Expand description

Obtain the value this use corresponds to.

§Details

Obtains the value that is being used by a specific use in LLVM IR.

This function wraps the LLVMGetUsedValue function from the LLVM core library. It retrieves the value associated with a specific UseRef, which represents the value that is being used. This is useful for understanding which value is being utilized in a particular operation or instruction within LLVM IR.

§Parameters

  • u: A reference to the UseRef for which to obtain the used value.

§Returns

Returns an instance of ValueRef, which represents the value that is being used by the provided UseRef.