Home
last modified time | relevance | path

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

/openbsd/src/gnu/llvm/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp142 if (!match(V, m_And(m_Value(), m_Power2(AndRHS)))) in foldSelectICmpAnd()
645 if (!match(CmpLHS, m_And(m_Value(), m_Power2(C1)))) in foldSelectICmpAndOr()
671 bool OrOnFalseVal = match(FalseVal, m_Or(m_Specific(TrueVal), m_Power2(C2))); in foldSelectICmpAndOr()
673 OrOnTrueVal = match(TrueVal, m_Or(m_Specific(FalseVal), m_Power2(C2))); in foldSelectICmpAndOr()
1695 match(CmpLHS, m_And(m_Value(X), m_Power2(Y))) && in foldSelectInstWithICmp()
DInstCombineMulDivRem.cpp1134 if (match(Op, m_Power2())) in takeLog2()
1349 if (match(Op1, m_Power2()) && match(Op1, m_NonNegative())) { in visitSDiv()
1417 (match(Op1, m_Power2(Op1C)) || match(Op1, m_NegatedPower2(Op1C))) && in visitSDiv()
DInstCombineAndOrXor.cpp796 m_ICmp(Pred, m_Add(m_Value(X), m_Power2(I01)), m_Power2(I1))) && in foldSignedTruncationCheck()
2137 match(Op0, m_OneUse(m_LogicalShift(m_Power2(ShiftC), m_Value(X))))) { in visitAnd()
2156 match(C1, m_Power2())) { in visitAnd()
2172 match(C1, m_Power2())) { in visitAnd()
DInstCombineShifts.cpp458 match(C, m_Power2())) { in commonShiftTransforms()
DInstCombineAddSub.cpp1137 if (!match(Add.getOperand(0), m_SDiv(m_Value(X), m_Power2(DivC))) || in foldAddToAshr()
DInstCombineCompares.cpp2379 if (!match(SRem->getOperand(1), m_Power2(DivisorC))) in foldICmpSRemConstant()
5629 if (match(LHS, m_Shl(m_Power2(C1), m_Value(X)))) { in foldICmpUsingKnownBits()
/openbsd/src/gnu/llvm/llvm/include/llvm/IR/
DPatternMatch.h544 inline cst_pred_ty<is_power2> m_Power2() { return cst_pred_ty<is_power2>(); } in m_Power2() function
545 inline api_pred_ty<is_power2> m_Power2(const APInt *&V) { return V; } in m_Power2() function
/openbsd/src/gnu/llvm/llvm/lib/Analysis/
DValueTracking.cpp940 if (match(Cmp, m_ICmp(Pred, m_c_And(m_V, m_Power2(BPow2)), m_Zero())) && in computeKnownBitsFromAssume()
2086 if (!match(Start, m_Power2()) || match(Start, m_SignMask())) in isPowerOfTwoRecurrence()
2098 if (!match(Start, m_Power2()) || match(Start, m_SignMask())) in isPowerOfTwoRecurrence()
2119 if (match(V, m_Power2())) in isKnownToBeAPowerOfTwo()
DInstructionSimplify.cpp3367 if (match(LHS, m_Shl(m_Power2(), m_Value())) && in simplifyICmpWithBinOp()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Scalar/
DLoopIdiomRecognize.cpp2330 m_CombineAnd(m_Value(BitMask), m_Power2()))) && in detectShiftUntilBitTestIdiom()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/
DScalarEvolutionExpander.cpp891 if (match(W, m_Power2(RHS))) { in visitMulExpr()