| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86AvoidStoreForwardingBlocks.cpp | 394 BuildMI(*MBB, LoadInst, LoadInst->getDebugLoc(), TII->get(NLoadOpcode), in buildCopy() 411 if (PrevInstrIt.getNodePtr() == LoadInst) in buildCopy() 412 StInst = LoadInst; in buildCopy() 440 buildCopy(LoadInst, getYMMtoXMMLoadOpcode(LoadInst->getOpcode()), LdDisp, in buildCopies() 506 if (StorePrevNonDbgInstr == LoadInst) in updateKillStatus() 512 if (StorePrevNonDbgInstr == LoadInst) in updateKillStatus() 513 StInst = LoadInst; in updateKillStatus() 684 findPotentialBlockers(LoadInst); in runOnMachineFunction() 711 LLVM_DEBUG(LoadInst->dump()); in runOnMachineFunction() 716 updateKillStatus(LoadInst, StoreInst); in runOnMachineFunction() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMParallelDSP.cpp | 75 return isa<LoadInst>(LHS) && isa<LoadInst>(RHS); in HasTwoLoadInputs() 199 LoadInst *NewLd = nullptr; 203 WidenedLoad(SmallVectorImpl<LoadInst*> &Lds, LoadInst *Wide) in WidenedLoad() 207 LoadInst *getLoad() { in getLoad() 219 std::map<LoadInst*, LoadInst*> LoadPairs; 228 bool AreSequentialLoads(LoadInst *Ld0, LoadInst *Ld1, MemInstList &VecMem); 302 bool ARMParallelDSP::AreSequentialLoads(LoadInst *Ld0, LoadInst *Ld1, in AreSequentialLoads() 385 auto SafeToPair = [&](LoadInst *Base, LoadInst *Offset) { in RecordMemoryOps() 629 auto CreateSMLAD = [&](LoadInst* WideLd0, LoadInst *WideLd1, in InsertParallelMACs() 737 LoadInst *Base = Loads[0]; in CreateWideLoad() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Transforms/Utils/ |
| H A D | MemTransferLowering.cpp | 125 Instruction *LoadInst = in TEST_F() local 127 EXPECT_NE(nullptr, LoadInst->getMetadata(LLVMContext::MD_alias_scope)); in TEST_F() 208 Instruction *LoadInst = in TEST_F() local 210 EXPECT_TRUE(LoadInst->isAtomic()); in TEST_F() 211 EXPECT_NE(LoadInst->getMetadata(LLVMContext::MD_alias_scope), nullptr); in TEST_F() 253 Instruction *LoadInst = in TEST_F() local 255 EXPECT_TRUE(LoadInst->isAtomic()); in TEST_F() 256 EXPECT_NE(LoadInst->getMetadata(LLVMContext::MD_alias_scope), nullptr); in TEST_F()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/ |
| H A D | Local.h | 43 class LoadInst; variable 250 LoadInst *LI, DIBuilder &Builder); 391 void copyMetadataForLoad(LoadInst &Dest, const LoadInst &Source); 425 void copyNonnullMetadata(const LoadInst &OldLI, MDNode *N, LoadInst &NewLI); 431 void copyRangeMetadata(const DataLayout &DL, const LoadInst &OldLI, MDNode *N, 432 LoadInst &NewLI);
|
| H A D | VNCoercion.h | 27 class LoadInst; variable 62 int analyzeLoadFromClobberingLoad(Type *LoadTy, Value *LoadPtr, LoadInst *DepLI, 87 Value *getLoadValueForLoad(LoadInst *SrcVal, unsigned Offset, Type *LoadTy,
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXLowerArgs.cpp | 175 if (auto *LI = dyn_cast<LoadInst>(I.OldInstruction)) { in convertToParamAS() 257 LoadInst *Inst; in adjustByValArgAlignment() 275 if (auto *I = dyn_cast<LoadInst>(CurUser)) { in adjustByValArgAlignment() 321 if (isa<GetElementPtrInst>(V) || isa<BitCastInst>(V) || isa<LoadInst>(V)) in handleByValParam() 339 if (!isa<LoadInst>(V)) in handleByValParam() 385 LoadInst *LI = in handleByValParam() 386 new LoadInst(StructType, ArgInParam, Arg->getName(), in handleByValParam() 427 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in runOnKernelFunction()
|
| H A D | NVPTXLowerAggrCopies.cpp | 60 SmallVector<LoadInst *, 4> AggrLoads; in runOnFunction() 71 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in runOnFunction() 104 for (LoadInst *LI : AggrLoads) { in runOnFunction()
|
| /llvm-project-15.0.7/polly/include/polly/Support/ |
| H A D | ScopHelper.h | 105 using InvariantLoadsSetTy = llvm::SetVector<llvm::AssertingVH<llvm::LoadInst>>; 143 /* implicit */ MemAccInst(llvm::LoadInst &LI) : I(&LI) {} in MemAccInst() 144 /* implicit */ MemAccInst(llvm::LoadInst *LI) : I(LI) {} in MemAccInst() 153 return llvm::isa<llvm::LoadInst>(V) || llvm::isa<llvm::StoreInst>(V) || in isa() 157 return llvm::isa<llvm::LoadInst>(V) || llvm::isa<llvm::StoreInst>(V) || in isa() 190 MemAccInst &operator=(llvm::LoadInst &LI) { 194 MemAccInst &operator=(llvm::LoadInst *LI) { 307 bool isLoad() const { return I && llvm::isa<llvm::LoadInst>(I); } in isLoad() 316 llvm::LoadInst *asLoad() const { return llvm::cast<llvm::LoadInst>(I); } in asLoad() 441 bool isHoistableLoad(llvm::LoadInst *LInst, llvm::Region &R, llvm::LoopInfo &LI,
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPromoteKernelArguments.cpp | 45 bool promoteLoad(LoadInst *LI); 77 LoadInst *LD = cast<LoadInst>(U); in enqueueUsers() 97 LoadInst *LI = dyn_cast<LoadInst>(Ptr); in promotePointer() 130 bool AMDGPUPromoteKernelArguments::promoteLoad(LoadInst *LI) { in promoteLoad()
|
| H A D | AMDGPULateCodeGenPrepare.cpp | 77 bool canWidenScalarExtLoad(LoadInst &LI) const; 78 bool visitLoadInst(LoadInst &LI); 104 bool AMDGPULateCodeGenPrepare::canWidenScalarExtLoad(LoadInst &LI) const { in canWidenScalarExtLoad() 128 bool AMDGPULateCodeGenPrepare::visitLoadInst(LoadInst &LI) { in visitLoadInst() 171 LoadInst *NewLd = IRB.CreateAlignedLoad(IRB.getInt32Ty(), NewPtr, Align(4)); in visitLoadInst()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | MemDerefPrinter.cpp | 55 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in runOnFunction() 90 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in run()
|
| H A D | ObjCARCAnalysisUtils.cpp | 39 if (const LoadInst *LI = dyn_cast<LoadInst>(Op)) in IsPotentialRetainableObjPtr()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | Loads.h | 25 class LoadInst; variable 81 bool isDereferenceableAndAlignedInLoop(LoadInst *LI, Loop *L, 127 Value *FindAvailableLoadedValue(LoadInst *Load, 139 Value *FindAvailableLoadedValue(LoadInst *Load, AAResults &AA, bool *IsLoadCSE,
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SSAUpdater.cpp | 326 if (const LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter() 348 SmallVector<LoadInst *, 32> LiveInLoads; in run() 367 LiveInLoads.push_back(cast<LoadInst>(User)); in run() 386 LiveInLoads.push_back(cast<LoadInst>(I)); in run() 398 if (LoadInst *L = dyn_cast<LoadInst>(&I)) { in run() 432 for (LoadInst *ALoad : LiveInLoads) { in run() 468 replaceLoadWithValue(cast<LoadInst>(User), NewVal); in run()
|
| H A D | PromoteMemoryToRegister.cpp | 66 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) { in isAllocaPromotable() 140 LoadInst *LI = cast<LoadInst>(User); in AnalyzeAlloca() 189 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || in isInterestingInstruction() 301 static void addAssumeNonNull(AssumptionCache *AC, LoadInst *LI) { in addAssumeNonNull() 318 if (isa<LoadInst>(I) || isa<StoreInst>(I)) in removeIntrinsicUsers() 369 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca() 480 LoadInst *LI = dyn_cast<LoadInst>(U); in promoteSingleBlockAlloca() 820 if (LoadInst *LI = dyn_cast<LoadInst>(I)) in ComputeLiveInBlocks() 949 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in RenamePass()
|
| H A D | GlobalStatus.cpp | 92 if (const LoadInst *LI = dyn_cast<LoadInst>(I)) { in analyzeGlobalAux() 129 } else if (isa<LoadInst>(StoredVal) && in analyzeGlobalAux() 130 cast<LoadInst>(StoredVal)->getOperand(0) == GV) { in analyzeGlobalAux()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Scalar/ |
| H A D | GVN.h | 45 class LoadInst; variable 315 bool processLoad(LoadInst *L); 316 bool processNonLocalLoad(LoadInst *L); 322 bool AnalyzeLoadAvailability(LoadInst *Load, MemDepResult DepInfo, 328 void AnalyzeLoadAvailability(LoadInst *Load, LoadDepVect &Deps, 332 bool PerformLoadPRE(LoadInst *Load, AvailValInBlkVect &ValuesPerBlock, 338 bool performLoopLoadPRE(LoadInst *Load, AvailValInBlkVect &ValuesPerBlock, 344 LoadInst *Load, AvailValInBlkVect &ValuesPerBlock,
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | PhiValuesTest.cpp | 41 Value *Val1 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val1", Entry); in TEST() 42 Value *Val2 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val2", Entry); in TEST() 43 Value *Val3 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val3", Entry); in TEST() 44 Value *Val4 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val4", Entry); in TEST() 114 Value *Val1 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val1", Entry); in TEST() 115 Value *Val2 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val2", Entry); in TEST() 116 Value *Val3 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val3", Entry); in TEST() 117 Value *Val4 = new LoadInst(I32Ty, UndefValue::get(I32PtrTy), "val4", Entry); in TEST()
|
| H A D | MemorySSATest.cpp | 99 LoadInst *LoadInst = B.CreateLoad(B.getInt8Ty(), PointerArg); in TEST_F() local 239 LoadInst *LoadInst = B.CreateLoad(B.getInt8Ty(), PointerArg); in TEST_F() local 284 LoadInst *LoadInstClone = cast<LoadInst>(LoadInst1->clone()); in TEST_F() 497 LoadInst *LoadInst = B.CreateLoad(B.getInt8Ty(), PointerArg); in TEST_F() local 542 LoadInst *LoadInst = B.CreateLoad(B.getInt8Ty(), PointerArg); in TEST_F() local 845 LoadInst *LoadC = B.CreateLoad(Int8, C); in TEST_F() 909 LoadInst *LoadInst = B.CreateLoad(B.getInt8Ty(), FirstArg); in TEST_F() local 1032 for (LoadInst *V : {LA1, LA2}) { in TEST_F() 1040 for (LoadInst *V : {LA3, LA4}) { in TEST_F() 1124 for (LoadInst *V : {LA1, LB1}) { in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LowerAtomicPass.cpp | 30 static bool LowerLoadInst(LoadInst *LI) { in LowerLoadInst() 49 else if (LoadInst *LI = dyn_cast<LoadInst>(&Inst)) { in runOnBasicBlock()
|
| H A D | LoopLoadElimination.cpp | 88 LoadInst *Load; 91 StoreToLoadForwardingCandidate(LoadInst *Load, StoreInst *Store) in StoreToLoadForwardingCandidate() 154 static bool isLoadConditional(LoadInst *Load, Loop *L) { in isLoadConditional() 192 if (isa<LoadInst>(Source)) in findStoreToLoadDependences() 194 if (isa<LoadInst>(Destination)) in findStoreToLoadDependences() 210 auto *Load = dyn_cast<LoadInst>(Destination); in findStoreToLoadDependences() 261 DenseMap<LoadInst *, const StoreToLoadForwardingCandidate *>; in removeDependencesFromMultipleStores() 342 LoadInst *LastLoad = in findPointersWrittenOnForwardingPath() 434 Value *Initial = new LoadInst( in propagateStoredValueToLoadUsers()
|
| H A D | SROA.cpp | 973 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in hasUnsafePHIOrSelectUse() 1153 if (LoadInst *LI = dyn_cast<LoadInst>(U->getUser())) { in findCommonType() 1215 LoadInst *LI = dyn_cast<LoadInst>(U); in isSafePHIToSpeculate() 1279 LoadInst *SomeLoad = cast<LoadInst>(PN.user_back()); in speculatePHINodeLoads() 1292 LoadInst *LI = cast<LoadInst>(PN.user_back()); in speculatePHINodeLoads() 1349 LoadInst *LI; in isSafeSelectToSpeculate() 1381 LoadInst *LI; in speculateSelectInstLoads() 1822 } else if (LoadInst *LI = dyn_cast<LoadInst>(U->getUser())) { in isVectorPromotionViableForSlice() 2007 if (LoadInst *LI = dyn_cast<LoadInst>(U->getUser())) { in isIntegerWideningViableForSlice() 3136 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in fixLoadStoreAlign() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | InterleavedLoadCombinePass.cpp | 93 LoadInst *findFirstLoad(const std::set<LoadInst *> &LIs); 650 LoadInst *LI; 652 ElementInfo(Polynomial Offset = Polynomial(), LoadInst *LI = nullptr) in ElementInfo() 663 std::set<LoadInst *> LIs; 714 LoadInst *LI = dyn_cast<LoadInst>(V); in compute() 866 static bool computeFromLI(LoadInst *LI, VectorInfo &Result, in computeFromLI() 1099 LoadInst * 1109 return cast<LoadInst>(FLI); in findFirstLoad() 1119 LoadInst *InsertionPoint = InterleavedLoad.front().EI[0].LI; in combine() 1125 std::set<LoadInst *> LIs; in combine() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 57 if (auto *LI = dyn_cast<LoadInst>(I)) { in isOnlyCopiedFromConstantMemory() 255 if (auto *Load = dyn_cast<LoadInst>(Inst)) { in collectUsers() 284 if (auto *LT = dyn_cast<LoadInst>(I)) { in replace() 460 LoadInst *InstCombinerImpl::combineLoadToNewType(LoadInst &LI, Type *NewTy, in combineLoadToNewType() 473 LoadInst *NewLoad = Builder.CreateAlignedLoad( in combineLoadToNewType() 929 Instruction *InstCombinerImpl::visitLoadInst(LoadInst &LI) { in visitLoadInst() 1000 LoadInst *V1 = in visitLoadInst() 1003 LoadInst *V2 = in visitLoadInst() 1288 auto *LI = cast<LoadInst>(SI.getValueOperand()); in removeBitcastsFromLoadStoreOnMinMax() 1316 LoadInst *NewLI = IC.combineLoadToNewType(*LI, CmpLoadTy); in removeBitcastsFromLoadStoreOnMinMax() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | GlobalOpt.cpp | 606 if (isa<LoadInst>(U)) { in AllUsesOfValueWillTrapIfNull() 707 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in OptimizeAwayTrappingUsesOfValue() 781 if (LoadInst *LI = dyn_cast<LoadInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads() 931 LoadInst *LI = cast<LoadInst>(U); in OptimizeGlobalAddressOfAllocation() 1236 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { in TryToShrinkGlobalToBoolean() 1255 LoadInst *LI = cast<LoadInst>(UI); in TryToShrinkGlobalToBoolean() 1256 LoadInst *NLI = new LoadInst(NewGV->getValueType(), NewGV, in TryToShrinkGlobalToBoolean() 1326 SmallVector<LoadInst *, 4> Loads; in isPointerValueDeadOnEntryToFunction() 1346 if (auto *LI = dyn_cast<LoadInst>(I)) in isPointerValueDeadOnEntryToFunction() 1459 SmallVector<LoadInst *> Loads; in forwardStoredOnceStore() [all …]
|