| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 170 static Instruction *simplifyAllocaArraySize(InstCombinerImpl &IC, in simplifyAllocaArraySize() 247 PointerReplacer(InstCombinerImpl &IC) : IC(IC) {} in PointerReplacer() 258 InstCombinerImpl ⁣ 365 Instruction *InstCombinerImpl::visitAllocaInst(AllocaInst &AI) { in visitAllocaInst() 588 static Instruction *combineLoadToOperationType(InstCombinerImpl &IC, in combineLoadToOperationType() 831 static bool canReplaceGEPIdxWithZero(InstCombinerImpl &IC, in canReplaceGEPIdxWithZero() 949 Instruction *InstCombinerImpl::visitLoadInst(LoadInst &LI) { in visitLoadInst() 1064 static Value *likeBitCastFromVector(InstCombinerImpl &IC, Value *V) { in likeBitCastFromVector() 1303 static bool removeBitcastsFromLoadStoreOnMinMax(InstCombinerImpl &IC, in removeBitcastsFromLoadStoreOnMinMax() 1352 Instruction *InstCombinerImpl::visitStoreInst(StoreInst &SI) { in visitStoreInst() [all …]
|
| H A D | InstCombineCasts.cpp | 250 InstCombinerImpl::isEliminableCastPair(const CastInst *CI1, in isEliminableCastPair() 640 Instruction *InstCombinerImpl::narrowBinOp(TruncInst &Trunc) { in narrowBinOp() 745 Instruction *InstCombinerImpl::visitTrunc(TruncInst &Trunc) { in visitTrunc() 1229 Instruction *InstCombinerImpl::visitZExt(ZExtInst &CI) { in visitZExt() 1505 Instruction *InstCombinerImpl::visitSExt(SExtInst &CI) { in visitSExt() 1924 Instruction *InstCombinerImpl::visitFPExt(CastInst &FPExt) { in visitFPExt() 1942 Instruction *InstCombinerImpl::foldItoFPtoI(CastInst &FI) { in foldItoFPtoI() 1982 Instruction *InstCombinerImpl::visitFPToUI(FPToUIInst &FI) { in visitFPToUI() 1989 Instruction *InstCombinerImpl::visitFPToSI(FPToSIInst &FI) { in visitFPToSI() 1996 Instruction *InstCombinerImpl::visitUIToFP(CastInst &CI) { in visitUIToFP() [all …]
|
| H A D | InstructionCombining.cpp | 201 Value *InstCombinerImpl::EmitGEPOffset(User *GEP) { in EmitGEPOffset() 214 bool InstCombinerImpl::shouldChangeType(unsigned FromWidth, in shouldChangeType() 311 InstCombinerImpl &IC) { in simplifyAssocCastAssoc() 616 Value *InstCombinerImpl::tryFactorization(BinaryOperator &I, in tryFactorization() 894 void InstCombinerImpl::freelyInvertAllUsersOf(Value *I) { in freelyInvertAllUsersOf() 918 Value *InstCombinerImpl::dyn_castNegVal(Value *V) const { in dyn_castNegVal() 1001 Instruction *InstCombinerImpl::FoldOpIntoSelect(Instruction &Op, in FoldOpIntoSelect() 2849 Instruction *InstCombinerImpl::visitFree(CallInst &FI) { in visitFree() 3600 bool InstCombinerImpl::freezeDominatedUses(FreezeInst &FI) { in freezeDominatedUses() 3616 Instruction *InstCombinerImpl::visitFreeze(FreezeInst &I) { in visitFreeze() [all …]
|
| H A D | InstCombineMulDivRem.cpp | 50 static Value *simplifyValueKnownNonZero(Value *V, InstCombinerImpl &IC, in simplifyValueKnownNonZero() 142 Instruction *InstCombinerImpl::visitMul(BinaryOperator &I) { in visitMul() 428 Instruction *InstCombinerImpl::visitFMul(BinaryOperator &I) { in visitFMul() 895 InstCombinerImpl &IC) { in foldUDivPow2Cst() 908 InstCombinerImpl &IC) { in foldUDivShl() 1007 Instruction *InstCombinerImpl::visitUDiv(BinaryOperator &I) { in visitUDiv() 1101 Instruction *InstCombinerImpl::visitSDiv(BinaryOperator &I) { in visitSDiv() 1328 Instruction *InstCombinerImpl::visitFDiv(BinaryOperator &I) { in visitFDiv() 1475 Instruction *InstCombinerImpl::visitURem(BinaryOperator &I) { in visitURem() 1526 Instruction *InstCombinerImpl::visitSRem(BinaryOperator &I) { in visitSRem() [all …]
|
| H A D | InstCombineCompares.cpp | 1010 Instruction *InstCombinerImpl::foldAllocaCmp(ICmpInst &ICI, in foldAllocaCmp() 1348 Instruction *InstCombinerImpl::foldSignBitTest(ICmpInst &I) { in foldSignBitTest() 1379 Instruction *InstCombinerImpl::foldICmpWithZero(ICmpInst &Cmp) { in foldICmpWithZero() 1658 Instruction *InstCombinerImpl::foldICmpAndShift(ICmpInst &Cmp, in foldICmpAndShift() 1919 Instruction *InstCombinerImpl::foldICmpOrConstant(ICmpInst &Cmp, in foldICmpOrConstant() 3148 Instruction *InstCombinerImpl::foldICmpEqIntrinsicWithConstant( in foldICmpEqIntrinsicWithConstant() 3836 Instruction *InstCombinerImpl::foldICmpBinOp(ICmpInst &I, in foldICmpBinOp() 4305 Instruction *InstCombinerImpl::foldICmpEquality(ICmpInst &I) { in foldICmpEquality() 5008 bool InstCombinerImpl::dominatesAllUses(const Instruction *DI, in dominatesAllUses() 5679 Instruction *InstCombinerImpl::visitICmpInst(ICmpInst &I) { in visitICmpInst() [all …]
|
| H A D | InstCombinePHI.cpp | 42 void InstCombinerImpl::PHIArgMergedDebugLoc(Instruction *Inst, PHINode &PN) { in PHIArgMergedDebugLoc() 105 Instruction *InstCombinerImpl::foldIntegerTypedPHI(PHINode &PN) { in foldIntegerTypedPHI() 305 InstCombinerImpl::foldPHIArgInsertValueInstructionIntoPHI(PHINode &PN) { in foldPHIArgInsertValueInstructionIntoPHI() 345 InstCombinerImpl::foldPHIArgExtractValueInstructionIntoPHI(PHINode &PN) { in foldPHIArgExtractValueInstructionIntoPHI() 381 Instruction *InstCombinerImpl::foldPHIArgBinOpIntoPHI(PHINode &PN) { in foldPHIArgBinOpIntoPHI() 474 Instruction *InstCombinerImpl::foldPHIArgGEPIntoPHI(PHINode &PN) { in foldPHIArgGEPIntoPHI() 635 Instruction *InstCombinerImpl::foldPHIArgLoadIntoPHI(PHINode &PN) { in foldPHIArgLoadIntoPHI() 749 Instruction *InstCombinerImpl::foldPHIArgZextsIntoPHI(PHINode &Phi) { in foldPHIArgZextsIntoPHI() 823 Instruction *InstCombinerImpl::foldPHIArgOpIntoPHI(PHINode &PN) { in foldPHIArgOpIntoPHI() 1054 Instruction *InstCombinerImpl::SliceUpIllegalIntegerPHI(PHINode &FirstPhi) { in SliceUpIllegalIntegerPHI() [all …]
|
| H A D | InstCombineCalls.cpp | 226 Instruction *InstCombinerImpl::SimplifyAnyMemSet(AnyMemSetInst *MI) { in SimplifyAnyMemSet() 288 Value *InstCombinerImpl::simplifyMaskedLoad(IntrinsicInst &II) { in simplifyMaskedLoad() 677 removeTriviallyEmptyRange(IntrinsicInst &EndI, InstCombinerImpl &IC, in removeTriviallyEmptyRange() 704 Instruction *InstCombinerImpl::visitVAEndInst(VAEndInst &I) { in visitVAEndInst() 801 Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) { in visitCallInst() 2073 Instruction *InstCombinerImpl::visitFenceInst(FenceInst &FI) { in visitFenceInst() 2083 Instruction *InstCombinerImpl::visitInvokeInst(InvokeInst &II) { in visitInvokeInst() 2088 Instruction *InstCombinerImpl::visitCallBrInst(CallBrInst &CBI) { in visitCallBrInst() 2135 Instruction *InstCombinerImpl::tryOptimizeCall(CallInst *CI) { in tryOptimizeCall() 2296 Instruction *InstCombinerImpl::visitCallBase(CallBase &Call) { in visitCallBase() [all …]
|
| H A D | InstCombineShifts.cpp | 59 Value *InstCombinerImpl::reassociateShiftAmtsOfTwoSameDirectionShifts( in reassociateShiftAmtsOfTwoSameDirectionShifts() 372 Instruction *InstCombinerImpl::commonShiftTransforms(BinaryOperator &I) { in commonShiftTransforms() 433 InstCombinerImpl &IC, Instruction *CxtI) { in canEvaluateShiftedShift() 484 InstCombinerImpl &IC, Instruction *CxtI) { in canEvaluateShifted() 595 InstCombinerImpl &IC, const DataLayout &DL) { in getShiftedValue() 662 Instruction *InstCombinerImpl::FoldShiftByConstant(Value *Op0, Constant *Op1, in FoldShiftByConstant() 891 Instruction *InstCombinerImpl::visitShl(BinaryOperator &I) { in visitShl() 1038 Instruction *InstCombinerImpl::visitLShr(BinaryOperator &I) { in visitLShr() 1196 InstCombinerImpl::foldVariableSignZeroExtensionOfVariableHighBitExtract( in foldVariableSignZeroExtensionOfVariableHighBitExtract() 1264 Instruction *InstCombinerImpl::visitAShr(BinaryOperator &I) { in visitAShr()
|
| H A D | InstCombineInternal.h | 60 class LLVM_LIBRARY_VISIBILITY InstCombinerImpl final 62 public InstVisitor<InstCombinerImpl, Instruction *> { 64 InstCombinerImpl(InstCombineWorklist &Worklist, BuilderTy &Builder, in InstCombinerImpl() function 73 virtual ~InstCombinerImpl() {} in ~InstCombinerImpl() 782 InstCombinerImpl &IC);
|
| H A D | InstCombineSelect.cpp | 62 InstCombinerImpl &IC) { in foldSelectBinOpIdentity() 1043 InstCombinerImpl &IC) { in canonicalizeMinMaxWithConstant() 1081 InstCombinerImpl &IC) { in canonicalizeAbsNabs() 1121 Instruction *InstCombinerImpl::foldSelectValueEquivalence(SelectInst &Sel, in foldSelectValueEquivalence() 1371 InstCombinerImpl &IC) { in tryToReuseConstantFromSelectInComparison() 1438 Instruction *InstCombinerImpl::foldSelectInstWithICmp(SelectInst &SI, in foldSelectInstWithICmp() 1591 Instruction *InstCombinerImpl::foldSPFofSPF(Instruction *Inner, in foldSPFofSPF() 1912 Instruction *InstCombinerImpl::foldSelectExtConst(SelectInst &Sel) { in foldSelectExtConst() 2185 Instruction *InstCombinerImpl::matchSAddSubSat(SelectInst &MinMax1) { in matchSAddSubSat() 2428 Instruction *InstCombinerImpl::foldVectorSelect(SelectInst &Sel) { in foldVectorSelect() [all …]
|
| H A D | InstCombineAndOrXor.cpp | 120 Value *InstCombinerImpl::insertRangeTest(Value *V, const APInt &Lo, in insertRangeTest() 799 Value *InstCombinerImpl::foldAndOrOfICmpsOfAndWithPow2(ICmpInst *LHS, in foldAndOrOfICmpsOfAndWithPow2() 1206 Value *InstCombinerImpl::foldAndOfICmps(ICmpInst *LHS, ICmpInst *RHS, in foldAndOfICmps() 1551 bool InstCombinerImpl::shouldOptimizeCast(CastInst *CI) { in shouldOptimizeCast() 1784 Instruction *InstCombinerImpl::visitAnd(BinaryOperator &I) { in visitAnd() 2096 Instruction *InstCombinerImpl::matchBSwapOrBitReverse(Instruction &I, in matchBSwapOrBitReverse() 2286 Value *InstCombinerImpl::getSelectCondition(Value *A, Value *B) { in getSelectCondition() 2364 Value *InstCombinerImpl::foldOrOfICmps(ICmpInst *LHS, ICmpInst *RHS, in foldOrOfICmps() 2630 Instruction *InstCombinerImpl::visitOr(BinaryOperator &I) { in visitOr() 3033 Value *InstCombinerImpl::foldXorOfICmps(ICmpInst *LHS, ICmpInst *RHS, in foldXorOfICmps() [all …]
|
| H A D | InstCombineAtomicRMW.cpp | 98 Instruction *InstCombinerImpl::visitAtomicRMWInst(AtomicRMWInst &RMWI) { in visitAtomicRMWInst()
|
| H A D | InstCombineSimplifyDemanded.cpp | 55 bool InstCombinerImpl::SimplifyDemandedInstructionBits(Instruction &Inst) { in SimplifyDemandedInstructionBits() 71 bool InstCombinerImpl::SimplifyDemandedBits(Instruction *I, unsigned OpNo, in SimplifyDemandedBits() 108 Value *InstCombinerImpl::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits() 859 Value *InstCombinerImpl::SimplifyMultipleUseDemandedBits( in SimplifyMultipleUseDemandedBits() 1005 Value *InstCombinerImpl::simplifyShrShlDemandedBits( in simplifyShrShlDemandedBits() 1080 Value *InstCombinerImpl::SimplifyDemandedVectorElts(Value *V, in SimplifyDemandedVectorElts()
|
| H A D | InstCombineAddSub.cpp | 864 Instruction *InstCombinerImpl::foldAddWithConstant(BinaryOperator &Add) { in foldAddWithConstant() 1073 Value *InstCombinerImpl::SimplifyAddWithRemainder(BinaryOperator &I) { in SimplifyAddWithRemainder() 1149 Instruction *InstCombinerImpl:: 1287 Instruction *InstCombinerImpl::visitAdd(BinaryOperator &I) { in visitAdd() 1521 Instruction *InstCombinerImpl::visitFAdd(BinaryOperator &I) { in visitFAdd() 1656 Value *InstCombinerImpl::OptimizePointerDifference(Value *LHS, Value *RHS, in OptimizePointerDifference() 1731 Instruction *InstCombinerImpl::visitSub(BinaryOperator &I) { in visitSub() 2204 Instruction *InstCombinerImpl::visitFNeg(UnaryOperator &I) { in visitFNeg() 2256 Instruction *InstCombinerImpl::visitFSub(BinaryOperator &I) { in visitFSub()
|
| H A D | InstCombineVectorOps.cpp | 94 Instruction *InstCombinerImpl::scalarizePHI(ExtractElementInst &EI, in scalarizePHI() 336 Instruction *InstCombinerImpl::visitExtractElementInst(ExtractElementInst &EI) { in visitExtractElementInst() 607 InstCombinerImpl &IC) { in replaceExtractElements() 690 InstCombinerImpl &IC) { in collectShuffleElements() 774 Instruction *InstCombinerImpl::foldAggregateConstructionIntoAggregateReuse( in foldAggregateConstructionIntoAggregateReuse() 1054 Instruction *InstCombinerImpl::visitInsertValueInst(InsertValueInst &I) { in visitInsertValueInst() 1402 Instruction *InstCombinerImpl::visitInsertElementInst(InsertElementInst &IE) { in visitInsertElementInst() 2195 InstCombinerImpl &IC) { in foldShuffleWithInsert() 2347 Instruction *InstCombinerImpl::visitShuffleVectorInst(ShuffleVectorInst &SVI) { in visitShuffleVectorInst()
|
| H A D | InstCombineNegator.cpp | 490 InstCombinerImpl &IC) { in Negate()
|