llvm::PatternMatch::api_pred_ty

This helper class is used to match scalar and vector constants that satisfy a specified predicate, and bind them to an APInt.

Synopsis

Declared in <llvm/IR/PatternMatch.h>

template<typename Predicate>
struct api_pred_ty
    : Predicate

Base Classes

NameDescription
Predicate

Member Functions

NameDescription
api_pred_ty [constructor]Construct a matcher that binds into R.
match Match a scalar or splat constant satisfying the predicate and bind it.

Data Members

NameDescription
Res Bound pointer to the matched APInt.

Non-Member Functions

NameDescription
m_LowBitMaskMatch a low-bit-mask constant and bind the APInt.
m_LowBitMaskOrZeroMatch a zero or low-bit-mask constant and bind the APInt.
m_MaxSignedValueMatch a max-signed-value constant and bind the APInt.
m_NegatedPower2Match a negated power-of-two constant and bind the APInt.
m_NegatedPower2OrZeroMatch a zero or negated power-of-two constant and bind the APInt.
m_NegativeMatch a negative constant and bind the APInt.
m_NonNegativeMatch a non-negative constant and bind the APInt.
m_NonPositiveMatch a non-positive constant and bind the APInt.
m_Power2Match a power-of-two constant and bind the APInt.
m_Power2OrZeroMatch a zero or power-of-two constant and bind the APInt.
m_StrictlyPositiveMatch a strictly positive constant and bind the APInt.