| /netbsd-src/external/apache2/llvm/dist/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);
|
| /netbsd-src/external/apache2/llvm/dist/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, 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 …]
|
| 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() 497 GetElementPtrInst *GEP) { in factorArrayIndex() 530 GetElementPtrInst *GEP) { in allocateCandidatesAndFindBasisForGEP() 596 cast<GetElementPtrInst>(Basis.Ins)->getResultElementType())); in emitBump() [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() 976 OtherGep = cast<GetElementPtrInst>(OtherLd->getPointerOperand()); 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() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
| H A D | ShadowStackGCLowering.cpp | 81 static GetElementPtrInst *CreateGEP(LLVMContext &Context, IRBuilder<> &B, 84 static GetElementPtrInst *CreateGEP(LLVMContext &Context, IRBuilder<> &B, 260 GetElementPtrInst *ShadowStackGCLowering::CreateGEP(LLVMContext &Context, in CreateGEP() 270 assert(isa<GetElementPtrInst>(Val) && "Unexpected folded constant"); in CreateGEP() 272 return dyn_cast<GetElementPtrInst>(Val); in CreateGEP() 275 GetElementPtrInst *ShadowStackGCLowering::CreateGEP(LLVMContext &Context, in CreateGEP() 282 assert(isa<GetElementPtrInst>(Val) && "Unexpected folded constant"); in CreateGEP() 284 return dyn_cast<GetElementPtrInst>(Val); in CreateGEP()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/ |
| H A 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() 479 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Ptr); in tryCreateMaskedGatherOffset() 621 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Ptr); in tryCreateMaskedScatterOffset() 657 IntrinsicInst *I, Value *BasePtr, Value *Offsets, GetElementPtrInst *GEP, in tryCreateIncrementingGatScat() 871 if (isa<GetElementPtrInst>(U) || in hasAllGatScatUsers() 1103 Value *MVEGatherScatterLowering::foldGEP(GetElementPtrInst *GEP, in foldGEP() 1112 GetElementPtrInst *BaseGEP; in foldGEP() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 71 if (auto *GEP = dyn_cast<GetElementPtrInst>(I)) { in isOnlyCopiedFromConstantMemory() 202 Instruction *GEP = GetElementPtrInst::CreateInBounds( in simplifyAllocaArraySize() 261 } else if (isa<GetElementPtrInst>(Inst) || isa<BitCastInst>(Inst)) { in collectUsers() 294 } else if (auto *GEP = dyn_cast<GetElementPtrInst>(I)) { in replace() 299 auto *NewI = GetElementPtrInst::Create( in replace() 820 GetElementPtrInst *GEPI, Instruction *MemI, in canReplaceGEPIdxWithZero() 827 auto FirstNZIdx = [](const GetElementPtrInst *GEPI) { in canReplaceGEPIdxWithZero() 856 Type *AllocTy = GetElementPtrInst::getIndexedType(SourceElementType, Ops); in canReplaceGEPIdxWithZero() 897 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(Ptr)) { in replaceGEPIdxWithZero() 917 if (GetElementPtrInst *GEPI = dyn_cast<GetElementPtrInst>(Ptr)) in canSimplifyNullStoreOrGEP() [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() 1359 (isa<BinaryOperator>(PHIUser) || isa<GetElementPtrInst>(PHIUser)) && in visitPHINode()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/ |
| H A D | ArgumentPromotion.cpp | 169 SrcTy = cast<GetElementPtrInst>(UI)->getSourceElementType(); in doPromotion() 171 if (isa<GetElementPtrInst>(UI) && UI->use_empty()) { in doPromotion() 200 Params.push_back(GetElementPtrInst::getIndexedType( in doPromotion() 305 ElTy = GetElementPtrInst::getTypeAtIndex(ElTy, II); in doPromotion() 402 Value *Idx = GetElementPtrInst::Create( in doPromotion() 439 GetElementPtrInst *GEP = cast<GetElementPtrInst>(I->user_back()); in doPromotion() 626 if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(V)) { in isSafeToPromoteArgument() 674 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(UR)) { in isSafeToPromoteArgument() 820 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() 600 isa<GetElementPtrInst>(GEP)) && "NonGEP CE's are not SRAable!"); 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() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/ |
| H A D | HexagonCommonGEP.cpp | 124 bool isHandledGepForm(GetElementPtrInst *GepI); 125 void processGepInst(GetElementPtrInst *GepI, ValueToNodeMap &NM); 207 return GetElementPtrInst::getTypeAtIndex(Ty, Idx); in next_type() 324 bool HexagonCommonGEP::isHandledGepForm(GetElementPtrInst *GepI) { in isHandledGepForm() 334 void HexagonCommonGEP::processGepInst(GetElementPtrInst *GepI, in processGepInst() 360 if (isa<GetElementPtrInst>(*UI)) { in processGepInst() 361 GetElementPtrInst *UserG = cast<GetElementPtrInst>(*UI); in processGepInst() 412 if (!isa<GetElementPtrInst>(J)) in collect() 414 GetElementPtrInst *GepI = cast<GetElementPtrInst>(J); in collect() 1089 GetElementPtrInst *NewInst = nullptr; in fabricateGEP() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
| 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()
|
| H A D | AMDGPUAnnotateUniformValues.cpp | 32 DenseMap<Value*, GetElementPtrInst*> noClobberClones; 117 PtrI = GetElementPtrInst::Create( in visitLoadInst()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/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(nullptr, I.NewParam, Indices, in convertToParamAS() 240 if (isa<GetElementPtrInst>(V) || isa<BitCastInst>(V) || isa<LoadInst>(V)) in handleByValParam()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Vectorize/ |
| H A D | SLPVectorizer.h | 37 class GetElementPtrInst; variable 61 using GEPList = SmallVector<GetElementPtrInst *, 8>;
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanTransforms.cpp | 71 } else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) { in VPInstructionsToVPRecipes()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/ |
| H A D | X86PreAMXConfig.cpp | 163 GetElementPtrInst::Create(I8Ty, I8Ptr, PaletteOffset, "", Pos); in preWriteTileCfg() 170 Value *RowPos = GetElementPtrInst::Create(I8Ty, I8Ptr, RowOffset, in preWriteTileCfg() 172 Value *ColPos = GetElementPtrInst::Create(I8Ty, I8Ptr, ColOffset, "", Pos); in preWriteTileCfg()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/BPF/ |
| H A D | BPFAbstractMemberAccess.cpp | 157 void traceGEP(GetElementPtrInst *GEP, CallInst *Parent, 370 auto *GEP = GetElementPtrInst::CreateInBounds(Call->getArgOperand(0), in replaceWithGEP() 491 } else if (auto *GI = dyn_cast<GetElementPtrInst>(Inst)) { in traceAICall() 522 } else if (auto *GI = dyn_cast<GetElementPtrInst>(Inst)) { in traceBitCast() 533 void BPFAbstractMemberAccess::traceGEP(GetElementPtrInst *GEP, CallInst *Parent, in traceGEP() 552 } else if (auto *GI = dyn_cast<GetElementPtrInst>(Inst)) { in traceGEP() 1043 auto *GEP = GetElementPtrInst::Create(Type::getInt8Ty(BB->getContext()), in transformGEPChain()
|