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(xref:llvm/APInt.adoc[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
Name |
Description |
V |
Reference that receives the matched Constant. |
CheckFn |
Predicate applied to each integer element. |
Created with MrDocs