/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/llvm-project/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/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/llvm-project/llvm/lib/Transforms/Scalar/ |
D | SeparateConstOffsetFromGEP.cpp | 239 static Value *Extract(Value *Idx, GetElementPtrInst *GEP, 245 static int64_t Find(Value *Idx, GetElementPtrInst *GEP, 388 bool splitGEP(GetElementPtrInst *GEP); 397 void lowerToSingleIndexGEPs(GetElementPtrInst *Variadic, 407 void lowerToArithmetics(GetElementPtrInst *Variadic, 415 int64_t accumulateByteOffset(GetElementPtrInst *GEP, bool &NeedsExtraction); 432 bool canonicalizeArrayIndicesToPointerSize(GetElementPtrInst *GEP); 459 void swapGEPOperand(GetElementPtrInst *First, GetElementPtrInst *Second); 462 bool isLegalToSwapOperand(GetElementPtrInst *First, GetElementPtrInst *Second, 768 Value *ConstantOffsetExtractor::Extract(Value *Idx, GetElementPtrInst *GEP, in Extract() [all …]
|
D | NaryReassociate.cpp | 285 return tryReassociateGEP(cast<GetElementPtrInst>(I)); in tryReassociate() 294 static bool isGEPFoldable(GetElementPtrInst *GEP, in isGEPFoldable() 303 Instruction *NaryReassociatePass::tryReassociateGEP(GetElementPtrInst *GEP) { in tryReassociateGEP() 321 GetElementPtrInst *GEP) { in requiresSignExtension() 327 GetElementPtrInst * 328 NaryReassociatePass::tryReassociateGEPAtIndex(GetElementPtrInst *GEP, in tryReassociateGEPAtIndex() 362 GetElementPtrInst * 363 NaryReassociatePass::tryReassociateGEPAtIndex(GetElementPtrInst *GEP, in tryReassociateGEPAtIndex() 426 GetElementPtrInst *NewGEP = cast<GetElementPtrInst>( in tryReassociateGEPAtIndex()
|
D | StraightLineStrengthReduce.cpp | 214 void allocateCandidatesAndFindBasisForGEP(GetElementPtrInst *GEP); 235 GetElementPtrInst *GEP); 286 static bool isGEPFoldable(GetElementPtrInst *GEP, in isGEPFoldable() 310 return isGEPFoldable(cast<GetElementPtrInst>(C.Ins), TTI); in isFoldable() 315 static bool hasOnlyOneNonZeroIndex(GetElementPtrInst *GEP) { in hasOnlyOneNonZeroIndex() 337 hasOnlyOneNonZeroIndex(cast<GetElementPtrInst>(C.Ins))); in isSimplestForm() 395 allocateCandidatesAndFindBasisForGEP(cast<GetElementPtrInst>(I)); in allocateCandidatesAndFindBasis() 499 GetElementPtrInst *GEP) { in factorArrayIndex() 532 GetElementPtrInst *GEP) { in allocateCandidatesAndFindBasisForGEP() 598 cast<GetElementPtrInst>(Basis.Ins)->getResultElementType())); in emitBump() [all …]
|
/external/llvm-project/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/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-project/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/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/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/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/llvm-project/llvm/lib/Target/ARM/ |
D | MVEGatherScatterLowering.cpp | 87 Value *checkGEP(Value *&Offsets, FixedVectorType *Ty, GetElementPtrInst *GEP, 127 Value *Ptr, GetElementPtrInst *GEP, 139 Value *foldGEP(GetElementPtrInst *GEP, Value *&Offsets, IRBuilder<> &Builder); 218 GetElementPtrInst *GEP, in checkGEP() 477 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Ptr); in tryCreateMaskedGatherOffset() 618 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Ptr); in tryCreateMaskedScatterOffset() 654 IntrinsicInst *I, Value *BasePtr, Value *Offsets, GetElementPtrInst *GEP, in tryCreateIncrementingGatScat() 869 if (isa<GetElementPtrInst>(U) || in hasAllGatScatUsers() 1101 Value *MVEGatherScatterLowering::foldGEP(GetElementPtrInst *GEP, in foldGEP() 1110 GetElementPtrInst *BaseGEP; in foldGEP() [all …]
|
/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/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/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/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()
|