| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/ |
| H A D | InstCombiner.h | 435 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 D | SimplifyQuery.h | 108 SimplifyQuery getWithInstruction(const Instruction *I) const { in getWithInstruction() function
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopInstSimplify.cpp | 95 Value *V = simplifyInstruction(&I, SQ.getWithInstruction(&I)); in simplifyLoopInst()
|
| H A D | NewGVN.cpp | 1114 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 D | InstCombineMulDivRem.cpp | 193 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 D | InstCombineCalls.cpp | 625 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 D | InstructionCombining.cpp | 480 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 D | InstCombineShifts.cpp | 111 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 D | InstCombineAddSub.cpp | 1007 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 D | InstCombineCompares.cpp | 1217 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 D | InstCombineInternal.h | 208 Val, FMF, Interested, getSimplifyQuery().getWithInstruction(CtxI), 217 Val, Interested, getSimplifyQuery().getWithInstruction(CtxI), Depth);
|
| H A D | InstCombineCasts.cpp | 952 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 D | InstCombineVectorOps.cpp | 402 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 D | InstCombineAndOrXor.cpp | 2355 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 D | InstCombineSelect.cpp | 104 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 D | InstCombinePHI.cpp | 1440 if (Value *V = simplifyInstruction(&PN, SQ.getWithInstruction(&PN))) in visitPHINode() 1537 if (isKnownNonZero(VA, getSimplifyQuery().getWithInstruction(CtxI))) { in visitPHINode()
|
| H A D | InstCombineLoadStoreAlloca.cpp | 1063 if (Value *Res = simplifyLoadInst(&LI, Op, SQ.getWithInstruction(&LI))) in visitLoadInst()
|
| H A D | InstCombineSimplifyDemanded.cpp | 78 SQ.getWithInstruction(&Inst)); in SimplifyDemandedInstructionBits()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 506 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 D | ValueTracking.cpp | 1724 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 D | AMDGPUInstCombineIntrinsic.cpp | 405 SimplifyQuery SQ = IC.getSimplifyQuery().getWithInstruction(&I); in canSimplifyLegacyMulToMul()
|