Home
last modified time | relevance | path

Searched refs:StoreInst (Results 1 – 25 of 581) sorted by relevance

12345678910>>...24

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DMergedLoadStoreMotion.cpp118 StoreInst *canSinkFromBlock(BasicBlock *BB, StoreInst *SI);
119 PHINode *getPHIOperand(BasicBlock *BB, StoreInst *S0, StoreInst *S1);
122 bool canSinkStoresAndGEPs(StoreInst *S0, StoreInst *S1) const;
123 void sinkStoresAndGEPs(BasicBlock *BB, StoreInst *SinkCand,
124 StoreInst *ElseInst);
187 StoreInst *MergedLoadStoreMotion::canSinkFromBlock(BasicBlock *BB1, in canSinkFromBlock()
188 StoreInst *Store0) { in canSinkFromBlock()
192 auto *Store1 = dyn_cast<StoreInst>(&Inst); in canSinkFromBlock()
210 PHINode *MergedLoadStoreMotion::getPHIOperand(BasicBlock *BB, StoreInst *S0, in getPHIOperand()
211 StoreInst *S1) { in getPHIOperand()
[all …]
/external/llvm-project/llvm/lib/Transforms/Scalar/
DMergedLoadStoreMotion.cpp118 StoreInst *canSinkFromBlock(BasicBlock *BB, StoreInst *SI);
119 PHINode *getPHIOperand(BasicBlock *BB, StoreInst *S0, StoreInst *S1);
122 bool canSinkStoresAndGEPs(StoreInst *S0, StoreInst *S1) const;
123 void sinkStoresAndGEPs(BasicBlock *BB, StoreInst *SinkCand,
124 StoreInst *ElseInst);
187 StoreInst *MergedLoadStoreMotion::canSinkFromBlock(BasicBlock *BB1, in canSinkFromBlock()
188 StoreInst *Store0) { in canSinkFromBlock()
192 auto *Store1 = dyn_cast<StoreInst>(&Inst); in canSinkFromBlock()
210 PHINode *MergedLoadStoreMotion::getPHIOperand(BasicBlock *BB, StoreInst *S0, in getPHIOperand()
211 StoreInst *S1) { in getPHIOperand()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86AvoidStoreForwardingBlocks.cpp101 void breakBlockedCopies(MachineInstr *LoadInst, MachineInstr *StoreInst,
105 MachineInstr *StoreInst, int64_t StDispImm,
109 MachineInstr *StoreInst, unsigned NStoreOpcode,
385 int64_t LoadDisp, MachineInstr *StoreInst, in buildCopy() argument
390 MachineOperand &StoreBase = getBaseOperand(StoreInst); in buildCopy()
393 MachineMemOperand *SMMO = *StoreInst->memoperands_begin(); in buildCopy()
412 MachineInstr *StInst = StoreInst; in buildCopy()
414 std::prev(MachineBasicBlock::instr_iterator(StoreInst)), in buildCopy()
430 MachineOperand &StoreSrcVReg = StoreInst->getOperand(X86::AddrNumOperands); in buildCopy()
437 int64_t LdDispImm, MachineInstr *StoreInst, in buildCopies() argument
[all …]
/external/llvm-project/llvm/lib/Target/X86/
DX86AvoidStoreForwardingBlocks.cpp102 void breakBlockedCopies(MachineInstr *LoadInst, MachineInstr *StoreInst,
106 MachineInstr *StoreInst, int64_t StDispImm,
110 MachineInstr *StoreInst, unsigned NStoreOpcode,
386 int64_t LoadDisp, MachineInstr *StoreInst, in buildCopy() argument
391 MachineOperand &StoreBase = getBaseOperand(StoreInst); in buildCopy()
394 MachineMemOperand *SMMO = *StoreInst->memoperands_begin(); in buildCopy()
413 MachineInstr *StInst = StoreInst; in buildCopy()
414 auto PrevInstrIt = prev_nodbg(MachineBasicBlock::instr_iterator(StoreInst), in buildCopy()
430 MachineOperand &StoreSrcVReg = StoreInst->getOperand(X86::AddrNumOperands); in buildCopy()
437 int64_t LdDispImm, MachineInstr *StoreInst, in buildCopies() argument
[all …]
/external/llvm/lib/Transforms/Scalar/
DMergedLoadStoreMotion.cpp132 StoreInst *canSinkFromBlock(BasicBlock *BB, StoreInst *SI);
133 PHINode *getPHIOperand(BasicBlock *BB, StoreInst *S0, StoreInst *S1);
136 bool sinkStore(BasicBlock *BB, StoreInst *SinkCand, StoreInst *ElseInst);
378 StoreInst *MergedLoadStoreMotion::canSinkFromBlock(BasicBlock *BB1, in canSinkFromBlock()
379 StoreInst *Store0) { in canSinkFromBlock()
383 auto *Store1 = dyn_cast<StoreInst>(&Inst); in canSinkFromBlock()
401 PHINode *MergedLoadStoreMotion::getPHIOperand(BasicBlock *BB, StoreInst *S0, in getPHIOperand()
402 StoreInst *S1) { in getPHIOperand()
423 bool MergedLoadStoreMotion::sinkStore(BasicBlock *BB, StoreInst *S0, in sinkStore()
424 StoreInst *S1) { in sinkStore()
[all …]
/external/llvm/unittests/Transforms/Utils/
DMemorySSA.cpp83 StoreInst *StoreInst = B.CreateStore(B.getInt8(16), PointerArg); in TEST_F() local
97 MemoryDef *StoreAccess = cast<MemoryDef>(MSSA.getMemoryAccess(StoreInst)); in TEST_F()
124 StoreInst *StoreInst = B.CreateStore(B.getInt8(16), PointerArg); in TEST_F() local
134 MemoryDef *StoreAccess = cast<MemoryDef>(MSSA.getMemoryAccess(StoreInst)); in TEST_F()
167 StoreInst *StoreInst = B.CreateStore(B.getInt8(16), PointerArg); in TEST_F() local
180 MemoryDef *StoreAccess = cast<MemoryDef>(MSSA.getMemoryAccess(StoreInst)); in TEST_F()
228 StoreInst *S1 = B.CreateStore(ConstantInt::get(Int8, 0), Alloca); in TEST_F()
229 StoreInst *S2 = B.CreateStore(ConstantInt::get(Int8, 1), Alloca); in TEST_F()
230 StoreInst *S3 = B.CreateStore(ConstantInt::get(Int8, 2), Alloca); in TEST_F()
237 for (StoreInst *V : {S1, S2, S3}) { in TEST_F()
[all …]
/external/llvm-project/llvm/unittests/Analysis/
DMemorySSATest.cpp136 StoreInst *EntryStore = B.CreateStore(B.getInt8(16), PointerArg); in TEST_F()
160 StoreInst *LeftStore = B.CreateStore(B.getInt8(16), PointerArg); in TEST_F()
185 StoreInst *SecondEntryStore = B.CreateStore(B.getInt8(16), PointerArg); in TEST_F()
226 StoreInst *SI = B.CreateStore(B.getInt8(16), PointerArg); in TEST_F()
308 StoreInst *EntryStore = B.CreateStore(B.getInt8(16), PointerArg); in TEST_F()
311 StoreInst *SideStore = B.CreateStore(B.getInt8(16), PointerArg); in TEST_F()
344 StoreInst *EntryStore = B.CreateStore(B.getInt8(16), PointerArg); in TEST_F()
390 StoreInst *EntryStore = B.CreateStore(B.getInt8(16), PointerArg); in TEST_F()
434 StoreInst *EntryStore = B.CreateStore(B.getInt8(16), PointerArg); in TEST_F()
491 StoreInst *StoreInst = B.CreateStore(B.getInt8(16), PointerArg); in TEST_F() local
[all …]
/external/llvm/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp63 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) { in isAllocaPromotable()
100 StoreInst *OnlyStore;
128 if (StoreInst *SI = dyn_cast<StoreInst>(User)) { in AnalyzeAlloca()
190 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1))); in isInterestingInstruction()
311 if (isa<LoadInst>(I) || isa<StoreInst>(I)) in removeLifetimeIntrinsicUsers()
340 StoreInst *OnlyStore = Info.OnlyStore; in rewriteSingleStoreAlloca()
445 typedef SmallVector<std::pair<unsigned, StoreInst *>, 64> StoresByIndexTy; in promoteSingleBlockAlloca()
449 if (StoreInst *SI = dyn_cast<StoreInst>(U)) in promoteSingleBlockAlloca()
469 static_cast<StoreInst *>(nullptr)), in promoteSingleBlockAlloca()
492 StoreInst *SI = cast<StoreInst>(AI->user_back()); in promoteSingleBlockAlloca()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp76 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) { in isAllocaPromotable()
112 StoreInst *OnlyStore;
138 if (StoreInst *SI = dyn_cast<StoreInst>(User)) { in AnalyzeAlloca()
193 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1))); in isInterestingInstruction()
322 if (isa<LoadInst>(I) || isa<StoreInst>(I)) in removeLifetimeIntrinsicUsers()
350 StoreInst *OnlyStore = Info.OnlyStore; in rewriteSingleStoreAlloca()
455 using StoresByIndexTy = SmallVector<std::pair<unsigned, StoreInst *>, 64>; in promoteSingleBlockAlloca()
459 if (StoreInst *SI = dyn_cast<StoreInst>(U)) in promoteSingleBlockAlloca()
478 std::make_pair(LoadIdx, static_cast<StoreInst *>(nullptr)), in promoteSingleBlockAlloca()
511 StoreInst *SI = cast<StoreInst>(AI->user_back()); in promoteSingleBlockAlloca()
[all …]
/external/llvm-project/llvm/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp72 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) { in isAllocaPromotable()
109 StoreInst *OnlyStore;
135 if (StoreInst *SI = dyn_cast<StoreInst>(User)) { in AnalyzeAlloca()
190 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1))); in isInterestingInstruction()
320 if (isa<LoadInst>(I) || isa<StoreInst>(I)) in removeIntrinsicUsers()
361 StoreInst *OnlyStore = Info.OnlyStore; in rewriteSingleStoreAlloca()
470 using StoresByIndexTy = SmallVector<std::pair<unsigned, StoreInst *>, 64>; in promoteSingleBlockAlloca()
474 if (StoreInst *SI = dyn_cast<StoreInst>(U)) in promoteSingleBlockAlloca()
493 std::make_pair(LoadIdx, static_cast<StoreInst *>(nullptr)), in promoteSingleBlockAlloca()
526 StoreInst *SI = cast<StoreInst>(AI->user_back()); in promoteSingleBlockAlloca()
[all …]
/external/llvm-project/polly/include/polly/Support/
DScopHelper.h140 /* implicit */ MemAccInst(llvm::StoreInst &SI) : I(&SI) {} in MemAccInst()
141 /* implicit */ MemAccInst(llvm::StoreInst *SI) : I(SI) {} in MemAccInst()
148 return llvm::isa<llvm::LoadInst>(V) || llvm::isa<llvm::StoreInst>(V) || in isa()
152 return llvm::isa<llvm::LoadInst>(V) || llvm::isa<llvm::StoreInst>(V) || in isa()
193 MemAccInst &operator=(llvm::StoreInst &SI) {
197 MemAccInst &operator=(llvm::StoreInst *SI) {
318 bool isStore() const { return I && llvm::isa<llvm::StoreInst>(I); } in isStore()
327 llvm::StoreInst *asStore() const { return llvm::cast<llvm::StoreInst>(I); } in asStore()
/external/llvm/lib/Transforms/Vectorize/
DLoadStoreVectorizer.cpp81 unsigned getAlignment(StoreInst *SI) const { in getAlignment()
212 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in getPointerOperand()
220 if (StoreInst *S = dyn_cast<StoreInst>(I)) in getPointerAddressSpace()
436 if (isa<LoadInst>(I) || isa<StoreInst>(I)) { in getVectorizablePrefixEndIdx()
464 if (isa<StoreInst>(MemInstrValue) && isa<LoadInst>(ChainInstrValue) && in getVectorizablePrefixEndIdx()
469 if (isa<LoadInst>(MemInstrValue) && isa<StoreInst>(ChainInstrValue) && in getVectorizablePrefixEndIdx()
540 } else if (StoreInst *SI = dyn_cast<StoreInst>(&I)) { in collectInstructions()
665 StoreInst *S0 = cast<StoreInst>(Chain[0]); in vectorizeStoreChain()
670 StoreTy = cast<StoreInst>(V)->getValueOperand()->getType(); in vectorizeStoreChain()
779 StoreInst *Store = cast<StoreInst>(Chain[I]); in vectorizeStoreChain()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DGCRootLowering.cpp130 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || isa<StoreInst>(I) || in CouldBecomeSafePoint()
153 if (StoreInst *SI = dyn_cast<StoreInst>(IP)) in InsertRootInitializers()
163 StoreInst *SI = new StoreInst( in InsertRootInitializers()
208 Value *St = new StoreInst(CI->getArgOperand(0), in DoLowering()
/external/llvm-project/llvm/include/llvm/Transforms/Scalar/
DMemCpyOptimizer.h38 class StoreInst; variable
63 bool processStore(StoreInst *SI, BasicBlock::iterator &BBI);
76 bool moveUp(StoreInst *SI, Instruction *P, const LoadInst *LI);
/external/llvm/lib/CodeGen/
DGCRootLowering.cpp138 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || isa<StoreInst>(I) || in CouldBecomeSafePoint()
162 if (StoreInst *SI = dyn_cast<StoreInst>(IP)) in InsertRootInitializers()
172 StoreInst *SI = new StoreInst( in InsertRootInitializers()
217 new StoreInst(CI->getArgOperand(0), CI->getArgOperand(2), CI); in PerformDefaultLowering()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPURewriteOutArguments.cpp141 StoreInst *SI = dyn_cast<StoreInst>(U.getUser()); in checkArgumentUses()
179 U.getOperandNo() != StoreInst::getPointerOperandIndex()) in checkArgumentUses()
288 SmallVector<std::pair<ReturnInst *, StoreInst *>, 4> ReplaceableStores; in runOnFunction()
308 StoreInst *SI = nullptr; in runOnFunction()
310 SI = dyn_cast<StoreInst>(Q.getInst()); in runOnFunction()
324 for (std::pair<ReturnInst *, StoreInst *> Store : ReplaceableStores) { in runOnFunction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPURewriteOutArguments.cpp141 StoreInst *SI = dyn_cast<StoreInst>(U.getUser()); in checkArgumentUses()
179 U.getOperandNo() != StoreInst::getPointerOperandIndex()) in checkArgumentUses()
288 SmallVector<std::pair<ReturnInst *, StoreInst *>, 4> ReplaceableStores; in runOnFunction()
308 StoreInst *SI = nullptr; in runOnFunction()
310 SI = dyn_cast<StoreInst>(Q.getInst()); in runOnFunction()
324 for (std::pair<ReturnInst *, StoreInst *> Store : ReplaceableStores) { in runOnFunction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp378 if (StoreInst *Store = dyn_cast<StoreInst>(I)) { in chooseInstructionsToInstrument()
398 Value *Addr = isa<StoreInst>(*I) in chooseInstructionsToInstrument()
399 ? cast<StoreInst>(I)->getPointerOperand() in chooseInstructionsToInstrument()
418 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in isAtomic()
459 else if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst)) in sanitizeFunction()
522 bool IsWrite = isa<StoreInst>(*I); in instrumentLoadOrStore()
524 ? cast<StoreInst>(I)->getPointerOperand() in instrumentLoadOrStore()
538 Value *StoredValue = cast<StoreInst>(I)->getValueOperand(); in instrumentLoadOrStore()
561 ? cast<StoreInst>(I)->getAlignment() in instrumentLoadOrStore()
646 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in instrumentAtomic()
/external/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp330 if (StoreInst *Store = dyn_cast<StoreInst>(I)) { in chooseInstructionsToInstrument()
350 Value *Addr = isa<StoreInst>(*I) in chooseInstructionsToInstrument()
351 ? cast<StoreInst>(I)->getPointerOperand() in chooseInstructionsToInstrument()
369 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in isAtomic()
403 else if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst)) in runOnFunction()
461 bool IsWrite = isa<StoreInst>(*I); in instrumentLoadOrStore()
463 ? cast<StoreInst>(I)->getPointerOperand() in instrumentLoadOrStore()
470 Value *StoredValue = cast<StoreInst>(I)->getValueOperand(); in instrumentLoadOrStore()
493 ? cast<StoreInst>(I)->getAlignment() in instrumentLoadOrStore()
589 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in instrumentAtomic()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp482 static StoreInst *combineStoreToNewValue(InstCombiner &IC, StoreInst &SI, Value *V) { in combineStoreToNewValue()
491 StoreInst *NewStore = IC.Builder.CreateAlignedStore( in combineStoreToNewValue()
606 auto *SI = dyn_cast<StoreInst>(U); in combineLoadToOperationType()
614 auto *SI = cast<StoreInst>(*UI++); in combineLoadToOperationType()
934 static bool canSimplifyNullStoreOrGEP(StoreInst &SI) { in canSimplifyNullStoreOrGEP()
1014 StoreInst *SI = new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst()
1147 static bool combineStoreToValueType(InstCombiner &IC, StoreInst &SI) { in combineStoreToValueType()
1179 static bool unpackStoreToAggregate(InstCombiner &IC, StoreInst &SI) { in unpackStoreToAggregate()
1324 StoreInst &SI) { in removeBitcastsFromLoadStoreOnMinMax()
1351 auto *SI = dyn_cast<StoreInst>(U); in removeBitcastsFromLoadStoreOnMinMax()
[all …]
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp168 if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupPointerRootUsers()
256 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupConstantGlobalUsers()
333 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in isSafeSROAElementUse()
586 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) { in AllUsesOfValueWillTrapIfNull()
630 } else if (isa<StoreInst>(U)) { in AllUsesOfLoadedValueWillTrapIfNull()
647 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
728 } else if (isa<StoreInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads()
846 if (StoreInst *SI = dyn_cast<StoreInst>(GV->user_back())) { in OptimizeGlobalAddressOfMalloc()
848 new StoreInst(ConstantInt::getTrue(GV->getContext()), InitBool, false, 0, in OptimizeGlobalAddressOfMalloc()
896 cast<StoreInst>(InitBool->user_back())->eraseFromParent(); in OptimizeGlobalAddressOfMalloc()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoadStoreVectorizer.cpp140 unsigned getAlignment(StoreInst *SI) const { in getAlignment()
307 if (StoreInst *S = dyn_cast<StoreInst>(I)) in getPointerAddressSpace()
614 assert(isa<StoreInst>(I) && in getVectorizablePrefix()
620 if (isa<LoadInst>(I) || isa<StoreInst>(I)) { in getVectorizablePrefix()
676 if (isa<StoreInst>(MemInstr) && ChainLoad && in getVectorizablePrefix()
681 if (MemLoad && isa<StoreInst>(ChainInstr) && in getVectorizablePrefix()
797 } else if (StoreInst *SI = dyn_cast<StoreInst>(&I)) { in collectInstructions()
942 StoreInst *S0 = cast<StoreInst>(Chain[0]); in vectorizeStoreChain()
947 StoreTy = cast<StoreInst>(I)->getValueOperand()->getType(); in vectorizeStoreChain()
1051 StoreInst *Store = cast<StoreInst>(Chain[I]); in vectorizeStoreChain()
[all …]
/external/llvm/include/llvm/Analysis/
DMemoryLocation.h26 class StoreInst; variable
66 static MemoryLocation get(const StoreInst *SI);
73 else if (auto *I = dyn_cast<StoreInst>(Inst)) in get()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp484 static StoreInst *combineStoreToNewValue(InstCombinerImpl &IC, StoreInst &SI, in combineStoreToNewValue()
494 StoreInst *NewStore = IC.Builder.CreateAlignedStore( in combineStoreToNewValue()
905 static bool canSimplifyNullStoreOrGEP(StoreInst &SI) { in canSimplifyNullStoreOrGEP()
979 StoreInst *SI = new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst()
1108 static bool combineStoreToValueType(InstCombinerImpl &IC, StoreInst &SI) { in combineStoreToValueType()
1140 static bool unpackStoreToAggregate(InstCombinerImpl &IC, StoreInst &SI) { in unpackStoreToAggregate()
1281 StoreInst &SI) { in removeBitcastsFromLoadStoreOnMinMax()
1308 auto *SI = dyn_cast<StoreInst>(U); in removeBitcastsFromLoadStoreOnMinMax()
1320 auto *USI = cast<StoreInst>(UI); in removeBitcastsFromLoadStoreOnMinMax()
1329 Instruction *InstCombinerImpl::visitStoreInst(StoreInst &SI) { in visitStoreInst()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp394 static StoreInst *combineStoreToNewValue(InstCombiner &IC, StoreInst &SI, Value *V) { in combineStoreToNewValue()
400 StoreInst *NewStore = IC.Builder->CreateAlignedStore( in combineStoreToNewValue()
480 auto *SI = dyn_cast<StoreInst>(U); in combineLoadToOperationType()
488 auto *SI = cast<StoreInst>(*UI++); in combineLoadToOperationType()
856 new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst()
869 new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst()
995 static bool combineStoreToValueType(InstCombiner &IC, StoreInst &SI) { in combineStoreToValueType()
1020 static bool unpackStoreToAggregate(InstCombiner &IC, StoreInst &SI) { in unpackStoreToAggregate()
1148 Instruction *InstCombiner::visitStoreInst(StoreInst &SI) { in visitStoreInst()
1210 if (StoreInst *PrevSI = dyn_cast<StoreInst>(BBI)) { in visitStoreInst()
[all …]

12345678910>>...24