/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Scalar/ |
D | NaryReassociate.h | 93 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/ |
D | SeparateConstOffsetFromGEP.cpp | 237 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 …]
|
D | NaryReassociate.cpp | 292 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()
|
D | StraightLineStrengthReduce.cpp | 201 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 …]
|
D | GVNHoist.cpp | 834 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/ |
D | PHITransAddr.cpp | 27 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()
|
D | PtrUseVisitor.cpp | 33 bool detail::PtrUseVisitorBase::adjustOffsetForGEP(GetElementPtrInst &GEPI) { in adjustOffsetForGEP()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | ShadowStackGCLowering.cpp | 78 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/ |
D | AMDGPUPromoteAlloca.cpp | 307 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()
|
D | AMDGPUPrintfRuntimeBinding.cpp | 382 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()
|
D | AMDGPUAnnotateUniformValues.cpp | 37 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/ |
D | Operator.cpp | 23 if (auto *I = dyn_cast<GetElementPtrInst>(this)) in getSourceElementType() 29 if (auto *I = dyn_cast<GetElementPtrInst>(this)) in getResultElementType()
|
D | Instruction.cpp | 138 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/ |
D | InstCombinePHI.cpp | 114 } 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()
|
D | InstCombineLoadStoreAlloca.cpp | 84 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/ |
D | VPlanTransforms.cpp | 69 } 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/ |
D | ArgumentPromotion.cpp | 174 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()
|
D | GlobalOpt.cpp | 175 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/ |
D | PPCLoopInstrFormPrep.cpp | 260 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/ |
D | FunctionComparator.h | 346 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/ |
D | PtrUseVisitor.h | 175 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 267 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { in visitGetElementPtrInst()
|
D | ObjCARCAnalysisUtils.h | 147 (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/ |
D | HexagonCommonGEP.cpp | 124 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/ |
D | BPFAbstractMemberAccess.cpp | 149 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/ |
D | Instructions.h | 892 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 …]
|