Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DAssumptionCache.cpp114 if (match(A, m_And(m_Value(X), m_Power2())) && match(B, m_Zero())) in findAffectedValues()
H A DValueTracking.cpp692 if (match(LHS, m_And(m_V, m_Power2(BPow2))) && match(RHS, m_Zero())) in computeKnownBitsFromCmp()
1906 if (!match(Start, m_Power2()) || match(Start, m_SignMask())) in isPowerOfTwoRecurrence()
1918 if (!match(Start, m_Power2()) || match(Start, m_SignMask())) in isPowerOfTwoRecurrence()
1937 return OrZero ? match(V, m_Power2OrZero()) : match(V, m_Power2()); in isKnownToBeAPowerOfTwo()
H A DInstructionSimplify.cpp2115 if (match(Op1, m_Power2(PowerC)) && in simplifyAndInst()
3369 if (match(LHS, m_Shl(m_Power2(), m_Value())) && in simplifyICmpWithBinOp()
3392 if (match(LHS, m_Shl(m_Power2(), m_Value())) && match(RHS, m_SignMask())) { in simplifyICmpWithBinOp()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp143 if (!match(V, m_And(m_Value(), m_Power2(AndRHS)))) in foldSelectICmpAnd()
731 if (!match(CmpLHS, m_And(m_Value(), m_Power2(C1)))) in foldSelectICmpAndBinOp()
749 if (match(FalseVal, m_BinOp(m_Specific(TrueVal), m_Power2(C2)))) { in foldSelectICmpAndBinOp()
753 } else if (match(TrueVal, m_BinOp(m_Specific(FalseVal), m_Power2(C2)))) { in foldSelectICmpAndBinOp()
1748 match(CmpLHS, m_And(m_Value(X), m_Power2(Y))) && in foldSelectInstWithICmp()
H A DInstCombineMulDivRem.cpp1272 if (match(Op, m_Power2())) in takeLog2()
1474 if (match(Op1, m_Power2()) && match(Op1, m_NonNegative())) { in visitSDiv()
1543 (match(Op1, m_Power2(Op1C)) || match(Op1, m_NegatedPower2(Op1C))) && in visitSDiv()
H A DInstCombineAndOrXor.cpp785 m_ICmp(Pred, m_Add(m_Value(X), m_Power2(I01)), m_Power2(I1))) && in foldSignedTruncationCheck()
1120 if (!match(Cmp->getOperand(1), m_Power2(C)) || in foldEqOfParts()
2391 match(Op0, m_OneUse(m_LogicalShift(m_Power2(ShiftC), m_Value(X))))) { in visitAnd()
2410 match(C1, m_Power2())) { in visitAnd()
2426 match(C1, m_Power2())) { in visitAnd()
H A DInstCombineShifts.cpp490 match(C, m_Power2())) { in commonShiftTransforms()
H A DInstCombineAddSub.cpp1231 if (!match(Add.getOperand(0), m_SDiv(m_Value(X), m_Power2(DivC))) || in foldAddToAshr()
H A DInstCombineCompares.cpp2546 if (!match(SRem->getOperand(1), m_Power2(DivisorC))) in foldICmpSRemConstant()
6262 if (match(LHS, m_Shl(m_Power2(C1), m_Value(X)))) { in foldICmpUsingKnownBits()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h552 inline cst_pred_ty<is_power2> m_Power2() { return cst_pred_ty<is_power2>(); } in m_Power2() function
553 inline api_pred_ty<is_power2> m_Power2(const APInt *&V) { return V; } in m_Power2() function
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp588 if (match(W, m_Power2(RHS))) { in visitMulExpr()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp2247 m_CombineAnd(m_Value(BitMask), m_Power2()))) && in detectShiftUntilBitTestIdiom()