Home
last modified time | relevance | path

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

/external/llvm/lib/Target/NVPTX/
DNVPTXFavorNonGenericAddrSpaces.cpp166 GetElementPtrInst *NewGEP = GetElementPtrInst::Create( in hoistAddrSpaceCastFromGEP() local
169 NewGEP->setIsInBounds(GEP->isInBounds()); in hoistAddrSpaceCastFromGEP()
170 NewGEP->takeName(GEP); in hoistAddrSpaceCastFromGEP()
171 NewASC = new AddrSpaceCastInst(NewGEP, GEP->getType(), "", GEPI); in hoistAddrSpaceCastFromGEP()
178 Constant *NewGEP = ConstantExpr::getGetElementPtr( in hoistAddrSpaceCastFromGEP() local
181 NewASC = ConstantExpr::getAddrSpaceCast(NewGEP, GEP->getType()); in hoistAddrSpaceCastFromGEP()
DNVPTXInferAddressSpaces.cpp318 GetElementPtrInst *NewGEP = GetElementPtrInst::Create( in cloneInstructionWithNewAddressSpace() local
321 NewGEP->setIsInBounds(GEP->isInBounds()); in cloneInstructionWithNewAddressSpace()
322 return NewGEP; in cloneInstructionWithNewAddressSpace()
/external/llvm/lib/Transforms/Scalar/
DNaryReassociate.cpp319 if (auto *NewGEP = tryReassociateGEPAtIndex(GEP, I - 1, *GTI)) { in tryReassociateGEP() local
320 return NewGEP; in tryReassociateGEP()
357 if (auto *NewGEP = tryReassociateGEPAtIndex(GEP, I, LHS, RHS, IndexedType)) in tryReassociateGEPAtIndex() local
358 return NewGEP; in tryReassociateGEPAtIndex()
361 if (auto *NewGEP = in tryReassociateGEPAtIndex() local
363 return NewGEP; in tryReassociateGEPAtIndex()
433 GetElementPtrInst *NewGEP = in tryReassociateGEPAtIndex() local
435 NewGEP->setIsInBounds(GEP->isInBounds()); in tryReassociateGEPAtIndex()
436 NewGEP->takeName(GEP); in tryReassociateGEPAtIndex()
437 return NewGEP; in tryReassociateGEPAtIndex()
DSeparateConstOffsetFromGEP.cpp1014 Instruction *NewGEP = GEP->clone(); in splitGEP() local
1015 NewGEP->insertBefore(GEP); in splitGEP()
1027 NewGEP = GetElementPtrInst::Create(GEP->getResultElementType(), NewGEP, in splitGEP()
1031 cast<GetElementPtrInst>(NewGEP)->setIsInBounds(GEPWasInBounds); in splitGEP()
1049 NewGEP = new BitCastInst(NewGEP, I8PtrTy, "", GEP); in splitGEP()
1050 NewGEP = GetElementPtrInst::Create( in splitGEP()
1051 Type::getInt8Ty(GEP->getContext()), NewGEP, in splitGEP()
1055 cast<GetElementPtrInst>(NewGEP)->setIsInBounds(GEPWasInBounds); in splitGEP()
1057 NewGEP = new BitCastInst(NewGEP, GEP->getType(), GEP->getName(), GEP); in splitGEP()
1060 GEP->replaceAllUsesWith(NewGEP); in splitGEP()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DNaryReassociate.cpp315 if (auto *NewGEP = tryReassociateGEPAtIndex(GEP, I - 1, in tryReassociateGEP() local
317 return NewGEP; in tryReassociateGEP()
354 if (auto *NewGEP = tryReassociateGEPAtIndex(GEP, I, LHS, RHS, IndexedType)) in tryReassociateGEPAtIndex() local
355 return NewGEP; in tryReassociateGEPAtIndex()
358 if (auto *NewGEP = in tryReassociateGEPAtIndex() local
360 return NewGEP; in tryReassociateGEPAtIndex()
430 GetElementPtrInst *NewGEP = in tryReassociateGEPAtIndex() local
432 NewGEP->setIsInBounds(GEP->isInBounds()); in tryReassociateGEPAtIndex()
433 NewGEP->takeName(GEP); in tryReassociateGEPAtIndex()
434 return NewGEP; in tryReassociateGEPAtIndex()
DSeparateConstOffsetFromGEP.cpp1061 Instruction *NewGEP = GEP->clone(); in splitGEP() local
1062 NewGEP->insertBefore(GEP); in splitGEP()
1074 NewGEP = GetElementPtrInst::Create(GEP->getResultElementType(), NewGEP, in splitGEP()
1077 NewGEP->copyMetadata(*GEP); in splitGEP()
1079 cast<GetElementPtrInst>(NewGEP)->setIsInBounds(GEPWasInBounds); in splitGEP()
1097 NewGEP = new BitCastInst(NewGEP, I8PtrTy, "", GEP); in splitGEP()
1098 NewGEP = GetElementPtrInst::Create( in splitGEP()
1099 Type::getInt8Ty(GEP->getContext()), NewGEP, in splitGEP()
1102 NewGEP->copyMetadata(*GEP); in splitGEP()
1104 cast<GetElementPtrInst>(NewGEP)->setIsInBounds(GEPWasInBounds); in splitGEP()
[all …]
DInferAddressSpaces.cpp487 GetElementPtrInst *NewGEP = GetElementPtrInst::Create( in cloneInstructionWithNewAddressSpace() local
490 NewGEP->setIsInBounds(GEP->isInBounds()); in cloneInstructionWithNewAddressSpace()
491 return NewGEP; in cloneInstructionWithNewAddressSpace()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DGlobalSplit.cpp127 auto *NewGEP = ConstantExpr::getGetElementPtr( in splitGlobal() local
130 GEP->replaceAllUsesWith(NewGEP); in splitGlobal()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp1565 auto *NewGEP = cast<GetElementPtrInst>(Op1->clone()); in visitGetElementPtrInst() local
1570 GEP.getParent()->getFirstInsertionPt(), NewGEP); in visitGetElementPtrInst()
1587 NewGEP->setOperand(DI, NewPN); in visitGetElementPtrInst()
1589 GEP.getParent()->getFirstInsertionPt(), NewGEP); in visitGetElementPtrInst()
1590 NewGEP->setOperand(DI, NewPN); in visitGetElementPtrInst()
1593 GEP.setOperand(0, NewGEP); in visitGetElementPtrInst()
1594 PtrOp = NewGEP; in visitGetElementPtrInst()
1646 auto *NewGEP = GetElementPtrInst::Create(nullptr, NewSrc, {SO1}); in visitGetElementPtrInst() local
1647 NewGEP->setIsInBounds(GEP.isInBounds()); in visitGetElementPtrInst()
1648 return NewGEP; in visitGetElementPtrInst()
[all …]
DInstCombinePHI.cpp478 GetElementPtrInst *NewGEP = in FoldPHIArgGEPIntoPHI() local
481 if (AllInBounds) NewGEP->setIsInBounds(); in FoldPHIArgGEPIntoPHI()
482 PHIArgMergedDebugLoc(NewGEP, PN); in FoldPHIArgGEPIntoPHI()
483 return NewGEP; in FoldPHIArgGEPIntoPHI()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp1451 GetElementPtrInst *NewGEP = cast<GetElementPtrInst>(Op1->clone()); in visitGetElementPtrInst() local
1456 GEP.getParent()->getFirstInsertionPt(), NewGEP); in visitGetElementPtrInst()
1473 NewGEP->setOperand(DI, NewPN); in visitGetElementPtrInst()
1475 GEP.getParent()->getFirstInsertionPt(), NewGEP); in visitGetElementPtrInst()
1476 NewGEP->setOperand(DI, NewPN); in visitGetElementPtrInst()
1479 GEP.setOperand(0, NewGEP); in visitGetElementPtrInst()
1480 PtrOp = NewGEP; in visitGetElementPtrInst()
1672 Value *NewGEP = GEP.isInBounds() in visitGetElementPtrInst() local
1677 return new AddrSpaceCastInst(NewGEP, GEP.getType()); in visitGetElementPtrInst()
1692 Value *NewGEP = in visitGetElementPtrInst() local
[all …]
DInstCombinePHI.cpp222 GetElementPtrInst *NewGEP = in FoldPHIArgGEPIntoPHI() local
225 if (AllInBounds) NewGEP->setIsInBounds(); in FoldPHIArgGEPIntoPHI()
226 NewGEP->setDebugLoc(FirstInst->getDebugLoc()); in FoldPHIArgGEPIntoPHI()
227 return NewGEP; in FoldPHIArgGEPIntoPHI()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombinePHI.cpp231 GetElementPtrInst *NewGEP = in FoldPHIArgGEPIntoPHI() local
233 if (AllInBounds) NewGEP->setIsInBounds(); in FoldPHIArgGEPIntoPHI()
234 NewGEP->setDebugLoc(FirstInst->getDebugLoc()); in FoldPHIArgGEPIntoPHI()
235 return NewGEP; in FoldPHIArgGEPIntoPHI()
DInstructionCombining.cpp967 Value *NewGEP = GEP.isInBounds() ? in visitGetElementPtrInst() local
971 return new BitCastInst(NewGEP, GEP.getType()); in visitGetElementPtrInst()
1026 Value *NewGEP = GEP.isInBounds() ? in visitGetElementPtrInst() local
1030 return new BitCastInst(NewGEP, GEP.getType()); in visitGetElementPtrInst()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp5062 Value *NewGEP = NewBaseGEP; in splitLargeGEPOffsets() local
5065 NewGEP = Builder.CreatePointerCast(NewGEP, GEP->getType()); in splitLargeGEPOffsets()
5069 NewGEP = Builder.CreateGEP(I8Ty, NewBaseGEP, Index); in splitLargeGEPOffsets()
5072 NewGEP = Builder.CreatePointerCast(NewGEP, GEP->getType()); in splitLargeGEPOffsets()
5074 GEP->replaceAllUsesWith(NewGEP); in splitLargeGEPOffsets()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp3937 auto *NewGEP = GEP->isInBounds() in widenInstruction() local
3940 assert((VF == 1 || NewGEP->getType()->isVectorTy()) && in widenInstruction()
3942 VectorLoopValueMap.setVectorValue(&I, Part, NewGEP); in widenInstruction()
3943 addMetadata(NewGEP, GEP); in widenInstruction()