llvm::PatternMatch::m_CheckedInt

Match an integer 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>

cst_pred_ty<custom_checkfn<APInt>>
m_CheckedInt(
    Constant const*& V,
    function_ref<bool(APInt const&)> CheckFn);

Return Value

A matcher for an integer 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 integer element.