Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp850 m_Add(m_Value(X), m_Power2(I01)), in foldSignedTruncationCheck()
851 m_Power2(I1))) && in foldSignedTruncationCheck()
1211 if (!match(Cmp->getOperand(1), m_Power2(C)) || in foldEqOfParts()
2593 match(Op0, m_OneUse(m_LogicalShift(m_Power2(ShiftC), m_Value(X))))) { in visitAnd()
2612 match(C1, m_Power2())) { in visitAnd()
2628 match(C1, m_Power2())) { in visitAnd()
H A DInstCombineMulDivRem.cpp1539 if (match(Op, m_Power2())) in takeLog2()
1778 if (match(Op1, m_Power2()) && match(Op1, m_NonNegative())) { in visitSDiv()
1846 (match(Op1, m_Power2(Op1C)) || match(Op1, m_NegatedPower2(Op1C))) && in visitSDiv()
H A DInstCombineSelect.cpp786 if (match(FalseVal, m_BinOp(m_Specific(TrueVal), m_Power2(C2)))) { in foldSelectICmpAndBinOp()
790 } else if (match(TrueVal, m_BinOp(m_Specific(FalseVal), m_Power2(C2)))) { in foldSelectICmpAndBinOp()
3873 if (!match(CmpLHS, m_And(m_Value(), m_Power2(AndRHS)))) in foldSelectBitTest()
H A DInstCombineShifts.cpp501 match(C, m_Power2())) { in commonShiftTransforms()
H A DInstCombineCasts.cpp810 if (match(Src, m_OneUse(m_Shr(m_Shl(m_Power2(C1), m_Value(X)), in visitTrunc()
H A DInstCombineAddSub.cpp1282 if (!match(Add.getOperand(0), m_SDiv(m_Value(X), m_Power2(DivC))) || in foldAddToAshr()
H A DInstCombineCompares.cpp2718 if (!match(SRem->getOperand(1), m_Power2(DivisorC))) in foldICmpSRemConstant()
6993 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.cpp647 if (match(W, m_Power2(RHS))) { in visitMulExpr()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp747 if (C->isZero() && match(LHS, m_And(m_V, m_Power2(BPow2)))) in computeKnownBitsFromCmp()
2367 if (!match(Start, m_Power2()) || match(Start, m_SignMask())) in isPowerOfTwoRecurrence()
2379 if (!match(Start, m_Power2()) || match(Start, m_SignMask())) in isPowerOfTwoRecurrence()
2417 return OrZero ? match(V, m_Power2OrZero()) : match(V, m_Power2()); in isKnownToBeAPowerOfTwo()
H A DInstructionSimplify.cpp2079 if (match(Op1, m_Power2(PowerC)) && in simplifyAndInst()
3358 if (match(LHS, m_Shl(m_Power2(), m_Value())) && in simplifyICmpWithBinOp()
3381 if (match(LHS, m_Shl(m_Power2(), m_Value())) && match(RHS, m_SignMask())) { in simplifyICmpWithBinOp()