Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp125 if (!match(Elt, m_APInt(IVal)) || !IVal->isPowerOf2()) in getLogBase2Vector()
203 match(C1, m_APInt(IVal))) { in visitMul()
218 if (match(C1, m_APInt(IVal)) && IVal->isPowerOf2()) in visitMul()
819 if (match(Op1, m_APInt(C2))) { in commonIDivTransforms()
825 if ((IsSigned && match(LHS, m_SDiv(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms()
826 (!IsSigned && match(LHS, m_UDiv(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms()
833 if ((IsSigned && match(LHS, m_NSWMul(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms()
834 (!IsSigned && match(LHS, m_NUWMul(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms()
858 if ((IsSigned && match(LHS, m_NSWShl(m_Value(X), m_APInt(C1))) && in commonIDivTransforms()
860 (!IsSigned && match(LHS, m_NUWShl(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms()
[all …]
DInstCombineAddSub.cpp992 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
995 if (match(X, m_Xor(m_Value(Y), m_APInt(C1)))) { in checkForNegativeOperand()
998 if (match(Y, m_Or(m_Value(Z), m_APInt(C2))) && (*C2 == ~(*C1))) { in checkForNegativeOperand()
1001 } else if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && (*C1 == *C2)) { in checkForNegativeOperand()
1015 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
1021 if (match(LHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
1023 if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && *C1 == (*C2 + 1)) { in checkForNegativeOperand()
DInstCombineSelect.cpp583 match(FalseVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in visitSelectInstWithICmp()
587 match(TrueVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in visitSelectInstWithICmp()
591 match(TrueVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in visitSelectInstWithICmp()
595 match(FalseVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in visitSelectInstWithICmp()
DInstructionCombining.cpp138 if (!match(B, m_APInt(BVal)) || !match(C, m_APInt(CVal))) in MaintainNoSignedWrap()
537 if (match(V, m_APInt(CInt)) && !CInt->isMinSignedValue()) in tryFactorization()
/external/llvm/lib/Analysis/
DValueTracking.cpp1501 if (match(C, m_APInt(ConstIntOrConstSplatInt))) in isKnownToBeAPowerOfTwo()
1980 if (match(U->getOperand(1), m_APInt(Denominator))) { in ComputeNumSignBits()
2000 if (match(U->getOperand(1), m_APInt(Denominator))) { in ComputeNumSignBits()
2034 if (match(U->getOperand(1), m_APInt(ShAmt))) { in ComputeNumSignBits()
2042 if (match(U->getOperand(1), m_APInt(ShAmt))) { in ComputeNumSignBits()
3083 if (match(Inst->getOperand(1), m_APInt(V))) in isSafeToSpeculativelyExecute()
3091 if (!match(Inst->getOperand(1), m_APInt(Denominator))) in isSafeToSpeculativelyExecute()
3101 if (match(Inst->getOperand(0), m_APInt(Numerator))) in isSafeToSpeculativelyExecute()
3974 if (match(RHS, m_NSWAdd(m_Specific(LHS), m_APInt(C)))) in isTruePredicate()
3983 if (match(RHS, m_NUWAdd(m_Specific(LHS), m_APInt(C)))) in isTruePredicate()
[all …]
DInstructionSimplify.cpp1511 if (match(Op0, m_ICmp(Pred0, m_Value(V), m_APInt(C0))) && in SimplifyAndOfICmps()
1512 match(Op1, m_ICmp(Pred1, m_Specific(V), m_APInt(C1)))) { in SimplifyAndOfICmps()
2842 if (LBO && match(LBO, m_Shl(m_APInt(CI2Val), m_Value())) && in SimplifyICmpInst()
3413 match(CmpLHS, m_And(m_Value(X), m_APInt(Y))) && in SimplifySelectInst()
3432 if (FalseVal == X && match(TrueVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3437 if (TrueVal == X && match(FalseVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3444 if (FalseVal == X && match(TrueVal, m_Or(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3449 if (TrueVal == X && match(FalseVal, m_Or(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3456 if (match(CmpRHS, m_APInt(C))) { in SimplifySelectInst()
DScalarEvolution.cpp4706 !match(SU->getValue(), m_Select(m_Value(Condition), m_APInt(TrueVal), in getRangeViaFactoring()
4707 m_APInt(FalseVal)))) { in getRangeViaFactoring()
/external/llvm/lib/Transforms/Utils/
DLoopUtils.cpp88 if (match(J, m_CombineOr(m_And(m_Instruction(I), m_APInt(M)), in lookThroughAnd()
89 m_And(m_APInt(M), m_Instruction(I))))) { in lookThroughAnd()
DSimplifyCFG.cpp493 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
516 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
547 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DPatternMatch.h112 inline apint_match m_APInt(const APInt *&Res) { return Res; } in m_APInt() function
/external/llvm/lib/IR/
DConstantFold.cpp942 if (match(C1, m_APInt(CV)) || match(C2, m_APInt(CV))) in ConstantFoldBinaryInstruction()
/external/llvm/include/llvm/IR/
DPatternMatch.h180 inline apint_match m_APInt(const APInt *&Res) { return Res; } in m_APInt() function