Function get_intrinsic_id

Source
pub fn get_intrinsic_id(val: &ValueRef) -> u32
Expand description

Retrieves the intrinsic ID number from a function instance.

This function wraps the LLVMGetIntrinsicID function from the LLVM core library. Intrinsic functions in LLVM have unique ID numbers that can be used to identify and categorize them.

§Parameters

  • val: The ValueRef representing the function.

§Returns

Returns a u32 representing the intrinsic ID of the function. If the function is not an intrinsic, the ID returned will be 0.