pub fn lookup_intrinsic_id(name: &str) -> Option<u32>
Expand description
Looks up the intrinsic ID number that matches the given function name within the module.
This function wraps the LLVMLookupIntrinsicID
function from the LLVM core library. It searches for an intrinsic
function within the LLVM module represented by m
that matches the specified name. Intrinsic functions are
special functions provided by LLVM that perform specific operations at a lower level.
§Parameters
m
: TheModuleRef
representing the LLVM module.name
: The name (&str
) of the intrinsic function to look up.
§Returns
Returns an Option<u32>
containing the intrinsic ID if a matching intrinsic is found, or None
if no
matching intrinsic exists within the module.