Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h435 llvm::computeKnownBits(V, Known, SQ.getWithInstruction(CxtI), Depth);
440 return llvm::computeKnownBits(V, SQ.getWithInstruction(CxtI), Depth);
446 return llvm::isKnownToBeAPowerOfTwo(V, OrZero, SQ.getWithInstruction(CxtI),
453 return llvm::MaskedValueIsZero(V, Mask, SQ.getWithInstruction(CxtI), Depth);
473 LHS, RHS, SQ.getWithInstruction(CxtI), IsNSW);
479 SQ.getWithInstruction(CxtI)); in computeOverflowForSignedMul()
487 SQ.getWithInstruction(CxtI)); in computeOverflowForUnsignedAdd()
495 SQ.getWithInstruction(CxtI)); in computeOverflowForSignedAdd()
502 SQ.getWithInstruction(CxtI)); in computeOverflowForUnsignedSub()
508 SQ.getWithInstruction(CxtI)); in computeOverflowForSignedSub()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DSimplifyQuery.h108 SimplifyQuery getWithInstruction(const Instruction *I) const { in getWithInstruction() function
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopInstSimplify.cpp95 Value *V = simplifyInstruction(&I, SQ.getWithInstruction(&I)); in simplifyLoopInst()
H A DNewGVN.cpp1114 const SimplifyQuery Q = SQ.getWithInstruction(I); in createBinaryExpression()
1188 const SimplifyQuery Q = SQ.getWithInstruction(I); in createExpression()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineMulDivRem.cpp193 SQ.getWithInstruction(&I))) in visitMul()
956 SQ.getWithInstruction(&I))) in visitFMul()
990 ((I.hasNoInfs() && isKnownNeverNaN(Op0, SQ.getWithInstruction(&I))) || in visitFMul()
991 isKnownNeverNaN(&I, SQ.getWithInstruction(&I)))) { in visitFMul()
1673 SQ.getWithInstruction(&I))) in visitUDiv()
1753 SQ.getWithInstruction(&I))) in visitSDiv()
1854 if (isKnownNonNegative(Op1, SQ.getWithInstruction(&I))) { in visitSDiv()
2116 SQ.getWithInstruction(&I))) in visitFDiv()
2408 SQ.getWithInstruction(&I))) in visitURem()
2465 simplifyICmpInst(ICmpInst::ICMP_ULT, X, Op1, SQ.getWithInstruction(&I)); in visitURem()
[all …]
H A DInstCombineCalls.cpp625 isKnownNonZero(Op0, IC.getSimplifyQuery().getWithInstruction(&II))) { in foldCttzCtlz()
716 isKnownNonZero(Op0, IC.getSimplifyQuery().getWithInstruction(&II))) in foldCtpop()
1690 SQ.getWithInstruction(&CI))) in visitCallInst()
1812 if (simplifyConstrainedFPCall(&CI, SQ.getWithInstruction(&CI))) in visitCallInst()
1852 getKnownSignOrZero(IIOperand, SQ.getWithInstruction(II))) { in visitCallInst()
2053 auto KnownSign = getKnownSign(X, SQ.getWithInstruction(II)); in visitCallInst()
2155 I0, IsSigned, SQ.getWithInstruction(II)); in visitCallInst()
2331 if (!isKnownNonZero(ShAmtC, SQ.getWithInstruction(II))) in visitCallInst()
2430 isKnownNonZero(II, getSimplifyQuery().getWithInstruction(II)))) { in visitCallInst()
2761 II->getFastMathFlags(), SQ.getWithInstruction(II))) in visitCallInst()
[all …]
H A DInstructionCombining.cpp480 if (Value *V = simplifyBinOp(Opcode, B, C, SQ.getWithInstruction(&I))) { in SimplifyAssociativeOrCommutative()
513 if (Value *V = simplifyBinOp(Opcode, A, B, SQ.getWithInstruction(&I))) { in SimplifyAssociativeOrCommutative()
541 if (Value *V = simplifyBinOp(Opcode, C, A, SQ.getWithInstruction(&I))) { in SimplifyAssociativeOrCommutative()
561 if (Value *V = simplifyBinOp(Opcode, C, A, SQ.getWithInstruction(&I))) { in SimplifyAssociativeOrCommutative()
718 V = simplifyBinOp(TopLevelOpcode, B, D, SQ.getWithInstruction(&I)); in tryFactorization()
738 V = simplifyBinOp(TopLevelOpcode, A, C, SQ.getWithInstruction(&I)); in tryFactorization()
1171 auto SQDistributive = SQ.getWithInstruction(&I).getWithoutUndef(); in foldUsingDistributiveLaws()
1210 auto SQDistributive = SQ.getWithInstruction(&I).getWithoutUndef(); in foldUsingDistributiveLaws()
1326 SimplifyQuery Q = SQ.getWithInstruction(&I); in SimplifySelectsFeedingBinaryOp()
1800 &I, Ops, SQ.getWithInstruction(InBB->getTerminator())); in simplifyInstructionWithPHI()
[all …]
H A DInstCombineShifts.cpp111 SQ.getWithInstruction(Sh0))); in reassociateShiftAmtsOfTwoSameDirectionShifts()
1042 const SimplifyQuery Q = SQ.getWithInstruction(&I); in visitShl()
1280 SQ.getWithInstruction(&I))) in visitLShr()
1602 const SimplifyQuery Q = SQ.getWithInstruction(&I); in visitLShr()
1712 SQ.getWithInstruction(&I))) in visitAShr()
1808 const SimplifyQuery Q = SQ.getWithInstruction(&I); in visitAShr()
H A DInstCombineAddSub.cpp1007 const SimplifyQuery Q = SQ.getWithInstruction(&Add); in foldAddWithConstant()
1524 SQ.getWithInstruction(&I))) in visitAdd()
1682 if (haveNoCommonBitsSet(LHSCache, RHSCache, SQ.getWithInstruction(&I))) in visitAdd()
1875 haveNoCommonBitsSet(A, B, SQ.getWithInstruction(&I))) in visitAdd()
1991 SQ.getWithInstruction(&I))) in visitFAdd()
2241 SQ.getWithInstruction(&I))) in visitSub()
2493 Op1, SQ.getWithInstruction(&I).getWithoutDomCondCache()); in visitSub()
2979 getSimplifyQuery().getWithInstruction(&I))) in visitFNeg()
3070 getSimplifyQuery().getWithInstruction(&I))) in visitFSub()
3107 cannotBeNegativeZero(Op0, getSimplifyQuery().getWithInstruction(&I))) { in visitFSub()
H A DInstCombineCompares.cpp1217 cast<BinaryOperator>(Val), SQ.getWithInstruction(Val), in foldSignBitTest()
1239 if (isKnownPositive(A, SQ.getWithInstruction(&Cmp))) in foldICmpWithZero()
1241 if (isKnownPositive(B, SQ.getWithInstruction(&Cmp))) in foldICmpWithZero()
1281 const SimplifyQuery Q = SQ.getWithInstruction(&Cmp); in foldICmpWithZero()
3243 const SimplifyQuery Q = SQ.getWithInstruction(&Cmp); in foldICmpAddConstant()
3691 const SimplifyQuery Q = SQ.getWithInstruction(&Cmp); in foldICmpBinOpEqualityWithConstant()
4208 const SimplifyQuery Q = SQ.getWithInstruction(&Cmp); in foldICmpIntrinsicWithConstant()
4796 /*isNUW=*/false, SQ.getWithInstruction(&I))); in foldShiftIntoShiftInAnotherHandOfAndInICmp()
5035 if (isKnownNegative(Op1, IC.getSimplifyQuery().getWithInstruction(&I))) in foldICmpAndXX()
5141 const SimplifyQuery Q = SQ.getWithInstruction(&I); in foldICmpBinOp()
[all …]
H A DInstCombineInternal.h208 Val, FMF, Interested, getSimplifyQuery().getWithInstruction(CtxI),
217 Val, Interested, getSimplifyQuery().getWithInstruction(CtxI), Depth);
H A DInstCombineCasts.cpp952 isKnownNonZero(Src, SQ.getWithInstruction(&Trunc))) in visitTrunc()
1336 if (isKnownNonNegative(Src, SQ.getWithInstruction(&Zext))) { in visitZExt()
1494 if (isKnownNonNegative(Src, SQ.getWithInstruction(&Sext))) { in visitSExt()
2010 FI.getOperand(0), Mask, IC.getSimplifyQuery().getWithInstruction(&FI)); in foldFPtoI()
2898 if (Value *V = foldCopySignIdioms(CI, Builder, SQ.getWithInstruction(&CI))) in visitBitCast()
H A DInstCombineVectorOps.cpp402 SQ.getWithInstruction(&EI))) in visitExtractElementInst()
1229 SQ.getWithInstruction(&I))) in visitInsertValueInst()
1690 VecOp, ScalarOp, IdxOp, SQ.getWithInstruction(&IE))) in visitInsertElementInst()
2344 Shuf, getSimplifyQuery().getWithInstruction(&Shuf))) in foldSelectShuffle()
2873 SimplifyQuery ShufQuery = SQ.getWithInstruction(&SVI); in visitShuffleVectorInst()
H A DInstCombineAndOrXor.cpp2355 IC.getSimplifyQuery().getWithInstruction(I))) in simplifyAndOrWithOpReplaced()
2390 SQ.getWithInstruction(&I))) in visitAnd()
3337 const SimplifyQuery Q = SQ.getWithInstruction(&I); in foldAndOrOfICmps()
3557 SQ.getWithInstruction(&I))) in foldBooleanAndOr()
3749 SQ.getWithInstruction(&I))) in visitOr()
4767 isKnownNegative(X, SQ.getWithInstruction(NotVal))) in foldNot()
4901 SQ.getWithInstruction(&I))) in visitXor()
4938 if (Value *XorAC = simplifyXorInst(X, M, SQ.getWithInstruction(&I))) in visitXor()
4941 if (Value *XorBC = simplifyXorInst(Y, M, SQ.getWithInstruction(&I))) in visitXor()
H A DInstCombineSelect.cpp104 IC.getSimplifyQuery().getWithInstruction(&Sel))) in foldSelectBinOpIdentity()
2903 isKnownNeverNaN(X, IC.getSimplifyQuery().getWithInstruction( in foldSelectWithFCmpToFabs()
3881 KnownBits Known = computeKnownBits(V, SQ.getWithInstruction(&Sel)); in foldSelectBitTest()
3921 SQ.getWithInstruction(&SI))) in visitSelectInst()
4368 if (Value *V = simplifyAndInst(CondVal, Mask, SQ.getWithInstruction(&SI))) in visitSelectInst()
4409 SQ.getWithInstruction(&SI))) in visitSelectInst()
4459 SimplifyQuery Q = SQ.getWithInstruction(&SI).getWithCondContext(CC); in visitSelectInst()
H A DInstCombinePHI.cpp1440 if (Value *V = simplifyInstruction(&PN, SQ.getWithInstruction(&PN))) in visitPHINode()
1537 if (isKnownNonZero(VA, getSimplifyQuery().getWithInstruction(CtxI))) { in visitPHINode()
H A DInstCombineLoadStoreAlloca.cpp1063 if (Value *Res = simplifyLoadInst(&LI, Op, SQ.getWithInstruction(&LI))) in visitLoadInst()
H A DInstCombineSimplifyDemanded.cpp78 SQ.getWithInstruction(&Inst)); in SimplifyDemandedInstructionBits()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp506 Q.getWithInstruction(InTI), MaxRecurse) in threadBinOpOverPHI()
508 Q.getWithInstruction(InTI), MaxRecurse); in threadBinOpOverPHI()
552 Value *V = simplifyCmpInst(Pred, Incoming, RHS, Q.getWithInstruction(InTI), in threadCmpOverPHI()
7108 const SimplifyQuery Q = SQ.CxtI ? SQ : SQ.getWithInstruction(I); in simplifyInstructionWithOperands()
H A DValueTracking.cpp1724 SimplifyQuery RecQ = Q.getWithoutCondContext().getWithInstruction(CxtI); in computeKnownBitsFromOperator()
5780 Q.getWithoutCondContext().getWithInstruction(CxtI), in computeKnownFPClass()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp405 SimplifyQuery SQ = IC.getSimplifyQuery().getWithInstruction(&I); in canSimplifyLegacyMulToMul()