Home
last modified time | relevance | path

Searched refs:GetElementPtrInst (Results 1 – 25 of 124) sorted by relevance

12345

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/
DNaryReassociate.h93 class GetElementPtrInst; variable
120 Instruction *tryReassociateGEP(GetElementPtrInst *GEP);
129 GetElementPtrInst *tryReassociateGEPAtIndex(GetElementPtrInst *GEP,
134 GetElementPtrInst *tryReassociateGEPAtIndex(GetElementPtrInst *GEP,
165 bool requiresSignExtension(Value *Index, GetElementPtrInst *GEP);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSeparateConstOffsetFromGEP.cpp237 static Value *Extract(Value *Idx, GetElementPtrInst *GEP,
243 static int64_t Find(Value *Idx, GetElementPtrInst *GEP,
373 bool splitGEP(GetElementPtrInst *GEP);
382 void lowerToSingleIndexGEPs(GetElementPtrInst *Variadic,
392 void lowerToArithmetics(GetElementPtrInst *Variadic,
400 int64_t accumulateByteOffset(GetElementPtrInst *GEP, bool &NeedsExtraction);
417 bool canonicalizeArrayIndicesToPointerSize(GetElementPtrInst *GEP);
442 void swapGEPOperand(GetElementPtrInst *First, GetElementPtrInst *Second);
445 bool isLegalToSwapOperand(GetElementPtrInst *First, GetElementPtrInst *Second,
736 Value *ConstantOffsetExtractor::Extract(Value *Idx, GetElementPtrInst *GEP, in Extract()
[all …]
DNaryReassociate.cpp292 return tryReassociateGEP(cast<GetElementPtrInst>(I)); in tryReassociate()
298 static bool isGEPFoldable(GetElementPtrInst *GEP, in isGEPFoldable()
307 Instruction *NaryReassociatePass::tryReassociateGEP(GetElementPtrInst *GEP) { in tryReassociateGEP()
325 GetElementPtrInst *GEP) { in requiresSignExtension()
331 GetElementPtrInst *
332 NaryReassociatePass::tryReassociateGEPAtIndex(GetElementPtrInst *GEP, in tryReassociateGEPAtIndex()
366 GetElementPtrInst *
367 NaryReassociatePass::tryReassociateGEPAtIndex(GetElementPtrInst *GEP, in tryReassociateGEPAtIndex()
430 GetElementPtrInst *NewGEP = cast<GetElementPtrInst>( in tryReassociateGEPAtIndex()
DStraightLineStrengthReduce.cpp201 void allocateCandidatesAndFindBasisForGEP(GetElementPtrInst *GEP);
222 GetElementPtrInst *GEP);
273 static bool isGEPFoldable(GetElementPtrInst *GEP, in isGEPFoldable()
297 return isGEPFoldable(cast<GetElementPtrInst>(C.Ins), TTI); in isFoldable()
302 static bool hasOnlyOneNonZeroIndex(GetElementPtrInst *GEP) { in hasOnlyOneNonZeroIndex()
324 hasOnlyOneNonZeroIndex(cast<GetElementPtrInst>(C.Ins))); in isSimplestForm()
382 allocateCandidatesAndFindBasisForGEP(cast<GetElementPtrInst>(I)); in allocateCandidatesAndFindBasis()
486 GetElementPtrInst *GEP) { in factorArrayIndex()
519 GetElementPtrInst *GEP) { in allocateCandidatesAndFindBasisForGEP()
585 cast<GetElementPtrInst>(Basis.Ins)->getResultElementType())); in emitBump()
[all …]
DGVNHoist.cpp834 if (const GetElementPtrInst *GepOp = in allGepOperandsAvailable()
835 dyn_cast<GetElementPtrInst>(Inst)) { in allGepOperandsAvailable()
864 if (GetElementPtrInst *GepOp = dyn_cast<GetElementPtrInst>(Op)) in makeGepsAvailable()
878 const GetElementPtrInst *OtherGep; in makeGepsAvailable()
880 OtherGep = cast<GetElementPtrInst>(OtherLd->getPointerOperand()); in makeGepsAvailable()
882 OtherGep = cast<GetElementPtrInst>( in makeGepsAvailable()
979 GetElementPtrInst *Gep = nullptr; in makeGepOperandsAvailable()
982 Gep = dyn_cast<GetElementPtrInst>(Ld->getPointerOperand()); in makeGepOperandsAvailable()
984 Gep = dyn_cast<GetElementPtrInst>(St->getPointerOperand()); in makeGepOperandsAvailable()
988 if (isa<GetElementPtrInst>(Val)) { in makeGepOperandsAvailable()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DPHITransAddr.cpp27 isa<GetElementPtrInst>(Inst)) in CanPHITrans()
214 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) { in PHITranslateSubExpr()
240 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) in PHITranslateSubExpr()
396 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) { in InsertPHITranslatedSubExpr()
406 GetElementPtrInst *Result = GetElementPtrInst::Create( in InsertPHITranslatedSubExpr()
DPtrUseVisitor.cpp33 bool detail::PtrUseVisitorBase::adjustOffsetForGEP(GetElementPtrInst &GEPI) { in adjustOffsetForGEP()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DShadowStackGCLowering.cpp78 static GetElementPtrInst *CreateGEP(LLVMContext &Context, IRBuilder<> &B,
81 static GetElementPtrInst *CreateGEP(LLVMContext &Context, IRBuilder<> &B,
256 GetElementPtrInst *ShadowStackGCLowering::CreateGEP(LLVMContext &Context, in CreateGEP()
266 assert(isa<GetElementPtrInst>(Val) && "Unexpected folded constant"); in CreateGEP()
268 return dyn_cast<GetElementPtrInst>(Val); in CreateGEP()
271 GetElementPtrInst *ShadowStackGCLowering::CreateGEP(LLVMContext &Context, in CreateGEP()
278 assert(isa<GetElementPtrInst>(Val) && "Unexpected folded constant"); in CreateGEP()
280 return dyn_cast<GetElementPtrInst>(Val); in CreateGEP()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp307 const std::map<GetElementPtrInst *, Value *> &GEPIdx) { in calculateVectorIndex() argument
308 GetElementPtrInst *GEP = cast<GetElementPtrInst>(Ptr); in calculateVectorIndex()
314 static Value* GEPToVectorIndex(GetElementPtrInst *GEP) { in GEPToVectorIndex()
340 return isa<GetElementPtrInst>(LI->getPointerOperand()) && LI->isSimple(); in canVectorizeInst()
353 return (SI->getPointerOperand() == User) && isa<GetElementPtrInst>(User) && SI->isSimple(); in canVectorizeInst()
384 std::map<GetElementPtrInst*, Value*> GEPVectorIdx; in tryPromoteAllocaToVector()
387 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(AllocaUser); in tryPromoteAllocaToVector()
588 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(UseInst)) { in collectUsesWithPtrTypes()
DAMDGPUPrintfRuntimeBinding.cpp382 GetElementPtrInst *BufferIdx = in lowerPrintfForGpu()
383 dyn_cast<GetElementPtrInst>(GetElementPtrInst::Create( in lowerPrintfForGpu()
400 BufferIdx = cast<GetElementPtrInst>(GetElementPtrInst::Create( in lowerPrintfForGpu()
549 BufferIdx = dyn_cast<GetElementPtrInst>(GetElementPtrInst::Create( in lowerPrintfForGpu()
DAMDGPUAnnotateUniformValues.cpp37 DenseMap<Value*, GetElementPtrInst*> noClobberClones;
147 PtrI = GetElementPtrInst::Create( in visitLoadInst()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DOperator.cpp23 if (auto *I = dyn_cast<GetElementPtrInst>(this)) in getSourceElementType()
29 if (auto *I = dyn_cast<GetElementPtrInst>(this)) in getResultElementType()
DInstruction.cpp138 cast<GetElementPtrInst>(this)->setIsInBounds(false); in dropPoisonGeneratingFlags()
262 if (auto *SrcGEP = dyn_cast<GetElementPtrInst>(V)) in copyIRFlags()
263 if (auto *DestGEP = dyn_cast<GetElementPtrInst>(this)) in copyIRFlags()
287 if (auto *SrcGEP = dyn_cast<GetElementPtrInst>(V)) in andIRFlags()
288 if (auto *DestGEP = dyn_cast<GetElementPtrInst>(this)) in andIRFlags()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp114 } else if (GetElementPtrInst *GI = dyn_cast<GetElementPtrInst>(U)) { in FoldIntegerTypedPHI()
389 GetElementPtrInst *FirstInst =cast<GetElementPtrInst>(PN.getIncomingValue(0)); in FoldPHIArgGEPIntoPHI()
406 GetElementPtrInst *GEP= dyn_cast<GetElementPtrInst>(PN.getIncomingValue(i)); in FoldPHIArgGEPIntoPHI()
479 GetElementPtrInst *InGEP =cast<GetElementPtrInst>(PN.getIncomingValue(i)); in FoldPHIArgGEPIntoPHI()
489 GetElementPtrInst *NewGEP = in FoldPHIArgGEPIntoPHI()
490 GetElementPtrInst::Create(FirstInst->getSourceElementType(), Base, in FoldPHIArgGEPIntoPHI()
535 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(L->getOperand(0))) in isSafeAndProfitableToSinkLoad()
745 if (isa<GetElementPtrInst>(FirstInst)) in FoldPHIArgOpIntoPHI()
1180 (isa<BinaryOperator>(PHIUser) || isa<GetElementPtrInst>(PHIUser)) && in visitPHINode()
DInstCombineLoadStoreAlloca.cpp84 if (auto *GEP = dyn_cast<GetElementPtrInst>(I)) { in isOnlyCopiedFromConstantGlobal()
215 Instruction *GEP = GetElementPtrInst::CreateInBounds( in simplifyAllocaArraySize()
277 } else if (isa<GetElementPtrInst>(Inst) || isa<BitCastInst>(Inst)) { in findLoadAndReplace()
306 } else if (auto *GEP = dyn_cast<GetElementPtrInst>(I)) { in replace()
311 auto *NewI = GetElementPtrInst::Create( in replace()
847 static bool canReplaceGEPIdxWithZero(InstCombiner &IC, GetElementPtrInst *GEPI, in canReplaceGEPIdxWithZero()
854 auto FirstNZIdx = [](const GetElementPtrInst *GEPI) { in canReplaceGEPIdxWithZero()
878 GetElementPtrInst::getIndexedType(GEPI->getSourceElementType(), Ops); in canReplaceGEPIdxWithZero()
919 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(Ptr)) { in replaceGEPIdxWithZero()
939 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(Ptr)) in canSimplifyNullStoreOrGEP()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DVPlanTransforms.cpp69 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) { in VPInstructionsToVPRecipes()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp174 SrcTy = cast<GetElementPtrInst>(UI)->getSourceElementType(); in doPromotion()
199 Params.push_back(GetElementPtrInst::getIndexedType( in doPromotion()
399 Value *Idx = GetElementPtrInst::Create( in doPromotion()
439 GetElementPtrInst *GEP = cast<GetElementPtrInst>(I->user_back()); in doPromotion()
631 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(V)) { in isSafeToPromoteArgument()
680 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(UR)) { in isSafeToPromoteArgument()
829 if (isa<GetElementPtrInst>(V) || isa<PHINode>(V)) { in canPaddingBeAccessed()
DGlobalOpt.cpp175 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(I)) { in IsSafeComputationToRemove()
320 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(U)) { in CleanupConstantGlobalUsers()
415 return isa<GetElementPtrInst>(I) && isSafeSROAGEP(I); in isSafeSROAElementUse()
423 if (!isa<GetElementPtrInst>(U) && in GlobalUsersSafeToSRA()
498 isa<GetElementPtrInst>(GEP)) && in SRAGlobal()
577 isa<GetElementPtrInst>(GEP)) && "NonGEP CE's are not SRAable!"); in SRAGlobal()
598 GetElementPtrInst *GEPI = cast<GetElementPtrInst>(GEP); in SRAGlobal()
603 NewPtr = GetElementPtrInst::Create( in SRAGlobal()
610 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(GEP)) in SRAGlobal()
655 } else if (const GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) { in AllUsesOfValueWillTrapIfNull()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCLoopInstrFormPrep.cpp260 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(StrippedBasePtr)) in IsPtrInBounds()
564 PtrInc = GetElementPtrInst::Create( in rewriteLoadStores()
567 cast<GetElementPtrInst>(PtrInc)->setIsInBounds(IsPtrInBounds(BasePtr)); in rewriteLoadStores()
591 PtrInc = GetElementPtrInst::Create( in rewriteLoadStores()
595 cast<GetElementPtrInst>(PtrInc)->setIsInBounds(IsPtrInBounds(BasePtr)); in rewriteLoadStores()
639 GetElementPtrInst *NewPtr = GetElementPtrInst::Create( in rewriteLoadStores()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DFunctionComparator.h346 int cmpGEPs(const GetElementPtrInst *GEPL, in cmpGEPs()
347 const GetElementPtrInst *GEPR) const { in cmpGEPs()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DPtrUseVisitor.h175 bool adjustOffsetForGEP(GetElementPtrInst &GEPI);
267 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { in visitGetElementPtrInst()
DObjCARCAnalysisUtils.h147 (isa<GetElementPtrInst>(I) && in IsNoopInstruction()
148 cast<GetElementPtrInst>(I)->hasAllZeroIndices()); in IsNoopInstruction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonCommonGEP.cpp124 bool isHandledGepForm(GetElementPtrInst *GepI);
125 void processGepInst(GetElementPtrInst *GepI, ValueToNodeMap &NM);
334 bool HexagonCommonGEP::isHandledGepForm(GetElementPtrInst *GepI) { in isHandledGepForm()
344 void HexagonCommonGEP::processGepInst(GetElementPtrInst *GepI, in processGepInst()
370 if (isa<GetElementPtrInst>(*UI)) { in processGepInst()
371 GetElementPtrInst *UserG = cast<GetElementPtrInst>(*UI); in processGepInst()
422 if (!isa<GetElementPtrInst>(J)) in collect()
424 GetElementPtrInst *GepI = cast<GetElementPtrInst>(J); in collect()
1099 GetElementPtrInst *NewInst = nullptr; in fabricateGEP()
1129 NewInst = GetElementPtrInst::Create(ElTy, Input, A, "cgep", &*At); in fabricateGEP()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/
DBPFAbstractMemberAccess.cpp149 void traceGEP(GetElementPtrInst *GEP, CallInst *Parent,
305 auto *GEP = GetElementPtrInst::CreateInBounds(Call->getArgOperand(0), in replaceWithGEP()
427 } else if (auto *GI = dyn_cast<GetElementPtrInst>(Inst)) { in traceAICall()
458 } else if (auto *GI = dyn_cast<GetElementPtrInst>(Inst)) { in traceBitCast()
469 void BPFAbstractMemberAccess::traceGEP(GetElementPtrInst *GEP, CallInst *Parent, in traceGEP()
488 } else if (auto *GI = dyn_cast<GetElementPtrInst>(Inst)) { in traceGEP()
902 auto *GEP = GetElementPtrInst::Create(Type::getInt8Ty(BB->getContext()), in transformGEPChain()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DInstructions.h892 class GetElementPtrInst : public Instruction {
896 GetElementPtrInst(const GetElementPtrInst &GEPI);
902 inline GetElementPtrInst(Type *PointeeType, Value *Ptr,
905 inline GetElementPtrInst(Type *PointeeType, Value *Ptr,
915 GetElementPtrInst *cloneImpl() const;
918 static GetElementPtrInst *Create(Type *PointeeType, Value *Ptr,
930 return new (Values) GetElementPtrInst(PointeeType, Ptr, IdxList, Values,
934 static GetElementPtrInst *Create(Type *PointeeType, Value *Ptr,
946 return new (Values) GetElementPtrInst(PointeeType, Ptr, IdxList, Values,
952 static GetElementPtrInst *CreateInBounds(Value *Ptr,
[all …]

12345