Home
last modified time | relevance | path

Searched refs:m_APInt (Results 1 – 9 of 9) 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()
805 if (match(Op1, m_APInt(C2))) { in commonIDivTransforms()
811 if ((IsSigned && match(LHS, m_SDiv(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms()
812 (!IsSigned && match(LHS, m_UDiv(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms()
819 if ((IsSigned && match(LHS, m_NSWMul(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms()
820 (!IsSigned && match(LHS, m_NUWMul(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms()
844 if ((IsSigned && match(LHS, m_NSWShl(m_Value(X), m_APInt(C1))) && in commonIDivTransforms()
846 (!IsSigned && match(LHS, m_NUWShl(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms()
[all …]
DInstCombineAddSub.cpp1012 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
1015 if (match(X, m_Xor(m_Value(Y), m_APInt(C1)))) { in checkForNegativeOperand()
1018 if (match(Y, m_Or(m_Value(Z), m_APInt(C2))) && (*C2 == ~(*C1))) { in checkForNegativeOperand()
1021 } else if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && (*C1 == *C2)) { in checkForNegativeOperand()
1035 if (match(RHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
1041 if (match(LHS, m_Xor(m_Value(Y), m_APInt(C1)))) in checkForNegativeOperand()
1043 if (match(Y, m_And(m_Value(Z), m_APInt(C2))) && *C1 == (*C2 + 1)) { in checkForNegativeOperand()
DInstCombineSelect.cpp572 match(FalseVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in visitSelectInstWithICmp()
576 match(TrueVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in visitSelectInstWithICmp()
580 match(TrueVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in visitSelectInstWithICmp()
584 match(FalseVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in visitSelectInstWithICmp()
DInstructionCombining.cpp541 if (match(V, m_APInt(CInt)) && !CInt->isMinSignedValue()) in tryFactorization()
/external/llvm/lib/Analysis/
DValueTracking.cpp2168 if (match(U->getOperand(1), m_APInt(Denominator))) { in ComputeNumSignBits()
2188 if (match(U->getOperand(1), m_APInt(Denominator))) { in ComputeNumSignBits()
2222 if (match(U->getOperand(1), m_APInt(ShAmt))) { in ComputeNumSignBits()
2230 if (match(U->getOperand(1), m_APInt(ShAmt))) { in ComputeNumSignBits()
3344 if (match(Inst->getOperand(1), m_APInt(V))) in isSafeToSpeculativelyExecute()
3352 if (!match(Inst->getOperand(1), m_APInt(Denominator))) in isSafeToSpeculativelyExecute()
3362 if (match(Inst->getOperand(0), m_APInt(Numerator))) in isSafeToSpeculativelyExecute()
4120 if (match(RHS, m_NSWAdd(m_Specific(LHS), m_APInt(C)))) in isTruePredicate()
4129 if (match(RHS, m_NUWAdd(m_Specific(LHS), m_APInt(C)))) in isTruePredicate()
4135 if (match(A, m_NUWAdd(m_Value(X), m_APInt(CA))) && in isTruePredicate()
[all …]
DInstructionSimplify.cpp2787 if (LBO && match(LBO, m_Shl(m_APInt(CI2Val), m_Value())) && in SimplifyICmpInst()
3353 match(CmpLHS, m_And(m_Value(X), m_APInt(Y))) && in SimplifySelectInst()
3372 if (FalseVal == X && match(TrueVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3377 if (TrueVal == X && match(FalseVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3384 if (FalseVal == X && match(TrueVal, m_Or(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3389 if (TrueVal == X && match(FalseVal, m_Or(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
3396 if (match(CmpRHS, m_APInt(C))) { in SimplifySelectInst()
/external/llvm/lib/Transforms/Utils/
DLoopUtils.cpp81 if (match(J, m_CombineOr(m_And(m_Instruction(I), m_APInt(M)), in lookThroughAnd()
82 m_And(m_APInt(M), m_Instruction(I))))) { in lookThroughAnd()
/external/llvm/lib/IR/
DConstantFold.cpp941 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