Home
last modified time | relevance | path

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

12345678910>>...12

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86AvoidStoreForwardingBlocks.cpp394 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 …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMParallelDSP.cpp74 return isa<LoadInst>(LHS) && isa<LoadInst>(RHS); in HasTwoLoadInputs()
194 LoadInst *NewLd = nullptr;
198 WidenedLoad(SmallVectorImpl<LoadInst*> &Lds, LoadInst *Wide) in WidenedLoad()
202 LoadInst *getLoad() { in getLoad()
214 std::map<LoadInst*, LoadInst*> LoadPairs;
223 bool AreSequentialLoads(LoadInst *Ld0, LoadInst *Ld1, MemInstList &VecMem);
297 bool ARMParallelDSP::AreSequentialLoads(LoadInst *Ld0, LoadInst *Ld1, in AreSequentialLoads()
379 auto SafeToPair = [&](LoadInst *Base, LoadInst *Offset) { in RecordMemoryOps()
623 auto CreateSMLAD = [&](LoadInst* WideLd0, LoadInst *WideLd1, in InsertParallelMACs()
731 LoadInst *Base = Loads[0]; in CreateWideLoad()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DGVN.h46 class LoadInst; variable
316 bool processLoad(LoadInst *L);
317 bool processNonLocalLoad(LoadInst *L);
323 AnalyzeLoadAvailability(LoadInst *Load, MemDepResult DepInfo, Value *Address);
328 void AnalyzeLoadAvailability(LoadInst *Load, LoadDepVect &Deps,
334 LoadInst *findLoadToHoistIntoPred(BasicBlock *Pred, BasicBlock *LoadBB,
335 LoadInst *Load);
337 bool PerformLoadPRE(LoadInst *Load, AvailValInBlkVect &ValuesPerBlock,
343 bool performLoopLoadPRE(LoadInst *Load, AvailValInBlkVect &ValuesPerBlock,
349 LoadInst *Load, AvailValInBlkVect &ValuesPerBlock,
[all …]
H A DMemCpyOptimizer.h31 class LoadInst; variable
64 bool processStoreOfLoad(StoreInst *SI, LoadInst *LI, const DataLayout &DL,
83 bool moveUp(StoreInst *SI, Instruction *P, const LoadInst *LI);
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DLocal.h43 class LoadInst; variable
271 LoadInst *LI, DIBuilder &Builder);
272 void ConvertDebugDeclareToDebugValue(DPValue *DPV, LoadInst *LI,
416 void copyMetadataForLoad(LoadInst &Dest, const LoadInst &Source);
450 void copyNonnullMetadata(const LoadInst &OldLI, MDNode *N, LoadInst &NewLI);
456 void copyRangeMetadata(const DataLayout &DL, const LoadInst &OldLI, MDNode *N,
457 LoadInst &NewLI);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteKernelArguments.cpp45 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 DAMDGPULateCodeGenPrepare.cpp80 bool canWidenScalarExtLoad(LoadInst &LI) const;
81 bool visitLoadInst(LoadInst &LI);
113 bool AMDGPULateCodeGenPrepare::canWidenScalarExtLoad(LoadInst &LI) const { in canWidenScalarExtLoad()
137 bool AMDGPULateCodeGenPrepare::visitLoadInst(LoadInst &LI) { in visitLoadInst()
176 LoadInst *NewLd = IRB.CreateAlignedLoad(IRB.getInt32Ty(), NewPtr, Align(4)); in visitLoadInst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp180 if (auto *LI = dyn_cast<LoadInst>(I.OldInstruction)) { in INITIALIZE_PASS_DEPENDENCY()
261 LoadInst *Inst; in adjustByValArgAlignment()
279 if (auto *I = dyn_cast<LoadInst>(CurUser)) { in adjustByValArgAlignment()
326 if (isa<GetElementPtrInst>(V) || isa<BitCastInst>(V) || isa<LoadInst>(V)) in handleByValParam()
344 if (!isa<LoadInst>(V)) in handleByValParam()
386 LoadInst *LI = in handleByValParam()
387 new LoadInst(StructType, ArgInParam, Arg->getName(), in handleByValParam()
438 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in runOnKernelFunction()
H A DNVPTXLowerAggrCopies.cpp60 SmallVector<LoadInst *, 4> AggrLoads; in runOnFunction()
71 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in runOnFunction()
104 for (LoadInst *LI : AggrLoads) { in runOnFunction()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DLoads.h26 class LoadInst; variable
85 bool isDereferenceableAndAlignedInLoop(LoadInst *LI, Loop *L,
132 Value *FindAvailableLoadedValue(LoadInst *Load, BasicBlock *ScanBB,
143 Value *FindAvailableLoadedValue(LoadInst *Load, BatchAAResults &AA,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSSAUpdater.cpp377 if (const LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter()
399 SmallVector<LoadInst *, 32> LiveInLoads; in run()
418 LiveInLoads.push_back(cast<LoadInst>(User)); in run()
437 LiveInLoads.push_back(cast<LoadInst>(I)); in run()
449 if (LoadInst *L = dyn_cast<LoadInst>(&I)) { in run()
483 for (LoadInst *ALoad : LiveInLoads) { in run()
519 replaceLoadWithValue(cast<LoadInst>(User), NewVal); in run()
H A DPromoteMemoryToRegister.cpp67 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) { in isAllocaPromotable()
252 LoadInst *LI = cast<LoadInst>(User); in AnalyzeAlloca()
310 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || in isInterestingInstruction()
441 static void addAssumeNonNull(AssumptionCache *AC, LoadInst *LI) { in addAssumeNonNull()
452 static void convertMetadataToAssumes(LoadInst *LI, Value *Val, in convertMetadataToAssumes()
471 if (isa<LoadInst>(I) || isa<StoreInst>(I)) in removeIntrinsicUsers()
525 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca()
643 LoadInst *LI = dyn_cast<LoadInst>(U); in promoteSingleBlockAlloca()
1011 if (LoadInst *LI = dyn_cast<LoadInst>(I)) in ComputeLiveInBlocks()
1145 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in RenamePass()
H A DGlobalStatus.cpp92 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()
H A DDemoteRegToStack.cpp74 V = new LoadInst(I.getType(), Slot, I.getName() + ".reload", in DemoteRegToStack()
84 Value *V = new LoadInst(I.getType(), Slot, I.getName() + ".reload", in DemoteRegToStack()
162 new LoadInst(P->getType(), Slot, P->getName() + ".reload", User); in DemotePHIToStack()
167 new LoadInst(P->getType(), Slot, P->getName() + ".reload", &*InsertPt); in DemotePHIToStack()
H A DRelLookupTableConverter.cpp42 LoadInst *Load = dyn_cast<LoadInst>(GEP->use_begin()->getUser()); in shouldConvertToRelLookupTable()
133 LoadInst *Load = cast<LoadInst>(GEP->use_begin()->getUser()); in convertToRelLookupTable()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerAtomicPass.cpp30 static bool LowerLoadInst(LoadInst *LI) { in LowerLoadInst()
49 else if (LoadInst *LI = dyn_cast<LoadInst>(&Inst)) { in runOnBasicBlock()
H A DLoopLoadElimination.cpp85 LoadInst *Load;
88 StoreToLoadForwardingCandidate(LoadInst *Load, StoreInst *Store) in StoreToLoadForwardingCandidate()
161 static bool isLoadConditional(LoadInst *Load, Loop *L) { in isLoadConditional()
200 if (isa<LoadInst>(Source)) in findStoreToLoadDependences()
202 if (isa<LoadInst>(Destination)) in findStoreToLoadDependences()
218 auto *Load = dyn_cast<LoadInst>(Destination); in findStoreToLoadDependences()
270 DenseMap<LoadInst *, const StoreToLoadForwardingCandidate *>; in removeDependencesFromMultipleStores()
351 LoadInst *LastLoad = in findPointersWrittenOnForwardingPath()
443 Value *Initial = new LoadInst( in propagateStoredValueToLoadUsers()
H A DSROA.cpp1338 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in hasUnsafePHIOrSelectUse()
1526 if (LoadInst *LI = dyn_cast<LoadInst>(U->getUser())) { in findCommonType()
1588 LoadInst *LI = dyn_cast<LoadInst>(U); in isSafePHIToSpeculate()
1653 LoadInst *SomeLoad = cast<LoadInst>(PN.user_back()); in speculatePHINodeLoads()
1666 LoadInst *LI = cast<LoadInst>(PN.user_back()); in speculatePHINodeLoads()
1805 LoadInst *TL = in speculateSelectInstLoads()
1808 LoadInst *FL = in speculateSelectInstLoads()
2106 } else if (LoadInst *LI = dyn_cast<LoadInst>(U->getUser())) { in isVectorPromotionViableForSlice()
2411 if (LoadInst *LI = dyn_cast<LoadInst>(U->getUser())) { in isIntegerWideningViableForSlice()
3611 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in fixLoadStoreAlign()
[all …]
/freebsd-14.2/contrib/llvm-project/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;
717 LoadInst *LI = dyn_cast<LoadInst>(V); in compute()
869 static bool computeFromLI(LoadInst *LI, VectorInfo &Result, in computeFromLI()
1105 LoadInst *
1115 return cast<LoadInst>(FLI); in findFirstLoad()
1125 LoadInst *InsertionPoint = InterleavedLoad.front().EI[0].LI; in combine()
1131 std::set<LoadInst *> LIs; in combine()
[all …]
H A DInterleavedAccessPass.cpp103 bool lowerInterleavedLoad(LoadInst *LI,
134 LoadInst *LI);
275 LoadInst *LI, SmallVector<Instruction *, 32> &DeadInsts) { in lowerInterleavedLoad()
382 SmallVectorImpl<ShuffleVectorInst *> &Shuffles, LoadInst *LI) { in replaceBinOpShuffles()
505 LoadInst *LI = dyn_cast<LoadInst>(DI->getOperand(0)); in lowerDeinterleaveIntrinsic()
550 if (auto *LI = dyn_cast<LoadInst>(&I)) in runOnFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DObjCARCAnalysisUtils.cpp39 if (const LoadInst *LI = dyn_cast<LoadInst>(Op)) in IsPotentialRetainableObjPtr()
H A DMemoryDependenceAnalysis.cpp110 if (const LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in GetLocation()
246 if (auto *LI = dyn_cast<LoadInst>(QueryInst)) { in getPointerDependencyFrom()
340 if ((isa<LoadInst>(U) || in getInvariantGroupPointerDependency()
441 if (LoadInst *LI = dyn_cast<LoadInst>(QueryInst)) { in getSimplePointerDependencyFrom()
453 if (auto *LI = dyn_cast<LoadInst>(I)) in getSimplePointerDependencyFrom()
511 if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in getSimplePointerDependencyFrom()
874 bool isLoad = isa<LoadInst>(QueryInst); in getNonLocalPointerDependency()
901 if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in getNonLocalPointerDependency()
941 if (LoadInst *LI = dyn_cast_or_null<LoadInst>(QueryInst)) in getNonLocalInfoForBlock()
1084 if (LoadInst *LI = dyn_cast_or_null<LoadInst>(QueryInst)) in getNonLocalPointerDepFromBB()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUMemoryUtils.h18 class LoadInst; variable
36 bool isClobberedInFunction(const LoadInst *Load, MemorySSA *MSSA,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp651 if (isa<LoadInst>(U)) { in AllUsesOfValueWillTrapIfNull()
753 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
826 if (LoadInst *LI = dyn_cast<LoadInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads()
959 LoadInst *LI = cast<LoadInst>(U); in OptimizeGlobalAddressOfAllocation()
1258 if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) { in TryToShrinkGlobalToBoolean()
1277 LoadInst *LI = cast<LoadInst>(UI); in TryToShrinkGlobalToBoolean()
1278 LoadInst *NLI = new LoadInst(NewGV->getValueType(), NewGV, in TryToShrinkGlobalToBoolean()
1348 SmallVector<LoadInst *, 4> Loads; in isPointerValueDeadOnEntryToFunction()
1356 if (auto *LI = dyn_cast<LoadInst>(I)) in isPointerValueDeadOnEntryToFunction()
1413 SmallVector<LoadInst *> Loads; in forwardStoredOnceStore()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp76 if (auto *LI = dyn_cast<LoadInst>(I)) { in isOnlyCopiedFromConstantMemory()
299 if (auto *Load = dyn_cast<LoadInst>(Inst)) { in collectUsersRecursive()
362 if (auto *LT = dyn_cast<LoadInst>(I)) { in replace()
563 LoadInst *InstCombinerImpl::combineLoadToNewType(LoadInst &LI, Type *NewTy, in combineLoadToNewType()
568 LoadInst *NewLoad = in combineLoadToNewType()
650 LoadInst &Load) { in combineLoadToOperationType()
993 static bool canSimplifyNullLoadOrGEP(LoadInst &LI, Value *Op) { in canSimplifyNullLoadOrGEP()
1007 Instruction *InstCombinerImpl::visitLoadInst(LoadInst &LI) { in visitLoadInst()
1075 LoadInst *V1 = in visitLoadInst()
1078 LoadInst *V2 = in visitLoadInst()
[all …]

12345678910>>...12