Home
last modified time | relevance | path

Searched refs:LoadInst (Results 1 – 25 of 222) sorted by relevance

123456789

/freebsd-12.1/contrib/llvm/lib/Target/X86/
H A DX86AvoidStoreForwardingBlocks.cpp395 BuildMI(*MBB, LoadInst, LoadInst->getDebugLoc(), TII->get(NLoadOpcode), in buildCopy()
410 if (StoreInst->getPrevNode() == LoadInst) in buildCopy()
411 StInst = LoadInst; in buildCopy()
439 buildCopy(LoadInst, getYMMtoXMMLoadOpcode(LoadInst->getOpcode()), LdDisp, in buildCopies()
501 if (StoreInst->getPrevNode() == LoadInst) in updateKillStatus()
507 if (StoreInst->getPrevNode() == LoadInst) in updateKillStatus()
508 StInst = LoadInst; in updateKillStatus()
684 findPotentialBlockers(LoadInst); in runOnMachineFunction()
712 LLVM_DEBUG(LoadInst->dump()); in runOnMachineFunction()
717 updateKillStatus(LoadInst, StoreInst); in runOnMachineFunction()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DARMParallelDSP.cpp126 std::map<LoadInst*, LoadInst*> LoadPairs;
127 std::map<LoadInst*, SmallVector<LoadInst*, 4>> SequentialLoads;
131 bool AreSequentialLoads(LoadInst *Ld0, LoadInst *Ld1, MemInstList &VecMem);
133 Instruction *CreateSMLADCall(LoadInst *VecLd0, LoadInst *VecLd1,
283 bool ARMParallelDSP::AreSequentialLoads(LoadInst *Ld0, LoadInst *Ld1, in AreSequentialLoads()
310 SmallVector<LoadInst*, 8> Loads; in RecordSequentialLoads()
312 auto *Ld = dyn_cast<LoadInst>(&I); in RecordSequentialLoads()
318 std::map<LoadInst*, LoadInst*> BaseLoads; in RecordSequentialLoads()
611 if (!isa<LoadInst>(LHS[i]) || !isa<LoadInst>(RHS[i])) in CheckMACMemory()
691 static LoadInst *CreateLoadIns(IRBuilder<NoFolder> &IRB, LoadInst &BaseLoad, in CreateLoadIns()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp169 if (LoadInst *L = dyn_cast<LoadInst>(UI)) in doPromotion()
185 LoadInst *OrigLoad; in doPromotion()
186 if (LoadInst *L = dyn_cast<LoadInst>(UI)) in doPromotion()
278 LoadInst *OrigLoad = in doPromotion()
303 LoadInst *newLoad = new LoadInst(V, V->getName() + ".val", Call); in doPromotion()
425 if (LoadInst *LI = dyn_cast<LoadInst>(I->user_back())) { in doPromotion()
464 LoadInst *L = cast<LoadInst>(GEP->user_back()); in doPromotion()
608 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in isSafeToPromoteArgument()
641 if (LoadInst *LI = dyn_cast<LoadInst>(UR)) { in isSafeToPromoteArgument()
670 if (LoadInst *LI = dyn_cast<LoadInst>(GEPU)) { in isSafeToPromoteArgument()
[all …]
H A DGlobalOpt.cpp290 if (LoadInst *LI = dyn_cast<LoadInst>(U)) { in CleanupConstantGlobalUsers()
664 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) { in AllUsesOfLoadedValueWillTrapIfNull()
686 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
760 if (LoadInst *LI = dyn_cast<LoadInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads()
898 LoadInst *LI = cast<LoadInst>(GV->user_back()); in OptimizeGlobalAddressOfMalloc()
1108 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) { in AllGlobalLoadUsesSimpleEnoughForHeapSRA()
1135 if (const LoadInst *LI = dyn_cast<LoadInst>(InVal)) in AllGlobalLoadUsesSimpleEnoughForHeapSRA()
1164 if (LoadInst *LI = dyn_cast<LoadInst>(V)) { in GetHeapSROAValue()
1397 if (LoadInst *LI = dyn_cast<LoadInst>(User)) { in PerformHeapAllocSRoA()
1440 else if (LoadInst *LI = dyn_cast<LoadInst>(I->first)) in PerformHeapAllocSRoA()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DPromoteMemoryToRegister.cpp72 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) { in isAllocaPromotable()
147 LoadInst *LI = cast<LoadInst>(User); in AnalyzeAlloca()
197 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || in isInterestingInstruction()
314 static void addAssumeNonNull(AssumptionCache *AC, LoadInst *LI) { in addAssumeNonNull()
332 if (isa<LoadInst>(I) || isa<StoreInst>(I)) in removeLifetimeIntrinsicUsers()
370 if (!isa<LoadInst>(UserInst)) { in rewriteSingleStoreAlloca()
374 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca()
484 LoadInst *LI = dyn_cast<LoadInst>(*UI++); in promoteSingleBlockAlloca()
828 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in ComputeLiveInBlocks()
959 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in RenamePass()
H A DSSAUpdater.cpp343 if (const LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter()
366 SmallVector<LoadInst *, 32> LiveInLoads; in run()
385 LiveInLoads.push_back(cast<LoadInst>(User)); in run()
404 LiveInLoads.push_back(cast<LoadInst>(I)); in run()
416 if (LoadInst *L = dyn_cast<LoadInst>(&I)) { in run()
450 for (LoadInst *ALoad : LiveInLoads) { in run()
483 replaceLoadWithValue(cast<LoadInst>(User), NewVal); in run()
H A DGlobalStatus.cpp89 if (const LoadInst *LI = dyn_cast<LoadInst>(I)) { in analyzeGlobalAux()
124 } else if (isa<LoadInst>(StoredVal) && in analyzeGlobalAux()
125 cast<LoadInst>(StoredVal)->getOperand(0) == GV) { in analyzeGlobalAux()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUAnnotateUniformValues.cpp58 void visitLoadInst(LoadInst &I);
59 bool isClobberedInFunction(LoadInst * Load);
87 bool AMDGPUAnnotateUniformValues::isClobberedInFunction(LoadInst * Load) { in isClobberedInFunction()
124 void AMDGPUAnnotateUniformValues::visitLoadInst(LoadInst &I) { in visitLoadInst()
128 auto isGlobalLoad = [&](LoadInst &Load)->bool { in visitLoadInst()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DLowerAtomic.cpp30 LoadInst *Orig = Builder.CreateLoad(Ptr); in LowerAtomicCmpXchgInst()
48 LoadInst *Orig = Builder.CreateLoad(Ptr); in LowerAtomicRMWInst()
102 static bool LowerLoadInst(LoadInst *LI) { in LowerLoadInst()
122 else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in runOnBasicBlock()
H A DLoopLoadElimination.cpp85 LoadInst *Load;
88 StoreToLoadForwardingCandidate(LoadInst *Load, StoreInst *Store) in StoreToLoadForwardingCandidate()
152 static bool isLoadConditional(LoadInst *Load, Loop *L) { in isLoadConditional()
189 if (isa<LoadInst>(Source)) in findStoreToLoadDependences()
191 if (isa<LoadInst>(Destination)) in findStoreToLoadDependences()
207 auto *Load = dyn_cast<LoadInst>(Destination); in findStoreToLoadDependences()
257 DenseMap<LoadInst *, const StoreToLoadForwardingCandidate *>; in removeDependencesFromMultipleStores()
338 LoadInst *LastLoad = in findPointersWrittenOnForwardingPath()
432 new LoadInst(InitialPtr, "load_initial", /* isVolatile */ false, in propagateStoredValueToLoadUsers()
H A DSROA.cpp944 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in hasUnsafePHIOrSelectUse()
1125 if (LoadInst *LI = dyn_cast<LoadInst>(U->getUser())) { in findCommonType()
1184 LoadInst *LI = dyn_cast<LoadInst>(U); in isSafePHIToSpeculate()
1249 LoadInst *SomeLoad = cast<LoadInst>(PN.user_back()); in speculatePHINodeLoads()
1257 LoadInst *LI = cast<LoadInst>(PN.user_back()); in speculatePHINodeLoads()
1313 LoadInst *LI = dyn_cast<LoadInst>(U); in isSafeSelectToSpeculate()
1337 LoadInst *LI = cast<LoadInst>(SI.user_back()); in speculateSelectInstLoads()
1341 LoadInst *TL = in speculateSelectInstLoads()
1814 } else if (LoadInst *LI = dyn_cast<LoadInst>(U->getUser())) { in isVectorPromotionViableForSlice()
1975 if (LoadInst *LI = dyn_cast<LoadInst>(U->getUser())) { in isIntegerWideningViableForSlice()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAggrCopies.cpp61 SmallVector<LoadInst *, 4> AggrLoads; in runOnFunction()
73 if (LoadInst *LI = dyn_cast<LoadInst>(II)) { in runOnFunction()
106 for (LoadInst *LI : AggrLoads) { in runOnFunction()
H A DNVPTXLowerArgs.cpp173 LoadInst *LI = new LoadInst(ArgInParam, Arg->getName(), FirstInst); in handleByValParam()
212 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in runOnKernelFunction()
/freebsd-12.1/contrib/llvm/include/llvm/Transforms/Utils/
H A DLocal.h53 class LoadInst; variable
287 LoadInst *LI, DIBuilder &Builder);
443 void copyNonnullMetadata(const LoadInst &OldLI, MDNode *N, LoadInst &NewLI);
449 void copyRangeMetadata(const DataLayout &DL, const LoadInst &OldLI, MDNode *N,
450 LoadInst &NewLI);
H A DVNCoercion.h29 class LoadInst; variable
63 int analyzeLoadFromClobberingLoad(Type *LoadTy, Value *LoadPtr, LoadInst *DepLI,
88 Value *getLoadValueForLoad(LoadInst *SrcVal, unsigned Offset, Type *LoadTy,
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp74 if (auto *LI = dyn_cast<LoadInst>(I)) { in isOnlyCopiedFromConstantGlobal()
274 if (isa<LoadInst>(Inst)) { in findLoadAndReplace()
299 if (auto *LT = dyn_cast<LoadInst>(I)) { in replace()
302 auto *NewI = new LoadInst(V); in replace()
452 static LoadInst *combineLoadToNewType(InstCombiner &IC, LoadInst &LI, Type *NewTy, in combineLoadToNewType()
468 LoadInst *NewLoad = IC.Builder.CreateAlignedLoad( in combineLoadToNewType()
643 LoadInst *NewLoad = combineLoadToNewType( in combineLoadToOperationType()
992 Instruction *InstCombiner::visitLoadInst(LoadInst &LI) { in visitLoadInst()
1361 auto *LI = cast<LoadInst>(SI.getValueOperand()); in removeBitcastsFromLoadStoreOnMinMax()
1376 LoadInst *NewLI = combineLoadToNewType( in removeBitcastsFromLoadStoreOnMinMax()
[all …]
H A DInstCombinePHI.cpp110 if (LoadInst *LoadI = dyn_cast<LoadInst>(U)) { in FoldIntegerTypedPHI()
165 auto *LoadI = dyn_cast<LoadInst>(Arg); in FoldIntegerTypedPHI()
245 LoadInst *LoadI = dyn_cast<LoadInst>(IncomingVal); in FoldIntegerTypedPHI()
494 static bool isSafeAndProfitableToSinkLoad(LoadInst *L) { in isSafeAndProfitableToSinkLoad()
506 if (isa<LoadInst>(U)) continue; in isSafeAndProfitableToSinkLoad()
533 LoadInst *FirstLI = cast<LoadInst>(PN.getIncomingValue(0)); in FoldPHIArgLoadIntoPHI()
564 LoadInst *LI = dyn_cast<LoadInst>(PN.getIncomingValue(i)); in FoldPHIArgLoadIntoPHI()
599 LoadInst *NewLI = new LoadInst(NewPN, "", isVolatile, LoadAlignment); in FoldPHIArgLoadIntoPHI()
619 LoadInst *LI = cast<LoadInst>(PN.getIncomingValue(i)); in FoldPHIArgLoadIntoPHI()
641 cast<LoadInst>(IncValue)->setVolatile(false); in FoldPHIArgLoadIntoPHI()
[all …]
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp94 LoadInst *findFirstLoad(const std::set<LoadInst *> &LIs);
651 LoadInst *LI;
653 ElementInfo(Polynomial Offset = Polynomial(), LoadInst *LI = nullptr) in ElementInfo()
664 std::set<LoadInst *> LIs;
716 LoadInst *LI = dyn_cast<LoadInst>(V); in compute()
868 static bool computeFromLI(LoadInst *LI, VectorInfo &Result, in computeFromLI()
1100 LoadInst *
1112 return cast<LoadInst>(FLI); in findFirstLoad()
1122 LoadInst *InsertionPoint = InterleavedLoad.front().EI[0].LI; in combine()
1128 std::set<LoadInst *> LIs; in combine()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/Transforms/Scalar/
H A DGVN.h48 class LoadInst; variable
249 bool processLoad(LoadInst *L);
250 bool processNonLocalLoad(LoadInst *L);
256 bool AnalyzeLoadAvailability(LoadInst *LI, MemDepResult DepInfo,
262 void AnalyzeLoadAvailability(LoadInst *LI, LoadDepVect &Deps,
266 bool PerformLoadPRE(LoadInst *LI, AvailValInBlkVect &ValuesPerBlock,
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGBuilder.h70 llvm::LoadInst *CreateLoad(Address Addr, const llvm::Twine &Name = "") {
75 llvm::LoadInst *CreateLoad(Address Addr, const char *Name) { in CreateLoad()
82 llvm::LoadInst *CreateLoad(Address Addr, bool IsVolatile,
91 llvm::LoadInst *CreateAlignedLoad(llvm::Value *Addr, CharUnits Align,
95 llvm::LoadInst *CreateAlignedLoad(llvm::Value *Addr, CharUnits Align, in CreateAlignedLoad()
99 llvm::LoadInst *CreateAlignedLoad(llvm::Type *Ty, llvm::Value *Addr,
129 llvm::LoadInst *CreateFlagLoad(llvm::Value *Addr,
/freebsd-12.1/contrib/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp132 unsigned getAlignment(LoadInst *LI) const { in getAlignment()
305 if (LoadInst *L = dyn_cast<LoadInst>(I)) in getPointerAddressSpace()
592 bool IsLoadChain = isa<LoadInst>(Chain[0]); in getVectorizablePrefix()
596 assert(isa<LoadInst>(I) && in getVectorizablePrefix()
605 if (isa<LoadInst>(I) || isa<StoreInst>(I)) { in getVectorizablePrefix()
646 auto *MemLoad = dyn_cast<LoadInst>(MemInstr); in getVectorizablePrefix()
647 auto *ChainLoad = dyn_cast<LoadInst>(ChainInstr); in getVectorizablePrefix()
735 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in collectInstructions()
913 if (isa<LoadInst>(*Operands.begin())) in vectorizeInstructions()
1077 LoadInst *L0 = cast<LoadInst>(Chain[0]); in vectorizeLoadChain()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp347 } else if (LoadInst *L = dyn_cast<LoadInst>(Addr)) { in addrPointsToConstantData()
381 LoadInst *Load = cast<LoadInst>(I); in chooseInstructionsToInstrument()
397 : cast<LoadInst>(I)->getPointerOperand(); in chooseInstructionsToInstrument()
413 if (LoadInst *LI = dyn_cast<LoadInst>(I)) in isAtomic()
456 else if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst)) in sanitizeFunction()
522 : cast<LoadInst>(I)->getPointerOperand(); in instrumentLoadOrStore()
559 : cast<LoadInst>(I)->getAlignment(); in instrumentLoadOrStore()
628 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in instrumentAtomic()
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DObjCARCAnalysisUtils.h189 if (const LoadInst *LI = dyn_cast<LoadInst>(Op)) in IsPotentialRetainableObjPtr()
222 if (const LoadInst *LI = dyn_cast<LoadInst>(V)) { in IsObjCIdentifiedObject()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
H A DRenderScriptx86ABIFixups.cpp193 llvm::LoadInst *new_func_addr_load = in fixupX86StructRetCalls()
194 new llvm::LoadInst(new_func_ptr, "load_func_pointer", call_inst); in fixupX86StructRetCalls()
200 llvm::LoadInst *lldb_save_result_address = in fixupX86StructRetCalls()
201 new llvm::LoadInst(return_value_alloc, "save_return_val", call_inst); in fixupX86StructRetCalls()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DMemoryDependenceAnalysis.cpp119 if (const LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in GetLocation()
243 const LoadInst *LI) { in getLoadLoadClobberFullWidthSize()
319 if (auto *LI = dyn_cast<LoadInst>(Inst)) in isVolatile()
333 if (auto *LI = dyn_cast<LoadInst>(QueryInst)) { in getPointerDependencyFrom()
356 MemoryDependenceResults::getInvariantGroupPointerDependency(LoadInst *LI, in getInvariantGroupPointerDependency()
419 if ((isa<LoadInst>(U) || isa<StoreInst>(U)) && in getInvariantGroupPointerDependency()
484 LoadInst *LI = dyn_cast<LoadInst>(QueryInst); in getSimplePointerDependencyFrom()
500 if (auto *LI = dyn_cast<LoadInst>(I)) in getSimplePointerDependencyFrom()
547 if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in getSimplePointerDependencyFrom()
913 bool isLoad = isa<LoadInst>(QueryInst); in getNonLocalPointerDependency()
[all …]

123456789