Home
last modified time | relevance | path

Searched refs:m_Power2 (Results 1 – 8 of 8) sorted by relevance

/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp146 if (!match(V, m_And(m_Value(), m_Power2(AndRHS)))) in foldSelectICmpAnd()
557 if (!match(CmpLHS, m_And(m_Value(), m_Power2(C1)))) in foldSelectICmpAndOr()
583 bool OrOnFalseVal = match(FalseVal, m_Or(m_Specific(TrueVal), m_Power2(C2))); in foldSelectICmpAndOr()
585 OrOnTrueVal = match(TrueVal, m_Or(m_Specific(FalseVal), m_Power2(C2))); in foldSelectICmpAndOr()
1000 match(CmpLHS, m_And(m_Value(X), m_Power2(Y))) && in foldSelectInstWithICmp()
H A DInstCombineMulDivRem.cpp802 if (match(Op1, m_Power2())) { in visitUDivOperand()
808 if (match(Op1, m_Shl(m_Power2(), m_Value())) || in visitUDivOperand()
809 match(Op1, m_ZExt(m_Shl(m_Power2(), m_Value())))) { in visitUDivOperand()
H A DInstCombineShifts.cpp56 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Power2(B)))) { in commonShiftTransforms()
H A DInstCombineAndOrXor.cpp942 m_ICmp(Pred, m_Add(m_Value(X), m_Power2(I01)), m_Power2(I1))) && in foldSignedTruncationCheck()
H A DInstCombineCompares.cpp4422 match(LHS, m_LShr(m_Power2(CI), m_Value(X)))) { in foldICmpUsingKnownBits()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DPatternMatch.h385 inline cst_pred_ty<is_power2> m_Power2() { in m_Power2() function
388 inline api_pred_ty<is_power2> m_Power2(const APInt *&V) { in m_Power2() function
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DScalarEvolutionExpander.cpp824 if (match(W, m_Power2(RHS))) { in visitMulExpr()
H A DValueTracking.cpp1711 if (match(V, m_Power2())) in isKnownToBeAPowerOfTwo()