Searched refs:m_APInt (Results 1 – 7 of 7) sorted by relevance
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 118 if (!match(Elt, m_APInt(IVal)) || !IVal->isPowerOf2()) in getLogBase2Vector() 196 match(C1, m_APInt(IVal))) { in visitMul() 211 if (match(C1, m_APInt(IVal)) && IVal->isPowerOf2()) in visitMul() 795 if (match(Op1, m_APInt(C2))) { in commonIDivTransforms() 801 if ((IsSigned && match(LHS, m_SDiv(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms() 802 (!IsSigned && match(LHS, m_UDiv(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms() 809 if ((IsSigned && match(LHS, m_NSWMul(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms() 810 (!IsSigned && match(LHS, m_NUWMul(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms() 834 if ((IsSigned && match(LHS, m_NSWShl(m_Value(X), m_APInt(C1))) && in commonIDivTransforms() 836 (!IsSigned && match(LHS, m_NUWShl(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms() [all …]
|
D | InstCombineAddSub.cpp | 1012 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()
|
D | InstCombineSelect.cpp | 701 match(FalseVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in visitSelectInstWithICmp() 705 match(TrueVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in visitSelectInstWithICmp() 709 match(TrueVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in visitSelectInstWithICmp() 713 match(FalseVal, m_Xor(m_Specific(X), m_APInt(C))) && *Y == *C) in visitSelectInstWithICmp()
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 1899 if (match(U->getOperand(1), m_APInt(Denominator))) { in ComputeNumSignBits() 1919 if (match(U->getOperand(1), m_APInt(Denominator))) { in ComputeNumSignBits() 1953 if (match(U->getOperand(1), m_APInt(ShAmt))) { in ComputeNumSignBits() 1961 if (match(U->getOperand(1), m_APInt(ShAmt))) { in ComputeNumSignBits() 2827 if (match(Inst->getOperand(1), m_APInt(V))) in isSafeToSpeculativelyExecute() 2835 if (!match(Inst->getOperand(1), m_APInt(Denominator))) in isSafeToSpeculativelyExecute() 2845 if (match(Inst->getOperand(0), m_APInt(Numerator))) in isSafeToSpeculativelyExecute()
|
D | InstructionSimplify.cpp | 2715 if (LBO && match(LBO, m_Shl(m_APInt(CI2Val), m_Value())) && in SimplifyICmpInst() 3187 match(ICI->getOperand(0), m_And(m_Value(X), m_APInt(Y))) && in SimplifySelectInst() 3208 if (FalseVal == X && match(TrueVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst() 3213 if (TrueVal == X && match(FalseVal, m_And(m_Specific(X), m_APInt(C))) && in SimplifySelectInst() 3220 if (FalseVal == X && match(TrueVal, m_Or(m_Specific(X), m_APInt(C))) && in SimplifySelectInst() 3225 if (TrueVal == X && match(FalseVal, m_Or(m_Specific(X), m_APInt(C))) && in SimplifySelectInst()
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 935 if (match(C1, m_APInt(CV)) || match(C2, m_APInt(CV))) in ConstantFoldBinaryInstruction()
|
/external/llvm/include/llvm/IR/ |
D | PatternMatch.h | 180 inline apint_match m_APInt(const APInt *&Res) { return Res; } in m_APInt() function
|