| /src/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/ |
| H A D | InstCombiner.h | 433 llvm::computeKnownBits(V, Known, Depth, SQ.getWithInstruction(CxtI)); in computeKnownBits() 438 return llvm::computeKnownBits(V, Depth, SQ.getWithInstruction(CxtI)); in computeKnownBits() 449 return llvm::MaskedValueIsZero(V, Mask, SQ.getWithInstruction(CxtI), Depth); 467 LHS, RHS, SQ.getWithInstruction(CxtI), IsNSW); 473 SQ.getWithInstruction(CxtI)); in computeOverflowForSignedMul() 481 SQ.getWithInstruction(CxtI)); in computeOverflowForUnsignedAdd() 489 SQ.getWithInstruction(CxtI)); in computeOverflowForSignedAdd() 496 SQ.getWithInstruction(CxtI)); in computeOverflowForUnsignedSub() 502 SQ.getWithInstruction(CxtI)); in computeOverflowForSignedSub() 512 /*Depth=*/0, SQ.getWithInstruction(I)); in SimplifyDemandedBits()
|
| /src/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | SimplifyQuery.h | 107 SimplifyQuery getWithInstruction(const Instruction *I) const { in getWithInstruction() function
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopInstSimplify.cpp | 98 Value *V = simplifyInstruction(&I, SQ.getWithInstruction(&I)); in simplifyLoopInst()
|
| H A D | NewGVN.cpp | 1077 const SimplifyQuery Q = SQ.getWithInstruction(I); in createBinaryExpression() 1151 const SimplifyQuery Q = SQ.getWithInstruction(I); in createExpression()
|
| /src/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineMulDivRem.cpp | 199 SQ.getWithInstruction(&I))) in visitMul() 859 SQ.getWithInstruction(&I))) in visitFMul() 894 isKnownNeverNaN(Op0, /*Depth=*/0, SQ.getWithInstruction(&I))) || in visitFMul() 895 isKnownNeverNaN(&I, /*Depth=*/0, SQ.getWithInstruction(&I)))) { in visitFMul() 1516 SQ.getWithInstruction(&I))) in visitUDiv() 1585 SQ.getWithInstruction(&I))) in visitSDiv() 1686 if (isKnownNonNegative(Op1, SQ.getWithInstruction(&I))) { in visitSDiv() 1880 SQ.getWithInstruction(&I))) in visitFDiv() 2166 SQ.getWithInstruction(&I))) in visitURem() 2223 simplifyICmpInst(ICmpInst::ICMP_ULT, X, Op1, SQ.getWithInstruction(&I)); in visitURem() [all …]
|
| H A D | InstructionCombining.cpp | 451 if (Value *V = simplifyBinOp(Opcode, B, C, SQ.getWithInstruction(&I))) { in SimplifyAssociativeOrCommutative() 484 if (Value *V = simplifyBinOp(Opcode, A, B, SQ.getWithInstruction(&I))) { in SimplifyAssociativeOrCommutative() 512 if (Value *V = simplifyBinOp(Opcode, C, A, SQ.getWithInstruction(&I))) { in SimplifyAssociativeOrCommutative() 532 if (Value *V = simplifyBinOp(Opcode, C, A, SQ.getWithInstruction(&I))) { in SimplifyAssociativeOrCommutative() 689 V = simplifyBinOp(TopLevelOpcode, B, D, SQ.getWithInstruction(&I)); in tryFactorization() 709 V = simplifyBinOp(TopLevelOpcode, A, C, SQ.getWithInstruction(&I)); in tryFactorization() 1143 auto SQDistributive = SQ.getWithInstruction(&I).getWithoutUndef(); in foldUsingDistributiveLaws() 1182 auto SQDistributive = SQ.getWithInstruction(&I).getWithoutUndef(); in foldUsingDistributiveLaws() 1298 SimplifyQuery Q = SQ.getWithInstruction(&I); in SimplifySelectsFeedingBinaryOp() 1749 &I, Ops, SQ.getWithInstruction(InBB->getTerminator())); in simplifyInstructionWithPHI() [all …]
|
| H A D | InstCombineCalls.cpp | 613 isKnownNonZero(Op0, IC.getSimplifyQuery().getWithInstruction(&II))) { in foldCttzCtlz() 1510 SQ.getWithInstruction(&CI))) in visitCallInst() 1622 if (simplifyConstrainedFPCall(&CI, SQ.getWithInstruction(&CI))) in visitCallInst() 1664 getKnownSignOrZero(IIOperand, SQ.getWithInstruction(II))) { in visitCallInst() 1799 auto KnownSign = getKnownSign(X, SQ.getWithInstruction(II)); in visitCallInst() 1901 I0, IsSigned, SQ.getWithInstruction(II)); in visitCallInst() 2065 if (!isKnownNonZero(ShAmtC, SQ.getWithInstruction(II))) in visitCallInst() 2141 isKnownNonZero(II, getSimplifyQuery().getWithInstruction(II)))) { in visitCallInst() 2473 SQ.getWithInstruction(II))) { in visitCallInst() 2504 SQ.getWithInstruction(II))) { in visitCallInst() [all …]
|
| H A D | InstCombineShifts.cpp | 111 SQ.getWithInstruction(Sh0))); in reassociateShiftAmtsOfTwoSameDirectionShifts() 1020 const SimplifyQuery Q = SQ.getWithInstruction(&I); in visitShl() 1258 SQ.getWithInstruction(&I))) in visitLShr() 1575 const SimplifyQuery Q = SQ.getWithInstruction(&I); in visitLShr() 1669 SQ.getWithInstruction(&I))) in visitAShr() 1760 const SimplifyQuery Q = SQ.getWithInstruction(&I); in visitAShr()
|
| H A D | InstCombineAddSub.cpp | 1001 const SimplifyQuery Q = SQ.getWithInstruction(&Add); in foldAddWithConstant() 1489 SQ.getWithInstruction(&I))) in visitAdd() 1627 if (haveNoCommonBitsSet(LHSCache, RHSCache, SQ.getWithInstruction(&I))) in visitAdd() 1784 haveNoCommonBitsSet(A, B, SQ.getWithInstruction(&I))) in visitAdd() 1890 SQ.getWithInstruction(&I))) in visitFAdd() 2115 SQ.getWithInstruction(&I))) in visitSub() 2332 Op1, 0, SQ.getWithInstruction(&I).getWithoutDomCondCache()); in visitSub() 2749 getSimplifyQuery().getWithInstruction(&I))) in visitFNeg() 2833 getSimplifyQuery().getWithInstruction(&I))) in visitFSub() 2870 cannotBeNegativeZero(Op0, 0, getSimplifyQuery().getWithInstruction(&I))) { in visitFSub()
|
| H A D | InstCombineCompares.cpp | 1189 cast<BinaryOperator>(Val), SQ.getWithInstruction(Val), in foldSignBitTest() 1211 if (isKnownPositive(A, SQ.getWithInstruction(&Cmp))) in foldICmpWithZero() 1213 if (isKnownPositive(B, SQ.getWithInstruction(&Cmp))) in foldICmpWithZero() 1253 const SimplifyQuery Q = SQ.getWithInstruction(&Cmp); in foldICmpWithZero() 3118 const SimplifyQuery Q = SQ.getWithInstruction(&Cmp); in foldICmpAddConstant() 3999 const SimplifyQuery Q = SQ.getWithInstruction(&Cmp); in foldICmpIntrinsicWithConstant() 4580 /*isNUW=*/false, SQ.getWithInstruction(&I))); in foldShiftIntoShiftInAnotherHandOfAndInICmp() 4822 if (isKnownNegative(Op1, IC.getSimplifyQuery().getWithInstruction(&I))) in foldICmpAndXX() 4895 const SimplifyQuery Q = SQ.getWithInstruction(&I); in foldICmpBinOp() 5386 if (isKnownNonNegative(Z, SQ.getWithInstruction(&I)) && in foldICmpWithMinMax() [all …]
|
| H A D | InstCombineInternal.h | 208 getSimplifyQuery().getWithInstruction(CtxI)); 216 Val, Interested, Depth, getSimplifyQuery().getWithInstruction(CtxI));
|
| H A D | InstCombineVectorOps.cpp | 402 SQ.getWithInstruction(&EI))) in visitExtractElementInst() 1151 SQ.getWithInstruction(&I))) in visitInsertValueInst() 1612 VecOp, ScalarOp, IdxOp, SQ.getWithInstruction(&IE))) in visitInsertElementInst() 2266 Shuf, getSimplifyQuery().getWithInstruction(&Shuf))) in foldSelectShuffle() 2794 SimplifyQuery ShufQuery = SQ.getWithInstruction(&SVI); in visitShuffleVectorInst()
|
| H A D | InstCombineCasts.cpp | 1285 if (isKnownNonNegative(Src, SQ.getWithInstruction(&Zext))) { in visitZExt() 1443 if (isKnownNonNegative(Src, SQ.getWithInstruction(&Sext))) { in visitSExt() 1960 IC.getSimplifyQuery().getWithInstruction(&FI)); in foldFPtoI() 2075 isKnownNonNegative(Offset, SQ.getWithInstruction(&CI)))) in visitPtrToInt()
|
| H A D | InstCombinePHI.cpp | 1437 if (Value *V = simplifyInstruction(&PN, SQ.getWithInstruction(&PN))) in visitPHINode() 1540 if (isKnownNonZero(VA, getSimplifyQuery().getWithInstruction(CtxI))) { in visitPHINode()
|
| H A D | InstCombineSelect.cpp | 103 IC.getSimplifyQuery().getWithInstruction(&Sel))) in foldSelectBinOpIdentity() 3591 SQ.getWithInstruction(&SI))) in visitSelectInst() 4008 if (Value *V = simplifyAndInst(CondVal, Mask, SQ.getWithInstruction(&SI))) in visitSelectInst() 4043 SQ.getWithInstruction(&SI))) in visitSelectInst() 4093 SimplifyQuery Q = SQ.getWithInstruction(&SI).getWithCondContext(CC); in visitSelectInst()
|
| H A D | InstCombineAndOrXor.cpp | 2298 IC.getSimplifyQuery().getWithInstruction(I))) in simplifyAndOrWithOpReplaced() 2313 SQ.getWithInstruction(&I))) in visitAnd() 3279 const SimplifyQuery Q = SQ.getWithInstruction(&I); in foldAndOrOfICmps() 3501 SQ.getWithInstruction(&I))) in visitOr() 4501 isKnownNegative(X, SQ.getWithInstruction(NotVal))) in foldNot() 4635 SQ.getWithInstruction(&I))) in visitXor()
|
| H A D | InstCombineLoadStoreAlloca.cpp | 1008 if (Value *Res = simplifyLoadInst(&LI, Op, SQ.getWithInstruction(&LI))) in visitLoadInst()
|
| H A D | InstCombineSimplifyDemanded.cpp | 72 0, SQ.getWithInstruction(&Inst)); in SimplifyDemandedInstructionBits()
|
| /src/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 346 SimplifyQuery SQ = IC.getSimplifyQuery().getWithInstruction(&I); in canSimplifyLegacyMulToMul()
|
| /src/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 549 Q.getWithInstruction(InTI), MaxRecurse) in threadBinOpOverPHI() 551 Q.getWithInstruction(InTI), MaxRecurse); in threadBinOpOverPHI() 595 Value *V = simplifyCmpInst(Pred, Incoming, RHS, Q.getWithInstruction(InTI), in threadCmpOverPHI() 7065 const SimplifyQuery Q = SQ.CxtI ? SQ : SQ.getWithInstruction(I); in simplifyInstructionWithOperands()
|
| H A D | ValueTracking.cpp | 5914 Q.getWithoutCondContext().getWithInstruction( in computeKnownFPClass()
|