Home
last modified time | relevance | path

Searched refs:getWithInstruction (Results 1 – 21 of 21) sorted by relevance

/src/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h433 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 DSimplifyQuery.h107 SimplifyQuery getWithInstruction(const Instruction *I) const { in getWithInstruction() function
/src/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopInstSimplify.cpp98 Value *V = simplifyInstruction(&I, SQ.getWithInstruction(&I)); in simplifyLoopInst()
H A DNewGVN.cpp1077 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 DInstCombineMulDivRem.cpp199 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 DInstructionCombining.cpp451 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 DInstCombineCalls.cpp613 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 DInstCombineShifts.cpp111 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 DInstCombineAddSub.cpp1001 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 DInstCombineCompares.cpp1189 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 DInstCombineInternal.h208 getSimplifyQuery().getWithInstruction(CtxI));
216 Val, Interested, Depth, getSimplifyQuery().getWithInstruction(CtxI));
H A DInstCombineVectorOps.cpp402 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 DInstCombineCasts.cpp1285 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 DInstCombinePHI.cpp1437 if (Value *V = simplifyInstruction(&PN, SQ.getWithInstruction(&PN))) in visitPHINode()
1540 if (isKnownNonZero(VA, getSimplifyQuery().getWithInstruction(CtxI))) { in visitPHINode()
H A DInstCombineSelect.cpp103 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 DInstCombineAndOrXor.cpp2298 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 DInstCombineLoadStoreAlloca.cpp1008 if (Value *Res = simplifyLoadInst(&LI, Op, SQ.getWithInstruction(&LI))) in visitLoadInst()
H A DInstCombineSimplifyDemanded.cpp72 0, SQ.getWithInstruction(&Inst)); in SimplifyDemandedInstructionBits()
/src/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp346 SimplifyQuery SQ = IC.getSimplifyQuery().getWithInstruction(&I); in canSimplifyLegacyMulToMul()
/src/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp549 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 DValueTracking.cpp5914 Q.getWithoutCondContext().getWithInstruction( in computeKnownFPClass()