Home
last modified time | relevance | path

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

12345

/external/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp348 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in isSafeToPromoteArgument()
376 SmallVector<LoadInst*, 16> Loads; in isSafeToPromoteArgument()
382 if (LoadInst *LI = dyn_cast<LoadInst>(U)) { in isSafeToPromoteArgument()
411 if (LoadInst *LI = dyn_cast<LoadInst>(*UI)) { in isSafeToPromoteArgument()
460 LoadInst *Load = Loads[i]; in isSafeToPromoteArgument()
512 std::map<IndicesVector, LoadInst*> OriginalLoads; in DoPromotion()
558 assert(isa<LoadInst>(User) || isa<GetElementPtrInst>(User)); in DoPromotion()
571 LoadInst *OrigLoad; in DoPromotion()
572 if (LoadInst *L = dyn_cast<LoadInst>(User)) in DoPromotion()
576 OrigLoad = cast<LoadInst>(User->use_back()); in DoPromotion()
[all …]
DGlobalOpt.cpp213 if (const LoadInst *LI = dyn_cast<LoadInst>(I)) { in AnalyzeGlobal()
245 } else if (isa<LoadInst>(StoredVal) && in AnalyzeGlobal()
246 cast<LoadInst>(StoredVal)->getOperand(0) == GV) { in AnalyzeGlobal()
359 if (isa<LoadInst>(V) || isa<InvokeInst>(V) || isa<Argument>(V) || in IsSafeComputationToRemove()
476 if (LoadInst *LI = dyn_cast<LoadInst>(U)) { in CleanupConstantGlobalUsers()
557 if (isa<LoadInst>(I)) return true; in isSafeSROAElementUse()
811 if (isa<LoadInst>(U)) { in AllUsesOfValueWillTrapIfNull()
856 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) { in AllUsesOfLoadedValueWillTrapIfNull()
875 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
950 if (LoadInst *LI = dyn_cast<LoadInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads()
[all …]
/external/llvm/lib/IR/
DInstruction.cpp284 if (const LoadInst *LI = dyn_cast<LoadInst>(this)) in isIdenticalToWhenDefined()
285 return LI->isVolatile() == cast<LoadInst>(I)->isVolatile() && in isIdenticalToWhenDefined()
286 LI->getAlignment() == cast<LoadInst>(I)->getAlignment() && in isIdenticalToWhenDefined()
287 LI->getOrdering() == cast<LoadInst>(I)->getOrdering() && in isIdenticalToWhenDefined()
288 LI->getSynchScope() == cast<LoadInst>(I)->getSynchScope(); in isIdenticalToWhenDefined()
355 if (const LoadInst *LI = dyn_cast<LoadInst>(this)) in isSameOperationAs()
356 return LI->isVolatile() == cast<LoadInst>(I)->isVolatile() && in isSameOperationAs()
357 (LI->getAlignment() == cast<LoadInst>(I)->getAlignment() || in isSameOperationAs()
359 LI->getOrdering() == cast<LoadInst>(I)->getOrdering() && in isSameOperationAs()
360 LI->getSynchScope() == cast<LoadInst>(I)->getSynchScope(); in isSameOperationAs()
[all …]
/external/llvm/lib/Transforms/Scalar/
DLowerAtomic.cpp29 LoadInst *Orig = Builder.CreateLoad(Ptr); in LowerAtomicCmpXchgInst()
44 LoadInst *Orig = Builder.CreateLoad(Ptr); in LowerAtomicRMWInst()
98 static bool LowerLoadInst(LoadInst *LI) { in LowerLoadInst()
124 else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in runOnBasicBlock()
DScalarReplAggregates.cpp182 void RewriteLoadUserOfWholeAlloca(LoadInst *LI, AllocaInst *AI,
472 if (LoadInst *LI = dyn_cast<LoadInst>(User)) { in CanConvertToScalar()
627 if (LoadInst *LI = dyn_cast<LoadInst>(User)) { in ConvertUsesToScalar()
710 LoadInst *SrcVal = Builder.CreateLoad(SrcPtr, "srcval"); in ConvertUsesToScalar()
717 LoadInst *SrcVal = Builder.CreateLoad(NewAI, "srcval"); in ConvertUsesToScalar()
1083 if (LoadInst *LI = dyn_cast<LoadInst>(I)) in isInstInList()
1094 else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) in updateDebugInfo()
1110 } else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in updateDebugInfo()
1143 LoadInst *LI = dyn_cast<LoadInst>(*UI); in isSafeSelectToSpeculate()
1184 LoadInst *LI = dyn_cast<LoadInst>(*UI); in isSafePHIToSpeculate()
[all …]
DLICM.cpp395 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in canSinkOrHoistInst()
485 if (isa<LoadInst>(I)) ++NumMovedLoads; in sink()
607 if (isa<LoadInst>(I)) ++NumMovedLoads; in hoist()
684 if (LoadInst *LI = dyn_cast<LoadInst>(I)) in isInstInList()
707 virtual void replaceLoadWithValue(LoadInst *LI, Value *V) const { in replaceLoadWithValue()
781 if (LoadInst *load = dyn_cast<LoadInst>(Use)) { in PromoteAliasSet()
860 LoadInst *PreheaderLoad = in PromoteAliasSet()
861 new LoadInst(SomePtr, SomePtr->getName()+".promoted", in PromoteAliasSet()
DGVN.cpp604 bool processLoad(LoadInst *L);
606 bool processNonLocalLoad(LoadInst *L);
934 LoadInst *DepLI, const DataLayout &TD){ in AnalyzeLoadFromClobberingLoad()
1049 static Value *GetLoadValueForLoad(LoadInst *SrcVal, unsigned Offset, in GetLoadValueForLoad()
1078 LoadInst *NewLoad = Builder.CreateLoad(PtrVal); in GetLoadValueForLoad()
1199 static AvailableValueInBlock getLoad(BasicBlock *BB, LoadInst *LI, in getLoad()
1218 LoadInst *getCoercedLoadValue() const { in getCoercedLoadValue()
1220 return cast<LoadInst>(Val.getPointer()); in getCoercedLoadValue()
1245 LoadInst *Load = getCoercedLoadValue(); in MaterializeAdjustedValue()
1274 static Value *ConstructSSAForLoadSet(LoadInst *LI, in ConstructSSAForLoadSet()
[all …]
DSROA.cpp510 void visitLoadInst(LoadInst &LI) { in visitLoadInst()
678 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in hasUnsafePHIOrSelectUse()
849 void visitLoadInst(LoadInst &LI) { in visitLoadInst()
1121 if (LoadInst *LI = dyn_cast<LoadInst>(U->getUser())) in getCommonType()
1245 if (LoadInst *LI = dyn_cast<LoadInst>(I)) in isInstInList()
1256 else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) in updateDebugInfo()
1272 } else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in updateDebugInfo()
1429 bool isSafePHIToSpeculate(PHINode &PN, SmallVectorImpl<LoadInst *> &Loads) { in isSafePHIToSpeculate()
1438 LoadInst *LI = dyn_cast<LoadInst>(*UI); in isSafePHIToSpeculate()
1490 SmallVector<LoadInst *, 4> Loads; in visitPHINode()
[all …]
/external/llvm/lib/CodeGen/
DStackProtector.cpp294 LoadInst *LI = new LoadInst(StackGuardVar, "StackGuard", false, InsPt); in InsertStackProtectors()
343 LoadInst *LI1 = new LoadInst(StackGuardVar, "", false, BB); in InsertStackProtectors()
344 LoadInst *LI2 = new LoadInst(AI, "", true, BB); in InsertStackProtectors()
/external/llvm/lib/Transforms/Utils/
DSSAUpdater.cpp368 if (LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter()
395 SmallVector<LoadInst*, 32> LiveInLoads; in run()
415 LiveInLoads.push_back(cast<LoadInst>(User)); in run()
434 LiveInLoads.push_back(cast<LoadInst>(BlockUses[i])); in run()
446 if (LoadInst *L = dyn_cast<LoadInst>(II)) { in run()
481 LoadInst *ALoad = LiveInLoads[i]; in run()
516 replaceLoadWithValue(cast<LoadInst>(User), NewVal); in run()
DPromoteMemoryToRegister.cpp90 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) { in isAllocaPromotable()
162 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || in isInterestingInstruction()
337 LoadInst *LI = cast<LoadInst>(User); in AnalyzeAlloca()
373 if (isa<LoadInst>(I) || isa<StoreInst>(I)) in removeLifetimeIntrinsicUsers()
714 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in ComputeLiveInBlocks()
855 if (!isa<LoadInst>(UserInst)) { in RewriteSingleStoreAlloca()
859 LoadInst *LI = cast<LoadInst>(UserInst); in RewriteSingleStoreAlloca()
952 if (LoadInst *LI = dyn_cast<LoadInst>(*UI++)) { in PromoteSingleBlockAlloca()
969 LoadInst *LI = dyn_cast<LoadInst>(*UI++); in PromoteSingleBlockAlloca()
1079 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in RenamePass()
DDemoteRegToStack.cpp60 V = new LoadInst(Slot, I.getName()+".reload", VolatileLoads, in DemoteRegToStack()
68 Value *V = new LoadInst(Slot, I.getName()+".reload", VolatileLoads, U); in DemoteRegToStack()
142 Value *V = new LoadInst(Slot, P->getName()+".reload", InsertPt); in DemotePHIToStack()
DLowerInvoke.cpp234 new LoadInst(StackPtr, "stackptr.restore", true, in rewriteExpensiveInvoke()
444 Value *OldBuf = new LoadInst(JBListHead, "oldjmpbufptr", true, in insertExpensiveEHSupport()
476 Value *CatchLoad = new LoadInst(InvokeNum, "invoke.num", true, CatchBB); in insertExpensiveEHSupport()
525 BufPtr = new LoadInst(OldJmpBufPtr, "oldjmpbufptr", UnwindHandler); in insertExpensiveEHSupport()
528 BufPtr = new LoadInst(JBListHead, "ehlist", UnwindHandler); in insertExpensiveEHSupport()
569 Value *OldBuf = new LoadInst(OldJmpBufPtr, "oldjmpbufptr", true, R); in insertExpensiveEHSupport()
/external/llvm/lib/Analysis/
DLoads.cpp113 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in isSafeToLoadUnconditionally()
170 if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) in FindAvailableLoadedValue()
/external/llvm/lib/Analysis/IPA/
DGlobalsModRef.cpp253 if (LoadInst *LI = dyn_cast<LoadInst>(U)) { in AnalyzeUsesOfPointer()
313 if (LoadInst *LI = dyn_cast<LoadInst>(U)) { in AnalyzeIndirectGlobalMemory()
450 if (LoadInst *LI = dyn_cast<LoadInst>(&*II)) { in AnalyzeCallGraph()
518 if (const LoadInst *LI = dyn_cast<LoadInst>(UV1)) in alias()
522 if (const LoadInst *LI = dyn_cast<LoadInst>(UV2)) in alias()
/external/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp241 } else if (LoadInst *L = dyn_cast<LoadInst>(Addr)) { in addrPointsToConstantData()
273 LoadInst *Load = cast<LoadInst>(I); in chooseInstructionsToInstrument()
291 if (LoadInst *LI = dyn_cast<LoadInst>(I)) in isAtomic()
323 else if (isa<LoadInst>(BI) || isa<StoreInst>(BI)) in runOnFunction()
372 : cast<LoadInst>(I)->getPointerOperand(); in instrumentLoadOrStore()
436 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in instrumentAtomic()
DBoundsChecking.cpp184 if (isa<LoadInst>(I) || isa<StoreInst>(I) || isa<AtomicCmpXchgInst>(I) || in runOnFunction()
195 if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in runOnFunction()
/external/llvm/lib/Transforms/ObjCARC/
DProvenanceAnalysis.cpp134 if (isa<LoadInst>(B)) in relatedCheck()
138 if (isa<LoadInst>(A)) in relatedCheck()
145 if (isa<LoadInst>(A)) in relatedCheck()
DObjCARC.h330 if (const LoadInst *LI = dyn_cast<LoadInst>(Op)) in IsPotentialRetainableObjPtr()
363 if (const LoadInst *LI = dyn_cast<LoadInst>(V)) { in IsObjCIdentifiedObject()
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp247 static bool isSafeAndProfitableToSinkLoad(LoadInst *L) { in isSafeAndProfitableToSinkLoad()
261 if (isa<LoadInst>(U)) continue; in isSafeAndProfitableToSinkLoad()
288 LoadInst *FirstLI = cast<LoadInst>(PN.getIncomingValue(0)); in FoldPHIArgLoadIntoPHI()
319 LoadInst *LI = dyn_cast<LoadInst>(PN.getIncomingValue(i)); in FoldPHIArgLoadIntoPHI()
357 Value *NewInVal = cast<LoadInst>(PN.getIncomingValue(i))->getOperand(0); in FoldPHIArgLoadIntoPHI()
379 cast<LoadInst>(PN.getIncomingValue(i))->setVolatile(false); in FoldPHIArgLoadIntoPHI()
381 LoadInst *NewLI = new LoadInst(PhiVal, "", isVolatile, LoadAlignment); in FoldPHIArgLoadIntoPHI()
396 if (isa<LoadInst>(FirstInst)) in FoldPHIArgOpIntoPHI()
DInstCombineLoadStoreAlloca.cpp57 if (LoadInst *LI = dyn_cast<LoadInst>(U)) { in isOnlyCopiedFromConstantGlobal()
282 static Instruction *InstCombineLoadCast(InstCombiner &IC, LoadInst &LI, in InstCombineLoadCast()
325 LoadInst *NewLoad = in InstCombineLoadCast()
337 Instruction *InstCombiner::visitLoadInst(LoadInst &LI) { in visitLoadInst()
419 LoadInst *V1 = Builder->CreateLoad(SI->getOperand(1), in visitLoadInst()
421 LoadInst *V2 = Builder->CreateLoad(SI->getOperand(2), in visitLoadInst()
628 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in visitStoreInst()
/external/llvm/lib/Target/NVPTX/
DNVPTXLowerAggrCopies.cpp109 SmallVector<LoadInst *, 4> aggrLoads; in runOnFunction()
124 if (LoadInst * load = dyn_cast<LoadInst>(II)) { in runOnFunction()
168 LoadInst *load = aggrLoads[i]; in runOnFunction()
/external/llvm/include/llvm/Transforms/Utils/
DSSAUpdater.h23 class LoadInst; variable
152 virtual void replaceLoadWithValue(LoadInst *LI, Value *V) const { in replaceLoadWithValue()
/external/llvm/include/llvm/Analysis/
DAliasAnalysis.h45 class LoadInst; variable
144 Location getLocation(const LoadInst *LI);
357 case Instruction::Load: return getModRefInfo((const LoadInst*)I, Loc); in getModRefInfo()
413 ModRefResult getModRefInfo(const LoadInst *L, const Location &Loc);
416 ModRefResult getModRefInfo(const LoadInst *L, const Value *P, uint64_t Size) { in getModRefInfo()
/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()

12345