cubecl_hip_sys

Function hiprtcGetLoweredName

Source
pub unsafe extern "C" fn hiprtcGetLoweredName(
    prog: hiprtcProgram,
    name_expression: *const c_char,
    lowered_name: *mut *const c_char,
) -> hiprtcResult
Expand description

@brief Gets the lowered (mangled) name from an instance of hiprtcProgram with the given input parameters, and sets the output lowered_name with it. @ingroup Runtime @param [in] prog runtime compilation program instance. @param [in] name_expression const char pointer to the name expression. @param [in, out] lowered_name const char array to the lowered (mangled) name. @returns #HIPRTC_SUCCESS

If any invalide nullptr input parameters, it will return #HIPRTC_ERROR_INVALID_INPUT

If name_expression is not found, it will return #HIPRTC_ERROR_NAME_EXPRESSION_NOT_VALID

If failed to get lowered_name from the program, it will return #HIPRTC_ERROR_COMPILATION.

@see hiprtcResult