Function intrinsic_get_name

Source
pub fn intrinsic_get_name(id: u32, name_length: &mut usize) -> *const i8
Expand description

Retrieves the name of an intrinsic.

This function wraps the LLVMIntrinsicGetName function from the LLVM core library. It obtains the name of the intrinsic identified by id.

§Parameters

  • id: The intrinsic ID (u32) corresponding to the desired intrinsic function.
  • name_length: A mutable reference to a usize where the length of the name will be stored.

§Returns

Returns a raw pointer to a null-terminated string (*const i8) representing the name of the intrinsic. The length of the name is stored in name_length. The returned string should not be modified or freed by the caller.