| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineNegator.cpp | 212 if (match(Sel->getTrueValue(), m_ImmConstant(TrueC)) && in visitImpl() 213 match(Sel->getFalseValue(), m_ImmConstant(FalseC))) { in visitImpl() 231 (I->hasOneUse() || match(I->getOperand(0), m_ImmConstant()))) { in visitImpl() 263 m_LShr(m_Value(X), m_ImmConstant(ShAmt)))), in visitImpl() 410 if (!match(I->getOperand(1), m_ImmConstant(Op1C)) || !IsTrulyNegation) in visitImpl()
|
| H A D | InstCombineAddSub.cpp | 860 if (!match(Op1, m_ImmConstant(Op1C))) in foldAddWithConstant() 913 if (match(Op0, m_DisjointOr(m_Value(X), m_ImmConstant(Op01C)))) { in foldAddWithConstant() 1621 if (match(&I, m_c_Add(m_Add(m_Value(A), m_ImmConstant(C1)), in visitAdd() 1622 m_Sub(m_ImmConstant(C2), m_Value(B)))) && in visitAdd() 1630 if (match(&I, m_c_Add(m_OneUse(m_Sub(m_ImmConstant(C1), m_Value(A))), in visitAdd() 1768 m_SpecificICmp(ICmpInst::ICMP_EQ, m_Deferred(A), m_ImmConstant(C))); in visitAdd() 2068 if (match(&I, m_c_FAdd(m_FMul(m_Value(X), m_ImmConstant(MulC)), in visitFAdd() 2275 if (match(Op0, m_ImmConstant(C))) { in visitSub() 2280 if (match(Op1, m_Add(m_Value(X), m_ImmConstant(C2)))) { in visitSub() 2348 if (match(Op0, m_And(m_Value(X), m_ImmConstant(C1))) && in visitSub() [all …]
|
| H A D | InstCombineCalls.cpp | 552 if (match(Op0, m_Shl(m_ImmConstant(C), m_Value(X))) && in foldCttzCtlz() 560 if (match(Op0, m_Exact(m_LShr(m_ImmConstant(C), m_Value(X)))) && in foldCttzCtlz() 575 if (match(Op0, m_LShr(m_ImmConstant(C), m_Value(X))) && in foldCttzCtlz() 583 if (match(Op0, m_NUWShl(m_ImmConstant(C), m_Value(X))) && in foldCttzCtlz() 1289 if (!match(LHS->getArgOperand(1), m_ImmConstant(C0)) || in reassociateMinMaxWithConstants() 1290 !match(II->getArgOperand(1), m_ImmConstant(C1))) in reassociateMinMaxWithConstants() 1322 m_MaxOrMin(m_Value(X), m_ImmConstant(C)))), in reassociateMinMaxWithConstantInOperand() 1330 match(X, m_ImmConstant()) || match(Y, m_ImmConstant())) in reassociateMinMaxWithConstantInOperand() 1437 else if (match(&Arg, m_ImmConstant(C))) { in foldShuffledIntrinsicOperands() 1483 else if (match(&Arg, m_ImmConstant(C))) in foldReversedIntrinsicOperands() [all …]
|
| H A D | InstCombineShifts.cpp | 379 (V->hasOneUse() || match(W, m_ImmConstant())) && in foldShiftOfShiftedBinOp() 431 if (match(Op1, m_ImmConstant(CUI))) in commonShiftTransforms() 590 if (match(V, m_ImmConstant())) in canEvaluateShifted() 790 if (match(Op0, m_BinOp(I.getOpcode(), m_ImmConstant(C2), m_Value(X)))) { in FoldShiftByConstant() 1246 if (match(Op1, m_ImmConstant(C1))) { in visitShl() 1250 if (match(Op0, m_Mul(m_Value(X), m_ImmConstant(C2)))) in visitShl()
|
| H A D | InstCombineMulDivRem.cpp | 224 if (match(&I, m_Mul(m_Shl(m_Value(NewOp), m_ImmConstant(C2)), in visitMul() 225 m_ImmConstant(C1))) && in visitMul() 325 if (match(Op1, m_ImmConstant(MulC))) { in visitMul() 330 if (match(Op0, m_OneUse(m_AddLike(m_Value(X), m_ImmConstant(C1))))) { in visitMul() 503 if (match(Op1, m_ImmConstant(ImmC))) { in visitMul() 1303 if (match(Op0, m_ImmConstant()) && in commonIDivRemTransforms() 1304 match(Op1, m_Select(m_Value(), m_ImmConstant(), m_ImmConstant()))) { in commonIDivRemTransforms()
|
| H A D | InstCombineAndOrXor.cpp | 2228 if (!match(&I, m_c_BinOp(m_Shift(m_ImmConstant(ShiftedC1), m_Value(ShAmt)), in foldBinOpOfDisplacedShifts() 2229 m_Shift(m_ImmConstant(ShiftedC2), in foldBinOpOfDisplacedShifts() 2231 m_ImmConstant(AddC)))))) in foldBinOpOfDisplacedShifts() 2610 if (match(Op0, m_OneUse(m_LShr(m_Shl(m_ImmConstant(C1), m_Value(X)), in visitAnd() 2611 m_ImmConstant(C2)))) && in visitAnd() 2626 if (match(Op0, m_OneUse(m_Shl(m_LShr(m_ImmConstant(C1), m_Value(X)), in visitAnd() 2627 m_ImmConstant(C2)))) && in visitAnd() 4795 if (match(NotVal, m_Add(m_Value(X), m_ImmConstant(C)))) in foldNot() 4964 if (match(Op0, m_OneUse(m_Or(m_Value(X), m_ImmConstant(C2)))) && in visitXor() 4965 match(C1, m_ImmConstant())) { in visitXor() [all …]
|
| H A D | InstructionCombining.cpp | 674 if (match(Op, m_Shl(m_Value(), m_ImmConstant(C)))) { in getBinOpsForFactorization() 835 if (!match(I->getOperand(ConstIdx), m_ImmConstant(C))) in tryFoldInstWithCtpopWithNot() 1018 if (!match(Shift, m_ImmConstant(CShift))) in foldBinOpShiftWithShift() 1020 if (!match(Mask, m_ImmConstant(CMask))) in foldBinOpShiftWithShift() 1685 if (!match(BO0, m_SExt(m_Value(X))) || !match(BO1, m_ImmConstant(C)) || in foldBinopOfSextBoolToSelect() 2161 if (match(Phi0->getIncomingValue(0), m_ImmConstant(C0))) { in foldBinopWithPhiOperands() 2164 } else if (match(Phi0->getIncomingValue(1), m_ImmConstant(C0))) { in foldBinopWithPhiOperands() 2170 if (!match(Phi1->getIncomingValueForBlock(ConstBB), m_ImmConstant(C1))) in foldBinopWithPhiOperands() 2430 m_ImmConstant(C)))) { in foldVectorBinop() 2763 if (match(V, m_ImmConstant(C))) in getFreelyInvertedImpl()
|
| H A D | InstCombineCasts.cpp | 235 return match(V, m_ImmConstant()); in canAlwaysEvaluateInType() 811 m_ImmConstant(C2))))) { in visitTrunc() 825 if (match(Src, m_OneUse(m_LShr(m_Value(X), m_ImmConstant(C))))) { in visitTrunc() 832 if (match(Src, m_OneUse(m_c_Or(m_LShr(m_Value(X), m_ImmConstant(C)), in visitTrunc() 1569 m_ImmConstant(CA))) && in visitSExt()
|
| H A D | InstCombineCompares.cpp | 1883 unsigned RequireUsesRemoved = match(B, m_ImmConstant()) ? 1 : 3; in foldICmpAndConstConst() 2099 if (Cmp.isEquality() && match(OrOp1, m_ImmConstant()) && in foldICmpOrConstant() 2976 if (Cmp.isEquality() && match(X, m_ImmConstant(SubC))) { in foldICmpSubConstant() 3944 (OneUses == 1 && match(IIOp0->getOperand(2), m_ImmConstant()) && in foldICmpIntrinsicWithIntrinsic() 3945 match(IIOp1->getOperand(2), m_ImmConstant()))) { in foldICmpIntrinsicWithIntrinsic() 5007 if (!match(Op1, m_ImmConstant())) in foldICmpAndXX() 5170 m_ImmConstant(C)))) && in foldICmpBinOp() 5177 m_ImmConstant(C)))) && in foldICmpBinOp() 5382 if (match(B, m_ImmConstant(Cst1)) && match(D, m_ImmConstant(Cst2)) && in foldICmpBinOp() 5930 if (isa<Constant>(Simplified) && !match(Simplified, m_ImmConstant())) in foldICmpEqualityWithOffset() [all …]
|
| H A D | InstCombineSelect.cpp | 1365 if (match(V, m_ImmConstant()) && in foldSelectValueEquivalence() 1373 if (match(NewOp, m_ImmConstant()) || in foldSelectValueEquivalence() 1388 if (OldOp == CmpLHS && match(NewOp, m_ImmConstant()) && in foldSelectValueEquivalence() 1629 if (!match(ReplacementLow, m_ImmConstant(LowC)) || in canonicalizeClampLike() 1630 !match(ReplacementHigh, m_ImmConstant(HighC))) in canonicalizeClampLike()
|
| H A D | InstCombineSimplifyDemanded.cpp | 689 if (match(I->getOperand(0), m_LShr(m_ImmConstant(C), m_Value(X)))) { in SimplifyDemandedUseBits() 770 if (match(I->getOperand(0), m_Shl(m_ImmConstant(C), m_Value(X)))) { in SimplifyDemandedUseBits()
|
| H A D | InstCombineVectorOps.cpp | 2149 if (match(BO1, m_ImmConstant(C))) { in getAlternateBinop()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InstCombineIntrinsic.cpp | 698 bool AIsConst = match(ArgA, m_ImmConstant()); in simplifyTernarylogic() 699 bool BIsConst = match(ArgB, m_ImmConstant()); in simplifyTernarylogic() 700 bool CIsConst = match(ArgC, m_ImmConstant()); in simplifyTernarylogic()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 3844 else if (match(RHS, m_ImmConstant())) { in simplifyICmpInst() 3923 else if (match(RHS, m_ImmConstant())) { in simplifyICmpInst() 6507 if (match(Op1, m_ImmConstant(C))) { in simplifyBinaryIntrinsic() 6530 if (match(Op0, m_ImmConstant())) in simplifyBinaryIntrinsic()
|
| H A D | ValueTracking.cpp | 9323 if (L0 != R0 || match(L0, m_ImmConstant())) { in isImpliedCondICmps()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | PatternMatch.h | 891 inline match_immconstant_ty m_ImmConstant() { return match_immconstant_ty(); } in m_ImmConstant() function 908 inline bind_immconstant_ty m_ImmConstant(Constant *&C) { in m_ImmConstant() function
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | InlineFunction.cpp | 1441 llvm::PatternMatch::m_ImmConstant())) in AddParamAndFnBasicAttributes()
|
| H A D | SimplifyCFG.cpp | 3756 V, m_CombineOr(m_BinOp(), m_c_Select(m_ImmConstant(), m_Value()))); in foldTwoEntryPHINode()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 2157 if (match(RemAmt, m_ImmConstant())) in foldURemOfLoopIncrement()
|