Home
last modified time | relevance | path

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

1234567891011

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86AvoidStoreForwardingBlocks.cpp399 BuildMI(*MBB, LoadInst, LoadInst->getDebugLoc(), TII->get(NLoadOpcode), in buildCopy()
416 if (PrevInstrIt.getNodePtr() == LoadInst) in buildCopy()
417 StInst = LoadInst; in buildCopy()
445 buildCopy(LoadInst, getYMMtoXMMLoadOpcode(LoadInst->getOpcode()), LdDisp, in buildCopies()
511 if (StorePrevNonDbgInstr == LoadInst) in updateKillStatus()
517 if (StorePrevNonDbgInstr == LoadInst) in updateKillStatus()
518 StInst = LoadInst; in updateKillStatus()
690 findPotentialBlockers(LoadInst); in runOnMachineFunction()
717 LLVM_DEBUG(LoadInst->dump()); in runOnMachineFunction()
722 updateKillStatus(LoadInst, StoreInst); in runOnMachineFunction()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMParallelDSP.cpp75 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()
624 auto CreateSMLAD = [&](LoadInst* WideLd0, LoadInst *WideLd1, in InsertParallelMACs()
732 LoadInst *Base = Loads[0]; in CreateWideLoad()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DLocal.h53 class LoadInst; variable
251 LoadInst *LI, DIBuilder &Builder);
376 void copyMetadataForLoad(LoadInst &Dest, const LoadInst &Source);
410 void copyNonnullMetadata(const LoadInst &OldLI, MDNode *N, LoadInst &NewLI);
416 void copyRangeMetadata(const DataLayout &DL, const LoadInst &OldLI, MDNode *N,
417 LoadInst &NewLI);
H A DVNCoercion.h27 class LoadInst; variable
62 int analyzeLoadFromClobberingLoad(Type *LoadTy, Value *LoadPtr, LoadInst *DepLI,
87 Value *getLoadValueForLoad(LoadInst *SrcVal, unsigned Offset, Type *LoadTy,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAnnotateUniformValues.cpp51 void visitLoadInst(LoadInst &I);
52 bool isClobberedInFunction(LoadInst * Load);
73 bool AMDGPUAnnotateUniformValues::isClobberedInFunction(LoadInst * Load) { in isClobberedInFunction()
83 void AMDGPUAnnotateUniformValues::visitLoadInst(LoadInst &I) { in visitLoadInst()
87 auto isGlobalLoad = [&](LoadInst &Load)->bool { in visitLoadInst()
H A DAMDGPULateCodeGenPrepare.cpp77 bool canWidenScalarExtLoad(LoadInst &LI) const;
78 bool visitLoadInst(LoadInst &LI);
106 bool AMDGPULateCodeGenPrepare::canWidenScalarExtLoad(LoadInst &LI) const { in canWidenScalarExtLoad()
130 bool AMDGPULateCodeGenPrepare::visitLoadInst(LoadInst &LI) { in visitLoadInst()
173 LoadInst *NewLd = IRB.CreateAlignedLoad(IRB.getInt32Ty(), NewPtr, Align(4)); in visitLoadInst()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp165 if (LoadInst *L = dyn_cast<LoadInst>(UI)) in doPromotion()
187 LoadInst *OrigLoad; in doPromotion()
188 if (LoadInst *L = dyn_cast<LoadInst>(UI)) in doPromotion()
288 LoadInst *OrigLoad = in doPromotion()
312 LoadInst *newLoad = in doPromotion()
429 if (LoadInst *LI = dyn_cast<LoadInst>(I->user_back())) { in doPromotion()
465 LoadInst *L = cast<LoadInst>(GEP->user_back()); in doPromotion()
623 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in isSafeToPromoteArgument()
663 if (LoadInst *LI = dyn_cast<LoadInst>(UR)) { in isSafeToPromoteArgument()
692 if (LoadInst *LI = dyn_cast<LoadInst>(GEPU)) { in isSafeToPromoteArgument()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerArgs.cpp174 if (auto *LI = dyn_cast<LoadInst>(I.OldInstruction)) { in convertToParamAS()
241 if (isa<GetElementPtrInst>(V) || isa<BitCastInst>(V) || isa<LoadInst>(V)) in handleByValParam()
259 if (!isa<LoadInst>(V)) in handleByValParam()
296 LoadInst *LI = in handleByValParam()
297 new LoadInst(StructType, ArgInParam, Arg->getName(), in handleByValParam()
338 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in runOnKernelFunction()
H A DNVPTXLowerAggrCopies.cpp60 SmallVector<LoadInst *, 4> AggrLoads; in runOnFunction()
72 if (LoadInst *LI = dyn_cast<LoadInst>(II)) { in runOnFunction()
105 for (LoadInst *LI : AggrLoads) { in runOnFunction()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DLoads.h25 class LoadInst; variable
83 bool isDereferenceableAndAlignedInLoop(LoadInst *LI, Loop *L,
129 Value *FindAvailableLoadedValue(LoadInst *Load,
141 Value *FindAvailableLoadedValue(LoadInst *Load, AAResults &AA, bool *IsLoadCSE,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DMemDerefPrinter.cpp58 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in runOnFunction()
93 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in run()
H A DObjCARCAnalysisUtils.cpp39 if (const LoadInst *LI = dyn_cast<LoadInst>(Op)) in IsPotentialRetainableObjPtr()
H A DMemoryDependenceAnalysis.cpp118 if (const LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in GetLocation()
252 if (auto *LI = dyn_cast<LoadInst>(QueryInst)) { in getPointerDependencyFrom()
346 if ((isa<LoadInst>(U) || in getInvariantGroupPointerDependency()
412 LoadInst *LI = dyn_cast<LoadInst>(QueryInst); in getSimplePointerDependencyFrom()
420 if (auto *LI = dyn_cast<LoadInst>(I)) in getSimplePointerDependencyFrom()
484 if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in getSimplePointerDependencyFrom()
845 bool isLoad = isa<LoadInst>(QueryInst); in getNonLocalPointerDependency()
872 if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in getNonLocalPointerDependency()
912 if (LoadInst *LI = dyn_cast_or_null<LoadInst>(QueryInst)) in getNonLocalInfoForBlock()
1055 if (LoadInst *LI = dyn_cast_or_null<LoadInst>(QueryInst)) in getNonLocalPointerDepFromBB()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DGVN.h47 class LoadInst; variable
313 bool processLoad(LoadInst *L);
314 bool processNonLocalLoad(LoadInst *L);
320 bool AnalyzeLoadAvailability(LoadInst *Load, MemDepResult DepInfo,
326 void AnalyzeLoadAvailability(LoadInst *Load, LoadDepVect &Deps,
330 bool PerformLoadPRE(LoadInst *Load, AvailValInBlkVect &ValuesPerBlock,
336 bool performLoopLoadPRE(LoadInst *Load, AvailValInBlkVect &ValuesPerBlock,
342 LoadInst *Load, AvailValInBlkVect &ValuesPerBlock,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSSAUpdater.cpp327 if (const LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter()
349 SmallVector<LoadInst *, 32> LiveInLoads; in run()
368 LiveInLoads.push_back(cast<LoadInst>(User)); in run()
387 LiveInLoads.push_back(cast<LoadInst>(I)); in run()
399 if (LoadInst *L = dyn_cast<LoadInst>(&I)) { in run()
433 for (LoadInst *ALoad : LiveInLoads) { in run()
466 replaceLoadWithValue(cast<LoadInst>(User), NewVal); in run()
H A DPromoteMemoryToRegister.cpp67 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()
818 if (LoadInst *LI = dyn_cast<LoadInst>(I)) in ComputeLiveInBlocks()
947 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in RenamePass()
H A DGlobalStatus.cpp87 if (const LoadInst *LI = dyn_cast<LoadInst>(I)) { in analyzeGlobalAux()
122 } else if (isa<LoadInst>(StoredVal) && in analyzeGlobalAux()
123 cast<LoadInst>(StoredVal)->getOperand(0) == GV) { in analyzeGlobalAux()
H A DRelLookupTableConverter.cpp44 LoadInst *Load = dyn_cast<LoadInst>(GEP->use_begin()->getUser()); in shouldConvertToRelLookupTable()
130 LoadInst *Load = cast<LoadInst>(GEP->use_begin()->getUser()); in convertToRelLookupTable()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLowerAtomic.cpp30 LoadInst *Orig = Builder.CreateLoad(Val->getType(), Ptr); in LowerAtomicCmpXchgInst()
48 LoadInst *Orig = Builder.CreateLoad(Val->getType(), Ptr); in lowerAtomicRMWInst()
108 static bool LowerLoadInst(LoadInst *LI) { in LowerLoadInst()
127 else if (LoadInst *LI = dyn_cast<LoadInst>(&Inst)) { in runOnBasicBlock()
H A DLoopLoadElimination.cpp90 LoadInst *Load;
93 StoreToLoadForwardingCandidate(LoadInst *Load, StoreInst *Store) in StoreToLoadForwardingCandidate()
156 static bool isLoadConditional(LoadInst *Load, Loop *L) { in isLoadConditional()
194 if (isa<LoadInst>(Source)) in findStoreToLoadDependences()
196 if (isa<LoadInst>(Destination)) in findStoreToLoadDependences()
212 auto *Load = dyn_cast<LoadInst>(Destination); in findStoreToLoadDependences()
262 DenseMap<LoadInst *, const StoreToLoadForwardingCandidate *>; in removeDependencesFromMultipleStores()
343 LoadInst *LastLoad = in findPointersWrittenOnForwardingPath()
435 Value *Initial = new LoadInst( in propagateStoredValueToLoadUsers()
H A DSROA.cpp976 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in hasUnsafePHIOrSelectUse()
1149 if (LoadInst *LI = dyn_cast<LoadInst>(U->getUser())) { in findCommonType()
1212 LoadInst *LI = dyn_cast<LoadInst>(U); in isSafePHIToSpeculate()
1270 LoadInst *SomeLoad = cast<LoadInst>(PN.user_back()); in speculatePHINodeLoads()
1284 LoadInst *LI = cast<LoadInst>(PN.user_back()); in speculatePHINodeLoads()
1340 LoadInst *LI = dyn_cast<LoadInst>(U); in isSafeSelectToSpeculate()
1366 LoadInst *LI = cast<LoadInst>(SI.user_back()); in speculateSelectInstLoads()
1857 } else if (LoadInst *LI = dyn_cast<LoadInst>(U->getUser())) { in isVectorPromotionViableForSlice()
2027 if (LoadInst *LI = dyn_cast<LoadInst>(U->getUser())) { in isIntegerWideningViableForSlice()
3166 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in fixLoadStoreAlign()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp95 LoadInst *findFirstLoad(const std::set<LoadInst *> &LIs);
652 LoadInst *LI;
654 ElementInfo(Polynomial Offset = Polynomial(), LoadInst *LI = nullptr) in ElementInfo()
665 std::set<LoadInst *> LIs;
717 LoadInst *LI = dyn_cast<LoadInst>(V); in compute()
869 static bool computeFromLI(LoadInst *LI, VectorInfo &Result, in computeFromLI()
1102 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-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp60 if (auto *LI = dyn_cast<LoadInst>(I)) { in isOnlyCopiedFromConstantMemory()
265 if (auto *Load = dyn_cast<LoadInst>(Inst)) { in collectUsers()
294 if (auto *LT = dyn_cast<LoadInst>(I)) { in replace()
471 LoadInst *InstCombinerImpl::combineLoadToNewType(LoadInst &LI, Type *NewTy, in combineLoadToNewType()
484 LoadInst *NewLoad = Builder.CreateAlignedLoad( in combineLoadToNewType()
949 Instruction *InstCombinerImpl::visitLoadInst(LoadInst &LI) { in visitLoadInst()
1020 LoadInst *V1 = in visitLoadInst()
1023 LoadInst *V2 = in visitLoadInst()
1312 auto *LI = cast<LoadInst>(SI.getValueOperand()); in removeBitcastsFromLoadStoreOnMinMax()
1340 LoadInst *NewLI = IC.combineLoadToNewType(*LI, CmpLoadTy); in removeBitcastsFromLoadStoreOnMinMax()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRForTarget.cpp756 LoadInst *load = dyn_cast<LoadInst>(selector_load); in RewriteObjCSelector()
886 if (LoadInst *load = dyn_cast<LoadInst>(&inst)) in RewriteObjCSelectors()
918 LoadInst *load = dyn_cast<LoadInst>(class_load); in RewriteObjCClassReference()
1038 if (LoadInst *load = dyn_cast<LoadInst>(&inst)) in RewriteObjCClassReferences()
1115 LoadInst *persistent_load = in RewritePersistentAlloc()
1116 new LoadInst(persistent_global->getType()->getPointerElementType(), in RewritePersistentAlloc()
1351 SmallVector<LoadInst *, 2> load_instructions; in HandleObjCClass()
1354 if (LoadInst *load_instruction = dyn_cast<LoadInst>(u)) in HandleObjCClass()
1363 for (LoadInst *load_instruction : load_instructions) { in HandleObjCClass()
1506 if (LoadInst *load = dyn_cast<LoadInst>(&inst)) in RemoveGuards()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/
H A DRenderScriptx86ABIFixups.cpp189 llvm::LoadInst *new_func_addr_load = in fixupX86StructRetCalls()
190 new llvm::LoadInst(new_func_ptr->getType()->getPointerElementType(), in fixupX86StructRetCalls()
198 llvm::LoadInst *lldb_save_result_address = new llvm::LoadInst( in fixupX86StructRetCalls()

1234567891011