Home
last modified time | relevance | path

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

1234

/external/llvm/lib/VMCore/
DInstruction.cpp192 if (const LoadInst *LI = dyn_cast<LoadInst>(this)) in isIdenticalToWhenDefined()
193 return LI->isVolatile() == cast<LoadInst>(I)->isVolatile() && in isIdenticalToWhenDefined()
194 LI->getAlignment() == cast<LoadInst>(I)->getAlignment(); in isIdenticalToWhenDefined()
231 if (const LoadInst *LI = dyn_cast<LoadInst>(this)) in isSameOperationAs()
232 return LI->isVolatile() == cast<LoadInst>(I)->isVolatile() && in isSameOperationAs()
233 LI->getAlignment() == cast<LoadInst>(I)->getAlignment(); in isSameOperationAs()
306 return cast<LoadInst>(this)->isVolatile(); in mayWriteToMemory()
374 const LoadInst *LI = cast<LoadInst>(this); in isSafeToSpeculativelyExecute()
DInstructions.cpp787 void LoadInst::AssertOK() { in AssertOK()
792 LoadInst::LoadInst(Value *Ptr, const Twine &Name, Instruction *InsertBef) in LoadInst() function in LoadInst
801 LoadInst::LoadInst(Value *Ptr, const Twine &Name, BasicBlock *InsertAE) in LoadInst() function in LoadInst
810 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile, in LoadInst() function in LoadInst
820 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile, in LoadInst() function in LoadInst
830 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile, in LoadInst() function in LoadInst
840 LoadInst::LoadInst(Value *Ptr, const Twine &Name, bool isVolatile, in LoadInst() function in LoadInst
852 LoadInst::LoadInst(Value *Ptr, const char *Name, Instruction *InsertBef) in LoadInst() function in LoadInst
861 LoadInst::LoadInst(Value *Ptr, const char *Name, BasicBlock *InsertAE) in LoadInst() function in LoadInst
870 LoadInst::LoadInst(Value *Ptr, const char *Name, bool isVolatile, in LoadInst() function in LoadInst
[all …]
/external/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp350 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in isSafeToPromoteArgument()
378 SmallVector<LoadInst*, 16> Loads; in isSafeToPromoteArgument()
384 if (LoadInst *LI = dyn_cast<LoadInst>(U)) { in isSafeToPromoteArgument()
412 if (LoadInst *LI = dyn_cast<LoadInst>(*UI)) { in isSafeToPromoteArgument()
460 LoadInst *Load = Loads[i]; in isSafeToPromoteArgument()
512 std::map<IndicesVector, LoadInst*> OriginalLoads; in DoPromotion()
553 assert(isa<LoadInst>(User) || isa<GetElementPtrInst>(User)); in DoPromotion()
566 LoadInst *OrigLoad; in DoPromotion()
567 if (LoadInst *L = dyn_cast<LoadInst>(User)) in DoPromotion()
571 OrigLoad = cast<LoadInst>(User->use_back()); in DoPromotion()
[all …]
DGlobalOpt.cpp196 if (const LoadInst *LI = dyn_cast<LoadInst>(I)) { in AnalyzeGlobal()
215 } else if (isa<LoadInst>(StoredVal) && in AnalyzeGlobal()
216 cast<LoadInst>(StoredVal)->getOperand(0) == GV) { in AnalyzeGlobal()
313 if (LoadInst *LI = dyn_cast<LoadInst>(U)) { in CleanupConstantGlobalUsers()
388 if (isa<LoadInst>(I)) return true; in isSafeSROAElementUse()
645 if (isa<LoadInst>(U)) { in AllUsesOfValueWillTrapIfNull()
690 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) { in AllUsesOfLoadedValueWillTrapIfNull()
709 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
783 if (LoadInst *LI = dyn_cast<LoadInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads()
914 LoadInst *LI = cast<LoadInst>(GV->use_back()); in OptimizeGlobalAddressOfMalloc()
[all …]
/external/llvm/lib/CodeGen/
DStackProtector.cpp184 LoadInst *LI = new LoadInst(StackGuardVar, "StackGuard", false, InsPt); in InsertStackProtectors()
233 LoadInst *LI1 = new LoadInst(StackGuardVar, "", false, BB); in InsertStackProtectors()
234 LoadInst *LI2 = new LoadInst(AI, "", true, BB); in InsertStackProtectors()
/external/llvm/lib/Transforms/Scalar/
DLICM.cpp359 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in canSinkOrHoistInst()
443 if (isa<LoadInst>(I)) ++NumMovedLoads; in sink()
565 if (isa<LoadInst>(I)) ++NumMovedLoads; in hoist()
623 if (LoadInst *LI = dyn_cast<LoadInst>(I)) in isInstInList()
645 virtual void replaceLoadWithValue(LoadInst *LI, Value *V) const { in replaceLoadWithValue()
717 if (LoadInst *load = dyn_cast<LoadInst>(Use)) { in PromoteAliasSet()
718 assert(!cast<LoadInst>(Use)->isVolatile() && "AST broken"); in PromoteAliasSet()
774 LoadInst *PreheaderLoad = in PromoteAliasSet()
775 new LoadInst(SomePtr, SomePtr->getName()+".promoted", in PromoteAliasSet()
DScalarReplAggregates.cpp153 void RewriteLoadUserOfWholeAlloca(LoadInst *LI, AllocaInst *AI,
481 if (LoadInst *LI = dyn_cast<LoadInst>(User)) { in CanConvertToScalar()
600 if (LoadInst *LI = dyn_cast<LoadInst>(User)) { in ConvertUsesToScalar()
679 LoadInst *SrcVal = Builder.CreateLoad(SrcPtr, "srcval"); in ConvertUsesToScalar()
686 LoadInst *SrcVal = Builder.CreateLoad(NewAI, "srcval"); in ConvertUsesToScalar()
1133 if (LoadInst *LI = dyn_cast<LoadInst>(I)) in isInstInList()
1144 else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) in updateDebugInfo()
1168 } else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in updateDebugInfo()
1198 LoadInst *LI = dyn_cast<LoadInst>(*UI); in isSafeSelectToSpeculate()
1239 LoadInst *LI = dyn_cast<LoadInst>(*UI); in isSafePHIToSpeculate()
[all …]
DLowerAtomic.cpp42 LoadInst *Orig = Builder.CreateLoad(Ptr); in LowerAtomicIntrinsic()
89 LoadInst *Orig = Builder.CreateLoad(Ptr); in LowerAtomicIntrinsic()
99 LoadInst *Orig = Builder.CreateLoad(Ptr); in LowerAtomicIntrinsic()
DGVN.cpp540 bool processLoad(LoadInst *L);
542 bool processNonLocalLoad(LoadInst *L);
860 LoadInst *DepLI, const TargetData &TD){ in AnalyzeLoadFromClobberingLoad()
976 static Value *GetLoadValueForLoad(LoadInst *SrcVal, unsigned Offset, in GetLoadValueForLoad()
1005 LoadInst *NewLoad = Builder.CreateLoad(PtrVal); in GetLoadValueForLoad()
1126 static AvailableValueInBlock getLoad(BasicBlock *BB, LoadInst *LI, in getLoad()
1145 LoadInst *getCoercedLoadValue() const { in getCoercedLoadValue()
1147 return cast<LoadInst>(Val.getPointer()); in getCoercedLoadValue()
1172 LoadInst *Load = getCoercedLoadValue(); in MaterializeAdjustedValue()
1201 static Value *ConstructSSAForLoadSet(LoadInst *LI, in ConstructSSAForLoadSet()
[all …]
DSink.cpp156 if (LoadInst *L = dyn_cast<LoadInst>(Inst)) { in isSafeToMove()
DCorrelatedValuePropagation.cpp120 if (LoadInst *L = dyn_cast<LoadInst>(I)) in processMemAccess()
/external/llvm/lib/Transforms/Utils/
DSSAUpdater.cpp365 if (LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter()
392 SmallVector<LoadInst*, 32> LiveInLoads; in run()
412 LiveInLoads.push_back(cast<LoadInst>(User)); in run()
431 LiveInLoads.push_back(cast<LoadInst>(BlockUses[i])); in run()
443 if (LoadInst *L = dyn_cast<LoadInst>(II)) { in run()
478 LoadInst *ALoad = LiveInLoads[i]; in run()
513 replaceLoadWithValue(cast<LoadInst>(User), NewVal); in run()
DPromoteMemoryToRegister.cpp88 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) { in isAllocaPromotable()
156 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || in isInterestingInstruction()
327 LoadInst *LI = cast<LoadInst>(User); in AnalyzeAlloca()
363 if (isa<LoadInst>(I) || isa<StoreInst>(I)) in removeLifetimeIntrinsicUsers()
699 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in ComputeLiveInBlocks()
840 if (!isa<LoadInst>(UserInst)) { in RewriteSingleStoreAlloca()
844 LoadInst *LI = cast<LoadInst>(UserInst); in RewriteSingleStoreAlloca()
937 if (LoadInst *LI = dyn_cast<LoadInst>(*UI++)) { in PromoteSingleBlockAlloca()
954 LoadInst *LI = dyn_cast<LoadInst>(*UI++); in PromoteSingleBlockAlloca()
1064 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in RenamePass()
DDemoteRegToStack.cpp70 V = new LoadInst(Slot, I.getName()+".reload", VolatileLoads, in DemoteRegToStack()
78 Value *V = new LoadInst(Slot, I.getName()+".reload", VolatileLoads, U); in DemoteRegToStack()
139 Value *V = new LoadInst(Slot, P->getName()+".reload", P); in DemotePHIToStack()
DLowerInvoke.cpp248 Instruction* StackPtrLoad = new LoadInst(StackPtr, "stackptr.restore", true, in rewriteExpensiveInvoke()
463 Value *OldBuf = new LoadInst(JBListHead, "oldjmpbufptr", true, in insertExpensiveEHSupport()
494 Value *CatchLoad = new LoadInst(InvokeNum, "invoke.num", true, CatchBB); in insertExpensiveEHSupport()
544 BufPtr = new LoadInst(OldJmpBufPtr, "oldjmpbufptr", UnwindHandler); in insertExpensiveEHSupport()
547 BufPtr = new LoadInst(JBListHead, "ehlist", UnwindHandler); in insertExpensiveEHSupport()
590 Value *OldBuf = new LoadInst(OldJmpBufPtr, "oldjmpbufptr", true, R); in insertExpensiveEHSupport()
/external/llvm/lib/Analysis/IPA/
DGlobalsModRef.cpp252 if (LoadInst *LI = dyn_cast<LoadInst>(U)) { in AnalyzeUsesOfPointer()
312 if (LoadInst *LI = dyn_cast<LoadInst>(U)) { in AnalyzeIndirectGlobalMemory()
456 if (isa<LoadInst>(*II)) { in AnalyzeCallGraph()
458 if (cast<LoadInst>(*II).isVolatile()) in AnalyzeCallGraph()
520 if (const LoadInst *LI = dyn_cast<LoadInst>(UV1)) in alias()
524 if (const LoadInst *LI = dyn_cast<LoadInst>(UV2)) in alias()
/external/llvm/lib/Analysis/
DLoads.cpp141 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in isSafeToLoadUnconditionally()
191 if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) in FindAvailableLoadedValue()
DAliasSetTracker.cpp298 bool AliasSetTracker::add(LoadInst *LI) { in add()
347 if (LoadInst *LI = dyn_cast<LoadInst>(I)) in add()
429 bool AliasSetTracker::remove(LoadInst *LI) { in remove()
468 if (LoadInst *LI = dyn_cast<LoadInst>(I)) in remove()
DMemDepPrinter.cpp104 if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in runOnFunction()
DLoopDependenceAnalysis.cpp79 return isa<LoadInst>(I) || isa<StoreInst>(I); in IsLoadOrStoreInst()
83 if (LoadInst *i = dyn_cast<LoadInst>(I)) in GetPointerOperand()
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp248 static bool isSafeAndProfitableToSinkLoad(LoadInst *L) { in isSafeAndProfitableToSinkLoad()
262 if (isa<LoadInst>(U)) continue; in isSafeAndProfitableToSinkLoad()
289 LoadInst *FirstLI = cast<LoadInst>(PN.getIncomingValue(0)); in FoldPHIArgLoadIntoPHI()
315 LoadInst *LI = dyn_cast<LoadInst>(PN.getIncomingValue(i)); in FoldPHIArgLoadIntoPHI()
353 Value *NewInVal = cast<LoadInst>(PN.getIncomingValue(i))->getOperand(0); in FoldPHIArgLoadIntoPHI()
375 cast<LoadInst>(PN.getIncomingValue(i))->setVolatile(false); in FoldPHIArgLoadIntoPHI()
377 LoadInst *NewLI = new LoadInst(PhiVal, "", isVolatile, LoadAlignment); in FoldPHIArgLoadIntoPHI()
392 if (isa<LoadInst>(FirstInst)) in FoldPHIArgOpIntoPHI()
DInstCombineLoadStoreAlloca.cpp90 static Instruction *InstCombineLoadCast(InstCombiner &IC, LoadInst &LI, in InstCombineLoadCast()
133 LoadInst *NewLoad = in InstCombineLoadCast()
144 Instruction *InstCombiner::visitLoadInst(LoadInst &LI) { in visitLoadInst()
225 LoadInst *V1 = Builder->CreateLoad(SI->getOperand(1), in visitLoadInst()
227 LoadInst *V2 = Builder->CreateLoad(SI->getOperand(2), in visitLoadInst()
433 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in visitStoreInst()
/external/llvm/include/llvm/Analysis/
DAliasAnalysis.h45 class LoadInst; variable
136 Location getLocation(const LoadInst *LI);
342 case Instruction::Load: return getModRefInfo((const LoadInst*)I, Loc); in getModRefInfo()
393 ModRefResult getModRefInfo(const LoadInst *L, const Location &Loc);
396 ModRefResult getModRefInfo(const LoadInst *L, const Value *P, uint64_t Size) { in getModRefInfo()
/external/llvm/include/llvm/Transforms/Utils/
DLocal.h27 class LoadInst; variable
175 LoadInst *LI, DIBuilder &Builder);
/external/llvm/examples/BrainF/
DBrainF.cpp220 LoadInst *tape_0 = builder->CreateLoad(curhead, tapereg); in readloop()
272 LoadInst *tape_0 = builder->CreateLoad(curhead, tapereg); in readloop()
436 LoadInst *tape_0 = new LoadInst(head_0, tapereg, testbb); in readloop()

1234