llvm::PatternMatch::m_NegatedPower2OrZero

m_NegatedPower2OrZero overloads

Synopses

Declared in <llvm/IR/PatternMatch.h>

Match a integer or vector negated power-of-2. For vectors, this includes constants with undefined elements.

cst_pred_ty<is_negated_power2_or_zero>
m_NegatedPower2OrZero();
» more...

Match a zero or negated power-of-two constant and bind the APInt.

api_pred_ty<is_negated_power2_or_zero>
m_NegatedPower2OrZero(APInt const*& V);
» more...

Return Value

  • A matcher for a integer or vector negated power-of-2. For vectors, this includes constants with undefined elements.
  • A matcher for a zero or negated power-of-two constant and bind the APInt.

Parameters

NameDescription
VReference to the pointer that receives the matched APInt.