Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp144 if (!match(V, m_And(m_Value(), m_Power2(AndRHS)))) in foldSelectICmpAnd()
747 if (!match(CmpLHS, m_And(m_Value(), m_Power2(C1)))) in foldSelectICmpAndBinOp()
765 if (match(FalseVal, m_BinOp(m_Specific(TrueVal), m_Power2(C2)))) { in foldSelectICmpAndBinOp()
769 } else if (match(TrueVal, m_BinOp(m_Specific(FalseVal), m_Power2(C2)))) { in foldSelectICmpAndBinOp()
1892 match(CmpLHS, m_And(m_Value(X), m_Power2(Y))) && in foldSelectInstWithICmp()
H A DInstCombineAndOrXor.cpp824 m_ICmp(Pred, m_Add(m_Value(X), m_Power2(I01)), m_Power2(I1))) && in foldSignedTruncationCheck()
1163 if (!match(Cmp->getOperand(1), m_Power2(C)) || in foldEqOfParts()
2516 match(Op0, m_OneUse(m_LogicalShift(m_Power2(ShiftC), m_Value(X))))) { in visitAnd()
2535 match(C1, m_Power2())) { in visitAnd()
2551 match(C1, m_Power2())) { in visitAnd()
H A DInstCombineMulDivRem.cpp1411 if (match(Op, m_Power2())) in takeLog2()
1610 if (match(Op1, m_Power2()) && match(Op1, m_NonNegative())) { in visitSDiv()
1678 (match(Op1, m_Power2(Op1C)) || match(Op1, m_NegatedPower2(Op1C))) && in visitSDiv()
H A DInstCombineShifts.cpp500 match(C, m_Power2())) { in commonShiftTransforms()
H A DInstCombineCasts.cpp743 if (match(Src, m_OneUse(m_Shr(m_Shl(m_Power2(C1), m_Value(X)), in visitTrunc()
H A DInstCombineAddSub.cpp1273 if (!match(Add.getOperand(0), m_SDiv(m_Value(X), m_Power2(DivC))) || in foldAddToAshr()
H A DInstCombineCompares.cpp2637 if (!match(SRem->getOperand(1), m_Power2(DivisorC))) in foldICmpSRemConstant()
6591 if (match(LHS, m_Shl(m_Power2(C1), m_Value(X)))) { in foldICmpUsingKnownBits()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h619 inline cst_pred_ty<is_power2> m_Power2() { return cst_pred_ty<is_power2>(); } in m_Power2() function
620 inline api_pred_ty<is_power2> m_Power2(const APInt *&V) { return V; } in m_Power2() function
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp637 if (match(W, m_Power2(RHS))) { in visitMulExpr()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp702 if (match(LHS, m_And(m_V, m_Power2(BPow2))) && match(RHS, m_Zero())) in computeKnownBitsFromCmp()
2194 if (!match(Start, m_Power2()) || match(Start, m_SignMask())) in isPowerOfTwoRecurrence()
2206 if (!match(Start, m_Power2()) || match(Start, m_SignMask())) in isPowerOfTwoRecurrence()
2225 return OrZero ? match(V, m_Power2OrZero()) : match(V, m_Power2()); in isKnownToBeAPowerOfTwo()
H A DInstructionSimplify.cpp2125 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/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp2464 m_CombineAnd(m_Value(BitMask), m_Power2()))) && in detectShiftUntilBitTestIdiom()