/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86AvoidStoreForwardingBlocks.cpp | 106 void breakBlockedCopies(MachineInstr *LoadInst, MachineInstr *StoreInst, 109 void buildCopies(int Size, MachineInstr *LoadInst, int64_t LdDispImm, 113 void buildCopy(MachineInstr *LoadInst, unsigned NLoadOpcode, int64_t LoadDisp, 343 findPotentialBlockers(MachineInstr *LoadInst) { in findPotentialBlockers() argument 347 for (auto PBInst = std::next(MachineBasicBlock::reverse_iterator(LoadInst)), in findPotentialBlockers() 348 E = LoadInst->getParent()->rend(); in findPotentialBlockers() 363 MachineBasicBlock *MBB = LoadInst->getParent(); in findPotentialBlockers() 385 void X86AvoidSFBPass::buildCopy(MachineInstr *LoadInst, unsigned NLoadOpcode, in buildCopy() argument 390 MachineOperand &LoadBase = getBaseOperand(LoadInst); in buildCopy() 392 MachineBasicBlock *MBB = LoadInst->getParent(); in buildCopy() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | ARMParallelDSP.cpp | 75 if (auto *Ld = dyn_cast<LoadInst>(V)) in SetMemoryLocations() 121 bool AreSequentialLoads(LoadInst *Ld0, LoadInst *Ld1, MemInstList &VecMem); 123 Instruction *CreateSMLADCall(LoadInst *VecLd0, LoadInst *VecLd1, 306 bool ARMParallelDSP::AreSequentialLoads(LoadInst *Ld0, LoadInst *Ld1, in AreSequentialLoads() 321 return AreSequentialAccesses<LoadInst>(Ld0, Ld1, VecMem, *DL, *SE); in AreSequentialLoads() 363 auto *Ld0 = dyn_cast<LoadInst>(Mul0_LHS[x]); in CreateParallelMACPairs() 364 auto *Ld1 = dyn_cast<LoadInst>(Mul1_LHS[x]); in CreateParallelMACPairs() 365 auto *Ld2 = dyn_cast<LoadInst>(Mul0_RHS[x]); in CreateParallelMACPairs() 366 auto *Ld3 = dyn_cast<LoadInst>(Mul1_RHS[x]); in CreateParallelMACPairs() 394 auto *VecLd0 = cast<LoadInst>(Pair.first->VecLd[0]); in InsertParallelMACs() [all …]
|
/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/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 127 std::map<std::pair<Argument *, IndicesVector>, LoadInst *> OriginalLoads; in doPromotion() 168 if (LoadInst *L = dyn_cast<LoadInst>(UI)) in doPromotion() 184 LoadInst *OrigLoad; in doPromotion() 185 if (LoadInst *L = dyn_cast<LoadInst>(UI)) in doPromotion() 189 OrigLoad = cast<LoadInst>(UI->user_back()); in doPromotion() 265 Args.push_back(new LoadInst(Idx, Idx->getName() + ".val", Call)); in doPromotion() 276 LoadInst *OrigLoad = in doPromotion() 301 LoadInst *newLoad = new LoadInst(V, V->getName() + ".val", Call); in doPromotion() 423 if (LoadInst *LI = dyn_cast<LoadInst>(I->user_back())) { in doPromotion() 462 LoadInst *L = cast<LoadInst>(GEP->user_back()); in doPromotion() [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 …]
|
/external/llvm/lib/Transforms/Scalar/ |
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 | 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 | 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()
|
/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-7.0/llvm/unittests/Analysis/ |
D | MemorySSA.cpp | 96 LoadInst *LoadInst = B.CreateLoad(PointerArg); in TEST_F() local 104 LoadInst, MP, Merge, MemorySSA::Beginning)); in TEST_F() 142 LoadInst *FirstLoad = B.CreateLoad(PointerArg); in TEST_F() 166 LoadInst *SecondLoad = B.CreateLoad(PointerArg); in TEST_F() 232 LoadInst *LoadInst = B.CreateLoad(PointerArg); in TEST_F() local 240 LoadInst, nullptr, Merge, MemorySSA::Beginning)); in TEST_F() 266 LoadInst *LoadInst1 = B.CreateLoad(PointerArg); in TEST_F() 281 LoadInst *LoadInstClone = cast<LoadInst>(LoadInst1->clone()); in TEST_F() 494 LoadInst *LoadInst = B.CreateLoad(PointerArg); in TEST_F() local 501 MemoryUse *LoadAccess = cast<MemoryUse>(MSSA.getMemoryAccess(LoadInst)); in TEST_F() [all …]
|
D | PhiValuesTest.cpp | 40 Value *Val1 = new LoadInst(UndefValue::get(I32PtrTy), "val1", Entry); in TEST() 41 Value *Val2 = new LoadInst(UndefValue::get(I32PtrTy), "val2", Entry); in TEST() 42 Value *Val3 = new LoadInst(UndefValue::get(I32PtrTy), "val3", Entry); in TEST() 43 Value *Val4 = new LoadInst(UndefValue::get(I32PtrTy), "val4", Entry); in TEST() 112 Value *Val1 = new LoadInst(UndefValue::get(I32PtrTy), "val1", Entry); in TEST() 113 Value *Val2 = new LoadInst(UndefValue::get(I32PtrTy), "val2", Entry); in TEST() 114 Value *Val3 = new LoadInst(UndefValue::get(I32PtrTy), "val3", Entry); in TEST() 115 Value *Val4 = new LoadInst(UndefValue::get(I32PtrTy), "val4", Entry); in TEST()
|
/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-7.0/llvm/lib/Transforms/Utils/ |
D | PromoteMemoryToRegister.cpp | 72 if (const LoadInst *LI = dyn_cast<LoadInst>(U)) { in isAllocaPromotable() 148 LoadInst *LI = cast<LoadInst>(User); in AnalyzeAlloca() 198 return (isa<LoadInst>(I) && isa<AllocaInst>(I->getOperand(0))) || in isInterestingInstruction() 315 static void addAssumeNonNull(AssumptionCache *AC, LoadInst *LI) { in addAssumeNonNull() 333 if (isa<LoadInst>(I) || isa<StoreInst>(I)) in removeLifetimeIntrinsicUsers() 371 if (!isa<LoadInst>(UserInst)) { in rewriteSingleStoreAlloca() 375 LoadInst *LI = cast<LoadInst>(UserInst); in rewriteSingleStoreAlloca() 485 LoadInst *LI = dyn_cast<LoadInst>(*UI++); in promoteSingleBlockAlloca() 826 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in ComputeLiveInBlocks() 957 if (LoadInst *LI = dyn_cast<LoadInst>(I)) { in RenamePass()
|
D | SSAUpdater.cpp | 343 if (const LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter() 366 SmallVector<LoadInst *, 32> LiveInLoads; in run() 385 LiveInLoads.push_back(cast<LoadInst>(User)); in run() 404 LiveInLoads.push_back(cast<LoadInst>(I)); in run() 416 if (LoadInst *L = dyn_cast<LoadInst>(&I)) { in run() 450 for (LoadInst *ALoad : LiveInLoads) { in run() 483 replaceLoadWithValue(cast<LoadInst>(User), NewVal); in run()
|
/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 …]
|
/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/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-7.0/llvm/lib/Transforms/Scalar/ |
D | LowerAtomic.cpp | 30 LoadInst *Orig = Builder.CreateLoad(Ptr); in LowerAtomicCmpXchgInst() 48 LoadInst *Orig = Builder.CreateLoad(Ptr); in LowerAtomicRMWInst() 102 static bool LowerLoadInst(LoadInst *LI) { in LowerLoadInst() 122 else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) { in runOnBasicBlock()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUAnnotateUniformValues.cpp | 59 void visitLoadInst(LoadInst &I); 60 bool isClobberedInFunction(LoadInst * Load); 88 bool AMDGPUAnnotateUniformValues::isClobberedInFunction(LoadInst * Load) { in isClobberedInFunction() 131 void AMDGPUAnnotateUniformValues::visitLoadInst(LoadInst &I) { in visitLoadInst() 135 auto isGlobalLoad = [&](LoadInst &Load)->bool { in visitLoadInst()
|
/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()
|