| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
| H A D | NaryReassociate.h | 93 class GetElementPtrInst; variable 120 Instruction *tryReassociateGEP(GetElementPtrInst *GEP); 129 GetElementPtrInst *tryReassociateGEPAtIndex(GetElementPtrInst *GEP, 134 GetElementPtrInst *tryReassociateGEPAtIndex(GetElementPtrInst *GEP, 178 bool requiresSignExtension(Value *Index, GetElementPtrInst *GEP);
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A 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, 459 void swapGEPOperand(GetElementPtrInst *First, GetElementPtrInst *Second); 462 bool isLegalToSwapOperand(GetElementPtrInst *First, GetElementPtrInst *Second, 796 GetElementPtrInst *GEP) { in canonicalizeArrayIndicesToPointerSize() 1129 NewGEP = GetElementPtrInst::Create( in splitGEP() 1168 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(I++)) in run() [all …]
|
| H A D | StraightLineStrengthReduce.cpp | 214 void allocateCandidatesAndFindBasisForGEP(GetElementPtrInst *GEP); 235 GetElementPtrInst *GEP); 286 static bool isGEPFoldable(GetElementPtrInst *GEP, in isGEPFoldable() 308 return isGEPFoldable(cast<GetElementPtrInst>(C.Ins), TTI); in isFoldable() 313 static bool hasOnlyOneNonZeroIndex(GetElementPtrInst *GEP) { in hasOnlyOneNonZeroIndex() 335 hasOnlyOneNonZeroIndex(cast<GetElementPtrInst>(C.Ins))); in isSimplestForm() 393 allocateCandidatesAndFindBasisForGEP(cast<GetElementPtrInst>(I)); in allocateCandidatesAndFindBasis() 530 GetElementPtrInst *GEP) { in allocateCandidatesAndFindBasisForGEP() 596 cast<GetElementPtrInst>(Basis.Ins)->getResultElementType())); in emitBump() 680 bool InBounds = cast<GetElementPtrInst>(C.Ins)->isInBounds(); in rewriteCandidateWithBasis() [all …]
|
| H A D | NaryReassociate.cpp | 304 return tryReassociateGEP(cast<GetElementPtrInst>(I)); in tryReassociate() 324 static bool isGEPFoldable(GetElementPtrInst *GEP, in isGEPFoldable() 331 Instruction *NaryReassociatePass::tryReassociateGEP(GetElementPtrInst *GEP) { in tryReassociateGEP() 349 GetElementPtrInst *GEP) { in requiresSignExtension() 355 GetElementPtrInst * 356 NaryReassociatePass::tryReassociateGEPAtIndex(GetElementPtrInst *GEP, in tryReassociateGEPAtIndex() 390 GetElementPtrInst * 391 NaryReassociatePass::tryReassociateGEPAtIndex(GetElementPtrInst *GEP, in tryReassociateGEPAtIndex() 454 GetElementPtrInst *NewGEP = cast<GetElementPtrInst>( in tryReassociateGEPAtIndex()
|
| H A D | GVNHoist.cpp | 932 if (const GetElementPtrInst *GepOp = in allGepOperandsAvailable() 933 dyn_cast<GetElementPtrInst>(Inst)) { in allGepOperandsAvailable() 960 if (GetElementPtrInst *GepOp = dyn_cast<GetElementPtrInst>(Op)) in makeGepsAvailable() 974 const GetElementPtrInst *OtherGep; in makeGepsAvailable() 978 OtherGep = cast<GetElementPtrInst>( in makeGepsAvailable() 1067 GetElementPtrInst *Gep = nullptr; in makeGepOperandsAvailable() 1070 Gep = dyn_cast<GetElementPtrInst>(Ld->getPointerOperand()); in makeGepOperandsAvailable() 1072 Gep = dyn_cast<GetElementPtrInst>(St->getPointerOperand()); in makeGepOperandsAvailable() 1076 if (isa<GetElementPtrInst>(Val)) { in makeGepOperandsAvailable() 1091 if (Val && isa<GetElementPtrInst>(Val)) in makeGepOperandsAvailable() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A 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()
|
| H A D | PtrUseVisitor.cpp | 33 bool detail::PtrUseVisitorBase::adjustOffsetForGEP(GetElementPtrInst &GEPI) { in adjustOffsetForGEP()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ShadowStackGCLowering.cpp | 81 static GetElementPtrInst *CreateGEP(LLVMContext &Context, IRBuilder<> &B, 84 static GetElementPtrInst *CreateGEP(LLVMContext &Context, IRBuilder<> &B, 261 GetElementPtrInst *ShadowStackGCLowering::CreateGEP(LLVMContext &Context, in CreateGEP() 271 assert(isa<GetElementPtrInst>(Val) && "Unexpected folded constant"); in CreateGEP() 273 return dyn_cast<GetElementPtrInst>(Val); in CreateGEP() 276 GetElementPtrInst *ShadowStackGCLowering::CreateGEP(LLVMContext &Context, in CreateGEP() 283 assert(isa<GetElementPtrInst>(Val) && "Unexpected folded constant"); in CreateGEP() 285 return dyn_cast<GetElementPtrInst>(Val); in CreateGEP()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | RelLookupTableConverter.cpp | 39 GetElementPtrInst *GEP = in shouldConvertToRelLookupTable() 40 dyn_cast<GetElementPtrInst>(GV.use_begin()->getUser()); in shouldConvertToRelLookupTable() 128 GetElementPtrInst *GEP = in convertToRelLookupTable() 129 cast<GetElementPtrInst>(LookupTable.use_begin()->getUser()); in convertToRelLookupTable()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 71 if (auto *GEP = dyn_cast<GetElementPtrInst>(I)) { in isOnlyCopiedFromConstantMemory() 202 Instruction *NewI = GetElementPtrInst::CreateInBounds( in simplifyAllocaArraySize() 269 } else if (isa<GetElementPtrInst>(Inst) || isa<BitCastInst>(Inst)) { in collectUsers() 306 } else if (auto *GEP = dyn_cast<GetElementPtrInst>(I)) { in replace() 311 auto *NewI = GetElementPtrInst::Create( in replace() 839 auto FirstNZIdx = [](const GetElementPtrInst *GEPI) { in canReplaceGEPIdxWithZero() 909 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(Ptr)) { in replaceGEPIdxWithZero() 929 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(Ptr)) in canSimplifyNullStoreOrGEP() 936 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(Op)) { in canSimplifyNullLoadOrGEP() 1291 isa<GetElementPtrInst>(A)) in equivalentAddressValues() [all …]
|
| H A D | InstCombinePHI.cpp | 123 } else if (GetElementPtrInst *GI = dyn_cast<GetElementPtrInst>(U)) { in foldIntegerTypedPHI() 475 GetElementPtrInst *FirstInst =cast<GetElementPtrInst>(PN.getIncomingValue(0)); in foldPHIArgGEPIntoPHI() 492 GetElementPtrInst *GEP = in foldPHIArgGEPIntoPHI() 493 dyn_cast<GetElementPtrInst>(PN.getIncomingValue(i)); in foldPHIArgGEPIntoPHI() 566 GetElementPtrInst *InGEP =cast<GetElementPtrInst>(PN.getIncomingValue(i)); in foldPHIArgGEPIntoPHI() 576 GetElementPtrInst *NewGEP = in foldPHIArgGEPIntoPHI() 577 GetElementPtrInst::Create(FirstInst->getSourceElementType(), Base, in foldPHIArgGEPIntoPHI() 627 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(L->getOperand(0))) in isSafeAndProfitableToSinkLoad() 832 if (isa<GetElementPtrInst>(FirstInst)) in foldPHIArgOpIntoPHI() 1360 (isa<BinaryOperator>(PHIUser) || isa<GetElementPtrInst>(PHIUser)) && in visitPHINode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 95 GetElementPtrInst *GEP, IRBuilder<> &Builder); 229 if (auto *GEP = dyn_cast<GetElementPtrInst>(Ptr)) { in decomposePtr() 254 GetElementPtrInst *GEP, in decomposeGEP() 729 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Ptr); in tryCreateIncrementingGatScat() 934 if (isa<GetElementPtrInst>(U) || in hasAllGatScatUsers() 1155 Value *MVEGatherScatterLowering::foldGEP(GetElementPtrInst *GEP, in foldGEP() 1164 GetElementPtrInst *BaseGEP; in foldGEP() 1165 if ((BaseGEP = dyn_cast<GetElementPtrInst>(GEPPtr))) { in foldGEP() 1181 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Address); in optimiseAddress() 1186 dyn_cast<GetElementPtrInst>(GEP->getPointerOperand())) { in optimiseAddress() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | ArgumentPromotion.cpp | 168 SrcTy = cast<GetElementPtrInst>(UI)->getSourceElementType(); in doPromotion() 170 if (isa<GetElementPtrInst>(UI) && UI->use_empty()) { in doPromotion() 199 Params.push_back(GetElementPtrInst::getIndexedType( in doPromotion() 304 ElTy = GetElementPtrInst::getTypeAtIndex(ElTy, II); in doPromotion() 401 Value *Idx = GetElementPtrInst::Create( in doPromotion() 438 GetElementPtrInst *GEP = cast<GetElementPtrInst>(I->user_back()); in doPromotion() 625 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(V)) { in isSafeToPromoteArgument() 673 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(UR)) { in isSafeToPromoteArgument() 819 if (isa<GetElementPtrInst>(V) || isa<PHINode>(V)) { in canPaddingBeAccessed()
|
| H A D | GlobalOpt.cpp | 178 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(I)) { in IsSafeComputationToRemove() 328 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(U)) { in CleanupConstantGlobalUsers() 424 return isa<GetElementPtrInst>(I) && isSafeSROAGEP(I); in isSafeSROAElementUse() 432 if (!isa<GetElementPtrInst>(U) && in GlobalUsersSafeToSRA() 523 isa<GetElementPtrInst>(GEP)) && in SRAGlobal() 621 GetElementPtrInst *GEPI = cast<GetElementPtrInst>(GEP); in SRAGlobal() 626 NewPtr = GetElementPtrInst::Create( in SRAGlobal() 650 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(GEP)) in SRAGlobal() 695 } else if (const GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(U)) { in AllUsesOfValueWillTrapIfNull() 782 } else if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(I)) { in OptimizeAwayTrappingUsesOfValue() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCLoopInstrFormPrep.cpp | 258 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(StrippedBasePtr)) in IsPtrInBounds() 569 PtrInc = GetElementPtrInst::Create( in rewriteLoadStores() 572 cast<GetElementPtrInst>(PtrInc)->setIsInBounds(IsPtrInBounds(BasePtr)); in rewriteLoadStores() 596 PtrInc = GetElementPtrInst::Create( in rewriteLoadStores() 600 cast<GetElementPtrInst>(PtrInc)->setIsInBounds(IsPtrInBounds(BasePtr)); in rewriteLoadStores() 648 GetElementPtrInst *NewPtr = GetElementPtrInst::Create( in rewriteLoadStores()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | FunctionComparator.h | 346 int cmpGEPs(const GetElementPtrInst *GEPL, in cmpGEPs() 347 const GetElementPtrInst *GEPR) const { in cmpGEPs()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUAnnotateUniformValues.cpp | 32 DenseMap<Value*, GetElementPtrInst*> noClobberClones; 117 PtrI = GetElementPtrInst::Create(I.getType(), Ptr, in visitLoadInst()
|
| H A D | AMDGPUPromoteAlloca.cpp | 336 const std::map<GetElementPtrInst *, Value *> &GEPIdx) { in calculateVectorIndex() argument 337 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(stripBitcasts(Ptr)); in calculateVectorIndex() 345 static Value* GEPToVectorIndex(GetElementPtrInst *GEP) { in GEPToVectorIndex() 445 std::map<GetElementPtrInst*, Value*> GEPVectorIdx; in tryPromoteAllocaToVector() 455 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(AllocaUser); in tryPromoteAllocaToVector() 672 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(UseInst)) { in collectUsesWithPtrTypes()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/ |
| H A D | SLPVectorizer.h | 37 class GetElementPtrInst; variable 61 using GEPList = SmallVector<GetElementPtrInst *, 8>;
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXLowerArgs.cpp | 178 if (auto *GEP = dyn_cast<GetElementPtrInst>(I.OldInstruction)) { in convertToParamAS() 180 auto *NewGEP = GetElementPtrInst::Create(GEP->getSourceElementType(), in convertToParamAS() 241 if (isa<GetElementPtrInst>(V) || isa<BitCastInst>(V) || isa<LoadInst>(V)) in handleByValParam()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonCommonGEP.cpp | 125 bool isHandledGepForm(GetElementPtrInst *GepI); 126 void processGepInst(GetElementPtrInst *GepI, ValueToNodeMap &NM); 338 bool HexagonCommonGEP::isHandledGepForm(GetElementPtrInst *GepI) { in isHandledGepForm() 348 void HexagonCommonGEP::processGepInst(GetElementPtrInst *GepI, in processGepInst() 375 if (isa<GetElementPtrInst>(*UI)) { in processGepInst() 376 GetElementPtrInst *UserG = cast<GetElementPtrInst>(*UI); in processGepInst() 401 PtrTy = GetElementPtrInst::getTypeAtIndex(PtrTy, Op); in processGepInst() 427 if (!isa<GetElementPtrInst>(J)) in collect() 429 GetElementPtrInst *GepI = cast<GetElementPtrInst>(J); in collect() 1108 GetElementPtrInst *NewInst = nullptr; in fabricateGEP() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | PtrUseVisitor.h | 174 bool adjustOffsetForGEP(GetElementPtrInst &GEPI); 266 void visitGetElementPtrInst(GetElementPtrInst &GEPI) { in visitGetElementPtrInst()
|
| H A D | ObjCARCAnalysisUtils.h | 138 (isa<GetElementPtrInst>(I) && in IsNoopInstruction() 139 cast<GetElementPtrInst>(I)->hasAllZeroIndices()); in IsNoopInstruction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86PreAMXConfig.cpp | 164 GetElementPtrInst::Create(I8Ty, I8Ptr, PaletteOffset, "", Pos); in preWriteTileCfg() 171 Value *RowPos = GetElementPtrInst::Create(I8Ty, I8Ptr, RowOffset, in preWriteTileCfg() 173 Value *ColPos = GetElementPtrInst::Create(I8Ty, I8Ptr, ColOffset, "", Pos); in preWriteTileCfg()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Operator.cpp | 23 if (auto *I = dyn_cast<GetElementPtrInst>(this)) in getSourceElementType() 29 if (auto *I = dyn_cast<GetElementPtrInst>(this)) in getResultElementType()
|