llvm::PatternMatch::m_CheckedFp

m_CheckedFp overloads

Synopses

Declared in <llvm/IR/PatternMatch.h>

Match a float or vector where CheckFn(ele) for each element is true. For vectors, poison elements are assumed to match.

cstfp_pred_ty<custom_checkfn<APFloat>>
m_CheckedFp(function_ref<bool(APFloat const&)> CheckFn);
» more...

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

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

Return Value

  • A matcher for a float or vector where CheckFn(ele) for each element is true. For vectors, poison elements are assumed to match.
  • 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
CheckFnPredicate applied to each floating-point element.
VReference that receives the matched Constant.