llvm::PatternMatch::m_CheckedFp

Match a float or vector where CheckFn(ele) is true, binding the constant. For vectors, poison elements are assumed to match.

Synopsis

Declared in <llvm/IR/PatternMatch.h>

cstfp_pred_ty<custom_checkfn<APFloat>>
m_CheckedFp(
    Constant const*& V,
    function_ref<bool(APFloat const&)> CheckFn);

Return Value

A matcher for a float or vector where CheckFn(ele) is true, binding the constant. For vectors, poison elements are assumed to match.

Parameters

NameDescription
VReference that receives the matched Constant.
CheckFnPredicate applied to each floating-point element.