Home
last modified time | relevance | path

Searched refs:InstCombinerImpl (Results 1 – 16 of 16) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp193 Value *InstCombinerImpl::EmitGEPOffset(User *GEP) { in EmitGEPOffset()
221 bool InstCombinerImpl::shouldChangeType(unsigned FromWidth, in shouldChangeType()
318 InstCombinerImpl &IC) { in simplifyAssocCastAssoc()
1367 Value *InstCombinerImpl::dyn_castNegVal(Value *V) const { in dyn_castNegVal()
3173 void InstCombinerImpl::handleUnreachableFrom( in handleUnreachableFrom()
3200 void InstCombinerImpl::handlePotentiallyDeadBlocks( in handlePotentiallyDeadBlocks()
4065 bool InstCombinerImpl::freezeOtherUses(FreezeInst &FI) { in freezeOtherUses()
4120 Instruction *InstCombinerImpl::visitFreeze(FreezeInst &I) { in visitFreeze()
4239 bool InstCombinerImpl::tryToSinkInstruction(Instruction *I, in tryToSinkInstruction()
4372 bool InstCombinerImpl::run() { in run()
[all …]
H A DInstCombineLoadStoreAlloca.cpp197 static Instruction *simplifyAllocaArraySize(InstCombinerImpl &IC, in simplifyAllocaArraySize()
251 PointerReplacer(InstCombinerImpl &IC, Instruction &Root, unsigned SrcAS) in PointerReplacer()
277 InstCombinerImpl ⁣
462 Instruction *InstCombinerImpl::visitAllocaInst(AllocaInst &AI) { in visitAllocaInst()
649 static Instruction *combineLoadToOperationType(InstCombinerImpl &IC, in combineLoadToOperationType()
891 static bool canReplaceGEPIdxWithZero(InstCombinerImpl &IC, in canReplaceGEPIdxWithZero()
1007 Instruction *InstCombinerImpl::visitLoadInst(LoadInst &LI) { in visitLoadInst()
1119 static Value *likeBitCastFromVector(InstCombinerImpl &IC, Value *V) { in likeBitCastFromVector()
1218 static bool unpackStoreToAggregate(InstCombinerImpl &IC, StoreInst &SI) { in unpackStoreToAggregate()
1356 Instruction *InstCombinerImpl::visitStoreInst(StoreInst &SI) { in visitStoreInst()
[all …]
H A DInstCombineCasts.cpp30 Value *InstCombinerImpl::EvaluateInDifferentType(Value *V, Type *Ty, in EvaluateInDifferentType()
126 InstCombinerImpl::isEliminableCastPair(const CastInst *CI1, in isEliminableCastPair()
669 Instruction *InstCombinerImpl::visitTrunc(TruncInst &Trunc) { in visitTrunc()
1104 Instruction *InstCombinerImpl::visitZExt(ZExtInst &Zext) { in visitZExt()
1390 Instruction *InstCombinerImpl::visitSExt(SExtInst &Sext) { in visitSExt()
1853 Instruction *InstCombinerImpl::visitFPExt(CastInst &FPExt) { in visitFPExt()
1871 Instruction *InstCombinerImpl::foldItoFPtoI(CastInst &FI) { in foldItoFPtoI()
1911 Instruction *InstCombinerImpl::visitFPToUI(FPToUIInst &FI) { in visitFPToUI()
1918 Instruction *InstCombinerImpl::visitFPToSI(FPToSIInst &FI) { in visitFPToSI()
1925 Instruction *InstCombinerImpl::visitUIToFP(CastInst &CI) { in visitUIToFP()
[all …]
H A DInstCombinePHI.cpp43 void InstCombinerImpl::PHIArgMergedDebugLoc(Instruction *Inst, PHINode &PN) { in PHIArgMergedDebugLoc()
106 bool InstCombinerImpl::foldIntegerTypedPHI(PHINode &PN) { in foldIntegerTypedPHI()
307 Instruction *InstCombinerImpl::foldPHIArgIntToPtrToPHI(PHINode &PN) { in foldPHIArgIntToPtrToPHI()
331 InstCombinerImpl::foldPHIArgInsertValueInstructionIntoPHI(PHINode &PN) { in foldPHIArgInsertValueInstructionIntoPHI()
371 InstCombinerImpl::foldPHIArgExtractValueInstructionIntoPHI(PHINode &PN) { in foldPHIArgExtractValueInstructionIntoPHI()
407 Instruction *InstCombinerImpl::foldPHIArgBinOpIntoPHI(PHINode &PN) { in foldPHIArgBinOpIntoPHI()
502 Instruction *InstCombinerImpl::foldPHIArgGEPIntoPHI(PHINode &PN) { in foldPHIArgGEPIntoPHI()
665 Instruction *InstCombinerImpl::foldPHIArgLoadIntoPHI(PHINode &PN) { in foldPHIArgLoadIntoPHI()
789 Instruction *InstCombinerImpl::foldPHIArgZextsIntoPHI(PHINode &Phi) { in foldPHIArgZextsIntoPHI()
863 Instruction *InstCombinerImpl::foldPHIArgOpIntoPHI(PHINode &PN) { in foldPHIArgOpIntoPHI()
[all …]
H A DInstCombineCompares.cpp110 Instruction *InstCombinerImpl::foldCmpLoadFromIndexedGlobal( in foldCmpLoadFromIndexedGlobal()
833 bool InstCombinerImpl::foldAllocaCmp(AllocaInst *Alloca) { in foldAllocaCmp()
1170 Instruction *InstCombinerImpl::foldSignBitTest(ICmpInst &I) { in foldSignBitTest()
1486 InstCombinerImpl::foldICmpTruncWithTruncOrExt(ICmpInst &Cmp, in foldICmpTruncWithTruncOrExt()
1640 Instruction *InstCombinerImpl::foldICmpAndShift(ICmpInst &Cmp, in foldICmpAndShift()
4476 InstCombinerImpl &IC) { in foldICmpAndXX()
4500 InstCombinerImpl &IC) { in foldICmpOrXX()
4535 InstCombinerImpl &IC) { in foldICmpXorXX()
4562 Instruction *InstCombinerImpl::foldICmpBinOp(ICmpInst &I, in foldICmpBinOp()
6936 Instruction *InstCombinerImpl::visitICmpInst(ICmpInst &I) { in visitICmpInst()
[all …]
H A DInstCombineMulDivRem.cpp46 static Value *simplifyValueKnownNonZero(Value *V, InstCombinerImpl &IC, in simplifyValueKnownNonZero()
191 Instruction *InstCombinerImpl::visitMul(BinaryOperator &I) { in visitMul()
748 Instruction *InstCombinerImpl::visitFMul(BinaryOperator &I) { in visitFMul()
1337 InstCombinerImpl &IC) { in narrowUDivURem()
1378 Instruction *InstCombinerImpl::visitUDiv(BinaryOperator &I) { in visitUDiv()
1447 Instruction *InstCombinerImpl::visitSDiv(BinaryOperator &I) { in visitSDiv()
1710 Instruction *InstCombinerImpl::visitFDiv(BinaryOperator &I) { in visitFDiv()
1852 InstCombinerImpl &IC) { in simplifyIRemMulShl()
2008 Instruction *InstCombinerImpl::visitURem(BinaryOperator &I) { in visitURem()
2074 Instruction *InstCombinerImpl::visitSRem(BinaryOperator &I) { in visitSRem()
[all …]
H A DInstCombineShifts.cpp58 Value *InstCombinerImpl::reassociateShiftAmtsOfTwoSameDirectionShifts( in reassociateShiftAmtsOfTwoSameDirectionShifts()
402 Instruction *InstCombinerImpl::commonShiftTransforms(BinaryOperator &I) { in commonShiftTransforms()
511 InstCombinerImpl &IC, Instruction *CxtI) { in canEvaluateShiftedShift()
562 InstCombinerImpl &IC, Instruction *CxtI) { in canEvaluateShifted()
679 InstCombinerImpl &IC, const DataLayout &DL) { in getShiftedValue()
757 Instruction *InstCombinerImpl::FoldShiftByConstant(Value *Op0, Constant *C1, in FoldShiftByConstant()
887 Instruction *InstCombinerImpl::foldLShrOverflowBit(BinaryOperator &I) { in foldLShrOverflowBit()
1000 Instruction *InstCombinerImpl::visitShl(BinaryOperator &I) { in visitShl()
1235 Instruction *InstCombinerImpl::visitLShr(BinaryOperator &I) { in visitLShr()
1496 InstCombinerImpl::foldVariableSignZeroExtensionOfVariableHighBitExtract( in foldVariableSignZeroExtensionOfVariableHighBitExtract()
[all …]
H A DInstCombineCalls.cpp230 Instruction *InstCombinerImpl::SimplifyAnyMemSet(AnyMemSetInst *MI) { in SimplifyAnyMemSet()
306 Value *InstCombinerImpl::simplifyMaskedLoad(IntrinsicInst &II) { in simplifyMaskedLoad()
800 Instruction *InstCombinerImpl::visitVAEndInst(VAEndInst &I) { in visitVAEndInst()
1436 Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) { in visitCallInst()
3401 Instruction *InstCombinerImpl::visitFenceInst(FenceInst &FI) { in visitFenceInst()
3429 Instruction *InstCombinerImpl::visitInvokeInst(InvokeInst &II) { in visitInvokeInst()
3434 Instruction *InstCombinerImpl::visitCallBrInst(CallBrInst &CBI) { in visitCallBrInst()
3438 Instruction *InstCombinerImpl::tryOptimizeCall(CallInst *CI) { in tryOptimizeCall()
3539 bool InstCombinerImpl::annotateAnyAllocSite(CallBase &Call, in annotateAnyAllocSite()
3587 Instruction *InstCombinerImpl::visitCallBase(CallBase &Call) { in visitCallBase()
[all …]
H A DInstCombineSelect.cpp57 InstCombinerImpl &IC) { in foldSelectBinOpIdentity()
1175 InstCombinerImpl &IC) { in canonicalizeSPF()
1264 Instruction *InstCombinerImpl::foldSelectValueEquivalence(SelectInst &Sel, in foldSelectValueEquivalence()
1535 InstCombinerImpl &IC) { in tryToReuseConstantFromSelectInComparison()
1680 Instruction *InstCombinerImpl::foldSelectInstWithICmp(SelectInst &SI, in foldSelectInstWithICmp()
1858 Instruction *InstCombinerImpl::foldSPFofSPF(Instruction *Inner, in foldSPFofSPF()
2069 Instruction *InstCombinerImpl::foldSelectExtConst(SelectInst &Sel) { in foldSelectExtConst()
2411 Instruction *InstCombinerImpl::foldVectorSelect(SelectInst &Sel) { in foldVectorSelect()
2698 InstCombinerImpl &IC) { in foldSelectWithFCmpToFabs()
2937 Instruction *InstCombinerImpl::foldSelectOfBools(SelectInst &SI) { in foldSelectOfBools()
[all …]
H A DInstCombineInternal.h62 class LLVM_LIBRARY_VISIBILITY InstCombinerImpl final
64 public InstVisitor<InstCombinerImpl, Instruction *> {
66 InstCombinerImpl(InstructionWorklist &Worklist, BuilderTy &Builder, in InstCombinerImpl() function
75 virtual ~InstCombinerImpl() = default;
790 InstCombinerImpl &IC);
H A DInstCombineAtomicRMW.cpp103 Instruction *InstCombinerImpl::visitAtomicRMWInst(AtomicRMWInst &RMWI) { in visitAtomicRMWInst()
H A DInstCombineAndOrXor.cpp52 Value *InstCombinerImpl::insertRangeTest(Value *V, const APInt &Lo, in insertRangeTest()
706 Value *InstCombinerImpl::foldAndOrOfICmpsOfAndWithPow2(ICmpInst *LHS, in foldAndOrOfICmpsOfAndWithPow2()
1610 bool InstCombinerImpl::shouldOptimizeCast(CastInst *CI) { in shouldOptimizeCast()
1628 InstCombinerImpl &IC) { in foldLogicCastConstant()
2185 Instruction *InstCombinerImpl::visitAnd(BinaryOperator &I) { in visitAnd()
2982 Value *InstCombinerImpl::getSelectCondition(Value *A, Value *B, in getSelectCondition()
3344 Instruction *InstCombinerImpl::visitOr(BinaryOperator &I) { in visitOr()
4212 static Value *freelyInvert(InstCombinerImpl &IC, Value *Op, in freelyInvert()
4228 bool InstCombinerImpl::sinkNotIntoLogicalOp(Instruction &I) { in sinkNotIntoLogicalOp()
4315 Instruction *InstCombinerImpl::foldNot(BinaryOperator &I) { in foldNot()
[all …]
H A DInstCombineVectorOps.cpp100 Instruction *InstCombinerImpl::scalarizePHI(ExtractElementInst &EI, in scalarizePHI()
183 Instruction *InstCombinerImpl::foldBitcastExtElt(ExtractElementInst &Ext) { in foldBitcastExtElt()
398 Instruction *InstCombinerImpl::visitExtractElementInst(ExtractElementInst &EI) { in visitExtractElementInst()
689 InstCombinerImpl &IC) { in replaceExtractElements()
776 InstCombinerImpl &IC, bool &Rerun) { in collectShuffleElements()
861 Instruction *InstCombinerImpl::foldAggregateConstructionIntoAggregateReuse( in foldAggregateConstructionIntoAggregateReuse()
1141 Instruction *InstCombinerImpl::visitInsertValueInst(InsertValueInst &I) { in visitInsertValueInst()
1598 Instruction *InstCombinerImpl::visitInsertElementInst(InsertElementInst &IE) { in visitInsertElementInst()
2225 Instruction *InstCombinerImpl::foldSelectShuffle(ShuffleVectorInst &Shuf) { in foldSelectShuffle()
2584 InstCombinerImpl &IC) { in foldShuffleWithInsert()
[all …]
H A DInstCombineSimplifyDemanded.cpp68 bool InstCombinerImpl::SimplifyDemandedInstructionBits(Instruction &Inst, in SimplifyDemandedInstructionBits()
81 bool InstCombinerImpl::SimplifyDemandedInstructionBits(Instruction &Inst) { in SimplifyDemandedInstructionBits()
89 bool InstCombinerImpl::SimplifyDemandedBits(Instruction *I, unsigned OpNo, in SimplifyDemandedBits()
126 Value *InstCombinerImpl::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits()
1088 Value *InstCombinerImpl::SimplifyMultipleUseDemandedBits( in SimplifyMultipleUseDemandedBits()
1262 Value *InstCombinerImpl::simplifyShrShlDemandedBits( in simplifyShrShlDemandedBits()
1337 Value *InstCombinerImpl::SimplifyDemandedVectorElts(Value *V, in SimplifyDemandedVectorElts()
H A DInstCombineAddSub.cpp849 Instruction *InstCombinerImpl::foldAddWithConstant(BinaryOperator &Add) { in foldAddWithConstant()
1039 Instruction *InstCombinerImpl::foldSquareSumInt(BinaryOperator &I) { in foldSquareSumInt()
1050 Instruction *InstCombinerImpl::foldSquareSumFP(BinaryOperator &I) { in foldSquareSumFP()
1135 Value *InstCombinerImpl::SimplifyAddWithRemainder(BinaryOperator &I) { in SimplifyAddWithRemainder()
1265 Instruction *InstCombinerImpl::
1444 Instruction *InstCombinerImpl::visitAdd(BinaryOperator &I) { in visitAdd()
1827 Instruction *InstCombinerImpl::visitFAdd(BinaryOperator &I) { in visitFAdd()
2119 Instruction *InstCombinerImpl::visitSub(BinaryOperator &I) { in visitSub()
2703 Instruction *InstCombinerImpl::hoistFNegAboveFMulFDiv(Value *FNegOp, in hoistFNegAboveFMulFDiv()
2734 Instruction *InstCombinerImpl::visitFNeg(UnaryOperator &I) { in visitFNeg()
[all …]
H A DInstCombineNegator.cpp530 InstCombinerImpl &IC) { in Negate()