Home
last modified time | relevance | path

Searched refs:NewGEP (Results 1 – 14 of 14) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFASpaceCastSimplifyPass.cpp55 auto *NewGEP = cast<GetElementPtrInst>(GEP->clone()); in rewrite() local
56 NewGEP->setName(GEP->getName()); in rewrite()
57 NewGEP->insertAfter(OuterCast); in rewrite()
58 NewGEP->setOperand(0, InnerCast->getPointerOperand()); in rewrite()
60 NewGEP->mutateType(changeAddressSpace(GEPTy, AS)); in rewrite()
61 OuterCast->replaceAllUsesWith(NewGEP); in rewrite()
67 return NewGEP; in rewrite()
85 GetElementPtrInst *NewGEP = InsnChain.rewrite(); in run() local
86 for (User *U : NewGEP->users()) in run()
H A DBPFCheckAndAdjustIR.cpp441 auto *NewGEP = GEP->clone(); in aspaceWrapValue() local
442 NewGEP->insertAfter(GEP); in aspaceWrapValue()
443 NewGEP->mutateType(GEPTy->getPointerTo(0)); in aspaceWrapValue()
444 NewGEP->setOperand(GEP->getPointerOperandIndex(), WrappedPtr); in aspaceWrapValue()
445 NewGEP->setName(GEP->getName()); in aspaceWrapValue()
446 Cache[ToWrap] = NewGEP; in aspaceWrapValue()
447 return NewGEP; in aspaceWrapValue()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DNaryReassociate.cpp343 if (auto *NewGEP = tryReassociateGEPAtIndex(GEP, I - 1, in tryReassociateGEP() local
345 return NewGEP; in tryReassociateGEP()
382 if (auto *NewGEP = tryReassociateGEPAtIndex(GEP, I, LHS, RHS, IndexedType)) in tryReassociateGEPAtIndex() local
383 return NewGEP; in tryReassociateGEPAtIndex()
386 if (auto *NewGEP = in tryReassociateGEPAtIndex() local
388 return NewGEP; in tryReassociateGEPAtIndex()
459 GetElementPtrInst *NewGEP = cast<GetElementPtrInst>( in tryReassociateGEPAtIndex() local
461 NewGEP->setIsInBounds(GEP->isInBounds()); in tryReassociateGEPAtIndex()
462 NewGEP->takeName(GEP); in tryReassociateGEPAtIndex()
463 return NewGEP; in tryReassociateGEPAtIndex()
H A DSeparateConstOffsetFromGEP.cpp1008 Value *NewGEP = Builder.CreateGEP(PtrGEP->getSourceElementType(), NewSrc, in reorderGEP() local
1011 GEP->replaceAllUsesWith(NewGEP); in reorderGEP()
1149 Instruction *NewGEP = GEP->clone(); in splitGEP() local
1150 NewGEP->insertBefore(GEP); in splitGEP()
1154 NewGEP = cast<Instruction>(Builder.CreatePtrAdd( in splitGEP()
1155 NewGEP, ConstantInt::get(PtrIdxTy, AccumulativeByteOffset, true), in splitGEP()
1157 NewGEP->copyMetadata(*GEP); in splitGEP()
1159 GEP->replaceAllUsesWith(NewGEP); in splitGEP()
H A DInferAddressSpaces.cpp676 GetElementPtrInst *NewGEP = GetElementPtrInst::Create( in cloneInstructionWithNewAddressSpace() local
679 NewGEP->setIsInBounds(GEP->isInBounds()); in cloneInstructionWithNewAddressSpace()
680 return NewGEP; in cloneInstructionWithNewAddressSpace()
H A DSROA.cpp4078 Value *NewGEP; in unfoldGEPPhi() local
4080 NewGEP = NewPhi->getIncomingValue(NI); in unfoldGEPPhi()
4083 NewGEP = in unfoldGEPPhi()
4087 NewPhi->addIncoming(NewGEP, BB); in unfoldGEPPhi()
H A DLICM.cpp2523 Value *NewGEP = Builder.CreateGEP(Src->getSourceElementType(), NewSrc, in hoistGEP() local
2526 GEP->replaceAllUsesWith(NewGEP); in hoistGEP()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalSplit.cpp157 auto *NewGEP = ConstantExpr::getGetElementPtr( in splitGlobal() local
161 Info.GEP->replaceAllUsesWith(NewGEP); in splitGlobal()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp238 auto *NewGEP = GetElementPtrInst::Create( in INITIALIZE_PASS_DEPENDENCY() local
241 NewGEP->setIsInBounds(GEP->isInBounds()); in INITIALIZE_PASS_DEPENDENCY()
242 return NewGEP; in INITIALIZE_PASS_DEPENDENCY()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanRecipes.cpp1524 auto *NewGEP = in execute() local
1528 Value *EntryPart = State.Builder.CreateVectorSplat(State.VF, NewGEP); in execute()
1560 auto *NewGEP = State.Builder.CreateGEP(GEP->getSourceElementType(), Ptr, in execute() local
1562 assert((State.VF.isScalar() || NewGEP->getType()->isVectorTy()) && in execute()
1564 State.set(this, NewGEP, Part); in execute()
1565 State.addMetadata(NewGEP, GEP); in execute()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp607 GetElementPtrInst *NewGEP = in foldPHIArgGEPIntoPHI() local
610 PHIArgMergedDebugLoc(NewGEP, PN); in foldPHIArgGEPIntoPHI()
611 return NewGEP; in foldPHIArgGEPIntoPHI()
H A DInstCombineVectorOps.cpp538 GetElementPtrInst *NewGEP = GetElementPtrInst::Create( in visitExtractElementInst() local
540 NewGEP->setIsInBounds(GEP->isInBounds()); in visitExtractElementInst()
541 return NewGEP; in visitExtractElementInst()
H A DInstructionCombining.cpp2883 auto *NewGEP = cast<GetElementPtrInst>(Op1->clone()); in visitGetElementPtrInst() local
2903 NewGEP->setOperand(DI, NewPN); in visitGetElementPtrInst()
2906 NewGEP->insertBefore(*GEP.getParent(), GEP.getParent()->getFirstInsertionPt()); in visitGetElementPtrInst()
2907 return replaceOperand(GEP, 0, NewGEP); in visitGetElementPtrInst()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp6362 Value *NewGEP = NewBaseGEP; in splitLargeGEPOffsets() local
6366 NewGEP = Builder.CreatePtrAdd(NewBaseGEP, Index); in splitLargeGEPOffsets()
6368 replaceAllUsesWith(GEP, NewGEP, FreshBBs, IsHugeFunc); in splitLargeGEPOffsets()