llvm_sys::core

Function LLVMCanValueUseFastMathFlags

Source
pub unsafe extern "C" fn LLVMCanValueUseFastMathFlags(
    Inst: LLVMValueRef,
) -> LLVMBool
Expand description

Check if a given value can potentially have fast math flags.

Will return true for floating point arithmetic instructions, and for select, phi, and call instructions whose type is a floating point type, or a vector or array thereof. See https://llvm.org/docs/LangRef.html#fast-math-flags