/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | Instruction.cpp | 197 if (const LoadInst *LI = dyn_cast<LoadInst>(this)) in isIdenticalToWhenDefined() 198 return LI->isVolatile() == cast<LoadInst>(I)->isVolatile() && in isIdenticalToWhenDefined() 199 LI->getAlignment() == cast<LoadInst>(I)->getAlignment() && in isIdenticalToWhenDefined() 200 LI->getOrdering() == cast<LoadInst>(I)->getOrdering() && in isIdenticalToWhenDefined() 201 LI->getSynchScope() == cast<LoadInst>(I)->getSynchScope(); in isIdenticalToWhenDefined() 252 if (const LoadInst *LI = dyn_cast<LoadInst>(this)) in isSameOperationAs() 253 return LI->isVolatile() == cast<LoadInst>(I)->isVolatile() && in isSameOperationAs() 254 LI->getAlignment() == cast<LoadInst>(I)->getAlignment() && in isSameOperationAs() 255 LI->getOrdering() == cast<LoadInst>(I)->getOrdering() && in isSameOperationAs() 256 LI->getSynchScope() == cast<LoadInst>(I)->getSynchScope(); in isSameOperationAs() [all …]
|
/external/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 223 } else if (!isa<LoadInst>(V)) { in canPaddingBeAccessed() 500 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in isSafeToPromoteArgument() 528 SmallVector<LoadInst*, 16> Loads; in isSafeToPromoteArgument() 533 if (LoadInst *LI = dyn_cast<LoadInst>(UR)) { in isSafeToPromoteArgument() 561 if (LoadInst *LI = dyn_cast<LoadInst>(GEPU)) { in isSafeToPromoteArgument() 605 for (LoadInst *Load : Loads) { in isSafeToPromoteArgument() 658 std::map<std::pair<Argument*, IndicesVector>, LoadInst*> OriginalLoads; in DoPromotion() 703 if (LoadInst *L = dyn_cast<LoadInst>(UI)) in DoPromotion() 719 LoadInst *OrigLoad; in DoPromotion() 720 if (LoadInst *L = dyn_cast<LoadInst>(UI)) in DoPromotion() [all …]
|
D | GlobalOpt.cpp | 124 if (isa<LoadInst>(V) || isa<InvokeInst>(V) || isa<Argument>(V) || in IsSafeComputationToRemove() 249 if (LoadInst *LI = dyn_cast<LoadInst>(U)) { in CleanupConstantGlobalUsers() 330 if (isa<LoadInst>(I)) return true; in isSafeSROAElementUse() 584 if (isa<LoadInst>(U)) { in AllUsesOfValueWillTrapIfNull() 626 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) { in AllUsesOfLoadedValueWillTrapIfNull() 644 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in OptimizeAwayTrappingUsesOfValue() 719 if (LoadInst *LI = dyn_cast<LoadInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads() 854 LoadInst *LI = cast<LoadInst>(GV->user_back()); in OptimizeGlobalAddressOfMalloc() 865 Value *LV = new LoadInst(InitBool, InitBool->getName()+".val", false, 0, in OptimizeGlobalAddressOfMalloc() 924 if (isa<LoadInst>(Inst) || isa<CmpInst>(Inst)) { in ValueIsOnlyUsedLocallyOrStoredToOneGlobal() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 350 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() 413 if (LoadInst *LI = dyn_cast<LoadInst>(*UI)) { in isSafeToPromoteArgument() 462 LoadInst *Load = Loads[i]; in isSafeToPromoteArgument() 514 std::map<IndicesVector, LoadInst*> OriginalLoads; in DoPromotion() 555 assert(isa<LoadInst>(User) || isa<GetElementPtrInst>(User)); in DoPromotion() 568 LoadInst *OrigLoad; in DoPromotion() 569 if (LoadInst *L = dyn_cast<LoadInst>(User)) in DoPromotion() 573 OrigLoad = cast<LoadInst>(User->use_back()); in DoPromotion() [all …]
|
D | GlobalOpt.cpp | 196 if (const LoadInst *LI = dyn_cast<LoadInst>(I)) { in AnalyzeGlobal() 217 } else if (isa<LoadInst>(StoredVal) && in AnalyzeGlobal() 218 cast<LoadInst>(StoredVal)->getOperand(0) == GV) { in AnalyzeGlobal() 315 if (LoadInst *LI = dyn_cast<LoadInst>(U)) { in CleanupConstantGlobalUsers() 390 if (isa<LoadInst>(I)) return true; in isSafeSROAElementUse() 646 if (isa<LoadInst>(U)) { in AllUsesOfValueWillTrapIfNull() 691 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) { in AllUsesOfLoadedValueWillTrapIfNull() 710 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/Transforms/Scalar/ |
D | LoadCombine.cpp | 48 LoadPOPPair(LoadInst *L, PointerOffsetPair P, unsigned O) in LoadPOPPair() 50 LoadInst *Load; 82 PointerOffsetPair getPointerOffsetPair(LoadInst &); 95 PointerOffsetPair LoadCombine::getPointerOffsetPair(LoadInst &LI) { in getPointerOffsetPair() 141 LoadInst *BaseLoad = nullptr; in aggregateLoads() 215 LoadInst *NewLoad = new LoadInst( in combineLoads() 258 LoadInst *LI = dyn_cast<LoadInst>(&I); in runOnBasicBlock()
|
D | MergedLoadStoreMotion.cpp | 123 const Instruction &End, LoadInst *LI, 125 LoadInst *canHoistFromBlock(BasicBlock *BB, LoadInst *LI); 129 bool hoistLoad(BasicBlock *BB, LoadInst *HoistCand, LoadInst *ElseInst); 148 if (auto *LI = dyn_cast<LoadInst>(Inst)) in removeInstruction() 199 const Instruction &Start, const Instruction &End, LoadInst *LI, in isLoadHoistBarrierInRange() 217 LoadInst *MergedLoadStoreMotion::canHoistFromBlock(BasicBlock *BB1, in canHoistFromBlock() 218 LoadInst *Load0) { in canHoistFromBlock() 230 auto *Load1 = dyn_cast<LoadInst>(Inst); in canHoistFromBlock() 297 bool MergedLoadStoreMotion::hoistLoad(BasicBlock *BB, LoadInst *L0, in hoistLoad() 298 LoadInst *L1) { in hoistLoad() [all …]
|
D | LowerAtomic.cpp | 31 LoadInst *Orig = Builder.CreateLoad(Ptr); in LowerAtomicCmpXchgInst() 49 LoadInst *Orig = Builder.CreateLoad(Ptr); in LowerAtomicRMWInst() 103 static bool LowerLoadInst(LoadInst *LI) { in LowerLoadInst() 123 else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in runOnBasicBlock()
|
D | LoopLoadElimination.cpp | 57 LoadInst *Load; 60 StoreToLoadForwardingCandidate(LoadInst *Load, StoreInst *Store) in StoreToLoadForwardingCandidate() 123 static bool isLoadConditional(LoadInst *Load, Loop *L) { in isLoadConditional() 158 if (isa<LoadInst>(Source)) in findStoreToLoadDependences() 160 if (isa<LoadInst>(Destination)) in findStoreToLoadDependences() 176 auto *Load = dyn_cast<LoadInst>(Destination); in findStoreToLoadDependences() 226 typedef DenseMap<LoadInst *, const StoreToLoadForwardingCandidate *> in removeDependencesFromMultipleStores() 306 LoadInst *LastLoad = in findPointersWrittenOnForwardingPath() 400 new LoadInst(InitialPtr, "load_initial", PH->getTerminator()); in propagateStoredValueToLoadUsers()
|
/external/clang/lib/CodeGen/ |
D | CGBuilder.h | 70 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, 105 llvm::LoadInst *CreateAlignedLoad(llvm::Value *Addr, CharUnits Align, 127 llvm::LoadInst *CreateDefaultAlignedLoad(llvm::Value *Addr, 131 llvm::LoadInst *CreateDefaultAlignedLoad(llvm::Value *Addr, in CreateDefaultAlignedLoad() 135 llvm::LoadInst *CreateDefaultAlignedLoad(llvm::Value *Addr, bool IsVolatile, [all …]
|
/external/llvm/unittests/Transforms/Utils/ |
D | MemorySSA.cpp | 91 LoadInst *LoadInst = B.CreateLoad(PointerArg); in TEST_F() local 103 MSSA.createMemoryAccessInBB(LoadInst, MP, Merge, MemorySSA::Beginning)); in TEST_F() 128 LoadInst *LoadInst = B.CreateLoad(PointerArg); in TEST_F() local 133 MemoryUse *LoadAccess = cast<MemoryUse>(MSSA.getMemoryAccess(LoadInst)); in TEST_F() 171 LoadInst *LoadInst = B.CreateLoad(PointerArg); in TEST_F() local 179 MemoryUse *LoadAccess = cast<MemoryUse>(MSSA.getMemoryAccess(LoadInst)); in TEST_F() 185 EXPECT_EQ(DefiningAccess, Walker->getClobberingMemoryAccess(LoadInst)); in TEST_F() 195 MSSA.isLiveOnEntryDef(Walker->getClobberingMemoryAccess(LoadInst))); in TEST_F()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | StackProtector.cpp | 184 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/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | LowerAtomic.cpp | 29 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()
|
D | ScalarReplAggregates.cpp | 156 void RewriteLoadUserOfWholeAlloca(LoadInst *LI, AllocaInst *AI, 418 if (LoadInst *LI = dyn_cast<LoadInst>(User)) { in CanConvertToScalar() 546 if (LoadInst *LI = dyn_cast<LoadInst>(User)) { in ConvertUsesToScalar() 625 LoadInst *SrcVal = Builder.CreateLoad(SrcPtr, "srcval"); in ConvertUsesToScalar() 632 LoadInst *SrcVal = Builder.CreateLoad(NewAI, "srcval"); in ConvertUsesToScalar() 962 if (LoadInst *LI = dyn_cast<LoadInst>(I)) in isInstInList() 973 else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) in updateDebugInfo() 997 } else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in updateDebugInfo() 1027 LoadInst *LI = dyn_cast<LoadInst>(*UI); in isSafeSelectToSpeculate() 1068 LoadInst *LI = dyn_cast<LoadInst>(*UI); in isSafePHIToSpeculate() [all …]
|
D | LICM.cpp | 364 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in canSinkOrHoistInst() 448 if (isa<LoadInst>(I)) ++NumMovedLoads; in sink() 570 if (isa<LoadInst>(I)) ++NumMovedLoads; in hoist() 632 if (LoadInst *LI = dyn_cast<LoadInst>(I)) in isInstInList() 654 virtual void replaceLoadWithValue(LoadInst *LI, Value *V) const { in replaceLoadWithValue() 725 if (LoadInst *load = dyn_cast<LoadInst>(Use)) { in PromoteAliasSet() 790 LoadInst *PreheaderLoad = in PromoteAliasSet() 791 new LoadInst(SomePtr, SomePtr->getName()+".promoted", in PromoteAliasSet()
|
/external/llvm/lib/Transforms/Utils/ |
D | SSAUpdater.cpp | 330 if (const LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter() 355 SmallVector<LoadInst*, 32> LiveInLoads; in run() 374 LiveInLoads.push_back(cast<LoadInst>(User)); in run() 393 LiveInLoads.push_back(cast<LoadInst>(I)); in run() 405 if (LoadInst *L = dyn_cast<LoadInst>(&I)) { in run() 439 for (LoadInst *ALoad : LiveInLoads) { in run() 472 replaceLoadWithValue(cast<LoadInst>(User), NewVal); in run()
|
D | PromoteMemoryToRegister.cpp | 58 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) { in isAllocaPromotable() 134 LoadInst *LI = cast<LoadInst>(User); in AnalyzeAlloca() 189 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || in isInterestingInstruction() 311 if (isa<LoadInst>(I) || isa<StoreInst>(I)) in removeLifetimeIntrinsicUsers() 350 if (!isa<LoadInst>(UserInst)) { in rewriteSingleStoreAlloca() 354 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca() 459 LoadInst *LI = dyn_cast<LoadInst>(*UI++); in promoteSingleBlockAlloca() 810 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in ComputeLiveInBlocks() 930 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in RenamePass()
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXLowerKernelArgs.cpp | 161 LoadInst *LI = new LoadInst(ArgInParam, Arg->getName(), FirstInst); in handleByValParam() 204 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in runOnFunction()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoadStoreVectorizer.cpp | 73 unsigned getAlignment(LoadInst *LI) const { in getAlignment() 210 if (LoadInst *LI = dyn_cast<LoadInst>(I)) in getPointerOperand() 218 if (LoadInst *L = dyn_cast<LoadInst>(I)) in getPointerAddressSpace() 436 if (isa<LoadInst>(I) || isa<StoreInst>(I)) { in getVectorizablePrefixEndIdx() 457 if (isa<LoadInst>(MemInstrValue) && isa<LoadInst>(ChainInstrValue)) in getVectorizablePrefixEndIdx() 464 if (isa<StoreInst>(MemInstrValue) && isa<LoadInst>(ChainInstrValue) && in getVectorizablePrefixEndIdx() 469 if (isa<LoadInst>(MemInstrValue) && isa<StoreInst>(ChainInstrValue) && in getVectorizablePrefixEndIdx() 504 if (LoadInst *LI = dyn_cast<LoadInst>(&I)) { in collectInstructions() 652 if (isa<LoadInst>(*Operands.begin())) in vectorizeInstructions() 820 LoadInst *L0 = cast<LoadInst>(Chain[0]); in vectorizeLoadChain() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | SSAUpdater.cpp | 365 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()
|
D | PromoteMemoryToRegister.cpp | 88 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) { in isAllocaPromotable() 160 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || in isInterestingInstruction() 331 LoadInst *LI = cast<LoadInst>(User); in AnalyzeAlloca() 367 if (isa<LoadInst>(I) || isa<StoreInst>(I)) in removeLifetimeIntrinsicUsers() 703 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in ComputeLiveInBlocks() 844 if (!isa<LoadInst>(UserInst)) { in RewriteSingleStoreAlloca() 848 LoadInst *LI = cast<LoadInst>(UserInst); in RewriteSingleStoreAlloca() 941 if (LoadInst *LI = dyn_cast<LoadInst>(*UI++)) { in PromoteSingleBlockAlloca() 958 LoadInst *LI = dyn_cast<LoadInst>(*UI++); in PromoteSingleBlockAlloca() 1068 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in RenamePass()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/IPA/ |
D | GlobalsModRef.cpp | 252 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/include/llvm/Transforms/Scalar/ |
D | GVN.h | 188 bool processLoad(LoadInst *L); 189 bool processNonLocalLoad(LoadInst *L); 194 bool AnalyzeLoadAvailability(LoadInst *LI, MemDepResult DepInfo, 199 void AnalyzeLoadAvailability(LoadInst *LI, LoadDepVect &Deps, 202 bool PerformLoadPRE(LoadInst *LI, AvailValInBlkVect &ValuesPerBlock,
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | Loads.cpp | 141 if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) { in isSafeToLoadUnconditionally() 193 if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) in FindAvailableLoadedValue()
|
/external/llvm/include/llvm/Analysis/ |
D | ObjCARCAnalysisUtils.h | 176 if (const LoadInst *LI = dyn_cast<LoadInst>(Op)) in IsPotentialRetainableObjPtr() 209 if (const LoadInst *LI = dyn_cast<LoadInst>(V)) { in IsObjCIdentifiedObject()
|