/external/llvm/lib/Transforms/Scalar/ |
D | SeparateConstOffsetFromGEP.cpp | 220 static Value *Extract(Value *Idx, GetElementPtrInst *GEP, 225 static int64_t Find(Value *Idx, GetElementPtrInst *GEP, 344 bool splitGEP(GetElementPtrInst *GEP); 352 void lowerToSingleIndexGEPs(GetElementPtrInst *Variadic, 361 void lowerToArithmetics(GetElementPtrInst *Variadic, 368 int64_t accumulateByteOffset(GetElementPtrInst *GEP, bool &NeedsExtraction); 384 bool canonicalizeArrayIndicesToPointerSize(GetElementPtrInst *GEP); 405 void swapGEPOperand(GetElementPtrInst *First, GetElementPtrInst *Second); 407 bool isLegalToSwapOperand(GetElementPtrInst *First, GetElementPtrInst *Second, 690 Value *ConstantOffsetExtractor::Extract(Value *Idx, GetElementPtrInst *GEP, in Extract() [all …]
|
D | NaryReassociate.cpp | 132 Instruction *tryReassociateGEP(GetElementPtrInst *GEP); 140 GetElementPtrInst *tryReassociateGEPAtIndex(GetElementPtrInst *GEP, 144 GetElementPtrInst *tryReassociateGEPAtIndex(GetElementPtrInst *GEP, 174 bool requiresSignExtension(Value *Index, GetElementPtrInst *GEP); 296 return tryReassociateGEP(cast<GetElementPtrInst>(I)); in tryReassociate() 302 static bool isGEPFoldable(GetElementPtrInst *GEP, in isGEPFoldable() 311 Instruction *NaryReassociate::tryReassociateGEP(GetElementPtrInst *GEP) { in tryReassociateGEP() 328 GetElementPtrInst *GEP) { in requiresSignExtension() 334 GetElementPtrInst * 335 NaryReassociate::tryReassociateGEPAtIndex(GetElementPtrInst *GEP, unsigned I, in tryReassociateGEPAtIndex() [all …]
|
D | StraightLineStrengthReduce.cpp | 173 void allocateCandidatesAndFindBasisForGEP(GetElementPtrInst *GEP); 190 GetElementPtrInst *GEP); 237 static bool isGEPFoldable(GetElementPtrInst *GEP, in isGEPFoldable() 261 return isGEPFoldable(cast<GetElementPtrInst>(C.Ins), TTI); in isFoldable() 266 static bool hasOnlyOneNonZeroIndex(GetElementPtrInst *GEP) { in hasOnlyOneNonZeroIndex() 288 hasOnlyOneNonZeroIndex(cast<GetElementPtrInst>(C.Ins))); in isSimplestForm() 346 allocateCandidatesAndFindBasisForGEP(cast<GetElementPtrInst>(I)); in allocateCandidatesAndFindBasis() 450 GetElementPtrInst *GEP) { in factorArrayIndex() 483 GetElementPtrInst *GEP) { in allocateCandidatesAndFindBasisForGEP() 551 cast<GetElementPtrInst>(Basis.Ins)->getResultElementType())); in emitBump() [all …]
|
/external/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 …]
|
/external/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);
|
/external/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()
|
/external/llvm/unittests/IR/ |
D | InstructionsTest.cpp | 327 GetElementPtrInst *Gep0 = GetElementPtrInst::Create(I32Ty, PtrVecA, C2xi32a); in TEST() 328 GetElementPtrInst *Gep1 = GetElementPtrInst::Create(I32Ty, PtrVecA, C2xi32b); in TEST() 329 GetElementPtrInst *Gep2 = GetElementPtrInst::Create(I32Ty, PtrVecB, C2xi32a); in TEST() 330 GetElementPtrInst *Gep3 = GetElementPtrInst::Create(I32Ty, PtrVecB, C2xi32b); in TEST() 358 GetElementPtrInst *GepII0 = GetElementPtrInst::Create(I32Ty, Gep0, C2xi32b); in TEST() 359 GetElementPtrInst *GepII1 = GetElementPtrInst::Create(I32Ty, Gep1, C2xi32a); in TEST() 360 GetElementPtrInst *GepII2 = GetElementPtrInst::Create(I32Ty, Gep2, C2xi32b); in TEST() 361 GetElementPtrInst *GepII3 = GetElementPtrInst::Create(I32Ty, Gep3, C2xi32a); in TEST()
|
/external/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()
|
/external/llvm/lib/Analysis/ |
D | PHITransAddr.cpp | 27 isa<GetElementPtrInst>(Inst)) in CanPHITrans() 217 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) { in PHITranslateSubExpr() 243 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) in PHITranslateSubExpr() 400 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) { in InsertPHITranslatedSubExpr() 410 GetElementPtrInst *Result = GetElementPtrInst::Create( in InsertPHITranslatedSubExpr()
|
D | Delinearization.cpp | 77 else if (GetElementPtrInst *Gep = dyn_cast<GetElementPtrInst>(&Inst)) in getPointerOperand() 89 !isa<GetElementPtrInst>(Inst)) in print()
|
/external/llvm/lib/CodeGen/ |
D | ShadowStackGCLowering.cpp | 59 static GetElementPtrInst *CreateGEP(LLVMContext &Context, IRBuilder<> &B, 62 static GetElementPtrInst *CreateGEP(LLVMContext &Context, IRBuilder<> &B, 353 GetElementPtrInst *ShadowStackGCLowering::CreateGEP(LLVMContext &Context, in CreateGEP() 363 assert(isa<GetElementPtrInst>(Val) && "Unexpected folded constant"); in CreateGEP() 365 return dyn_cast<GetElementPtrInst>(Val); in CreateGEP() 368 GetElementPtrInst *ShadowStackGCLowering::CreateGEP(LLVMContext &Context, in CreateGEP() 375 assert(isa<GetElementPtrInst>(Val) && "Unexpected folded constant"); in CreateGEP() 377 return dyn_cast<GetElementPtrInst>(Val); in CreateGEP()
|
/external/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()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombinePHI.cpp | 122 GetElementPtrInst *FirstInst =cast<GetElementPtrInst>(PN.getIncomingValue(0)); in FoldPHIArgGEPIntoPHI() 139 GetElementPtrInst *GEP= dyn_cast<GetElementPtrInst>(PN.getIncomingValue(i)); in FoldPHIArgGEPIntoPHI() 212 GetElementPtrInst *InGEP =cast<GetElementPtrInst>(PN.getIncomingValue(i)); in FoldPHIArgGEPIntoPHI() 222 GetElementPtrInst *NewGEP = in FoldPHIArgGEPIntoPHI() 223 GetElementPtrInst::Create(FirstInst->getSourceElementType(), Base, in FoldPHIArgGEPIntoPHI() 268 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(L->getOperand(0))) in isSafeAndProfitableToSinkLoad() 476 if (isa<GetElementPtrInst>(FirstInst)) in FoldPHIArgOpIntoPHI() 904 (isa<BinaryOperator>(PHIUser) || isa<GetElementPtrInst>(PHIUser)) && in visitPHINode()
|
/external/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 218 if (isa<GetElementPtrInst>(V) || isa<PHINode>(V)) { in canPaddingBeAccessed() 502 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(V)) { in isSafeToPromoteArgument() 539 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(UR)) { in isSafeToPromoteArgument() 706 SrcTy = cast<GetElementPtrInst>(UI)->getSourceElementType(); in DoPromotion() 731 Params.push_back(GetElementPtrInst::getIndexedType( in DoPromotion() 813 Value *Idx = GetElementPtrInst::Create( in DoPromotion() 842 V = GetElementPtrInst::Create(ArgIndex.first, V, Ops, in DoPromotion() 943 Value *Idx = GetElementPtrInst::Create( in DoPromotion() 983 GetElementPtrInst *GEP = cast<GetElementPtrInst>(I->user_back()); in DoPromotion()
|
D | GlobalOpt.cpp | 133 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(I)) { in IsSafeComputationToRemove() 277 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(U)) { in CleanupConstantGlobalUsers() 337 GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(I); in isSafeSROAElementUse() 355 if (!isa<GetElementPtrInst>(U) && in IsUserOfGlobalSafeForSRA() 523 isa<GetElementPtrInst>(GEP)) && "NonGEP CE's are not SRAable!"); in SRAGlobal() 544 GetElementPtrInst *GEPI = cast<GetElementPtrInst>(GEP); in SRAGlobal() 549 NewPtr = GetElementPtrInst::Create( in SRAGlobal() 555 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(GEP)) in SRAGlobal() 603 } else if (const GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) { in AllUsesOfValueWillTrapIfNull() 679 } else if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(I)) { in OptimizeAwayTrappingUsesOfValue() [all …]
|
/external/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 …]
|
/external/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()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 350 const std::map<GetElementPtrInst *, Value *> &GEPIdx) { in calculateVectorIndex() argument 354 GetElementPtrInst *GEP = cast<GetElementPtrInst>(Ptr); in calculateVectorIndex() 360 static Value* GEPToVectorIndex(GetElementPtrInst *GEP) { in GEPToVectorIndex() 406 std::map<GetElementPtrInst*, Value*> GEPVectorIdx; in tryPromoteAllocaToVector() 409 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(AllocaUser); in tryPromoteAllocaToVector() 593 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(UseInst)) { in collectUsesWithPtrTypes()
|
/external/llvm/lib/IR/ |
D | Operator.cpp | 10 if (auto *I = dyn_cast<GetElementPtrInst>(this)) in getSourceElementType() 16 if (auto *I = dyn_cast<GetElementPtrInst>(this)) in getResultElementType()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCLoopPreIncPrep.cpp | 127 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(StrippedBasePtr)) in IsPtrInBounds() 354 GetElementPtrInst *PtrInc = GetElementPtrInst::Create( in runOnLoop() 403 GetElementPtrInst *NewPtr = GetElementPtrInst::Create( in runOnLoop()
|
/external/llvm/include/llvm/Analysis/ |
D | VectorUtils.h | 24 class GetElementPtrInst; variable 54 unsigned getGEPInductionOperand(const GetElementPtrInst *Gep);
|