Home
last modified time | relevance | path

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

123456

/external/llvm/lib/Transforms/Scalar/
DMergedLoadStoreMotion.cpp148 StoreInst *canSinkFromBlock(BasicBlock *BB, StoreInst *SI);
149 PHINode *getPHIOperand(BasicBlock *BB, StoreInst *S0, StoreInst *S1);
152 bool sinkStore(BasicBlock *BB, StoreInst *SinkCand, StoreInst *ElseInst);
410 StoreInst *MergedLoadStoreMotion::canSinkFromBlock(BasicBlock *BB1, in canSinkFromBlock()
411 StoreInst *Store0) { in canSinkFromBlock()
418 if (!isa<StoreInst>(Inst)) in canSinkFromBlock()
421 StoreInst *Store1 = cast<StoreInst>(Inst); in canSinkFromBlock()
439 PHINode *MergedLoadStoreMotion::getPHIOperand(BasicBlock *BB, StoreInst *S0, in getPHIOperand()
440 StoreInst *S1) { in getPHIOperand()
461 bool MergedLoadStoreMotion::sinkStore(BasicBlock *BB, StoreInst *S0, in sinkStore()
[all …]
DDeadStoreElimination.cpp163 if (isa<StoreInst>(I)) in hasMemoryWrite()
204 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) in getLocForWrite()
249 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in isRemovable()
282 if (isa<StoreInst>(I)) in isShortenable()
302 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in getStoredPointerOperand()
505 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in runOnBasicBlock()
DEarlyCSE.cpp412 return isa<StoreInst>(Inst); in isStore()
428 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in isUnordered()
442 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in isVolatile()
468 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in getPointerOperand()
493 else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) in getOrCreateResult()
DLowerAtomic.cpp107 static bool LowerStoreInst(StoreInst *SI) { in LowerStoreInst()
133 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in runOnBasicBlock()
DLoopIdiomRecognize.cpp110 typedef SmallVector<StoreInst *, 8> StoreList;
121 bool isLegalStore(StoreInst *SI);
122 bool processLoopStore(StoreInst *SI, const SCEV *BECount);
129 bool processLoopStoreOfLoopLoad(StoreInst *SI, unsigned StoreSize,
247 static unsigned getStoreSizeInBytes(StoreInst *SI, const DataLayout *DL) { in getStoreSizeInBytes()
300 bool LoopIdiomRecognize::isLegalStore(StoreInst *SI) { in isLegalStore()
331 StoreInst *SI = dyn_cast<StoreInst>(&I); in collectStores()
384 bool LoopIdiomRecognize::processLoopStore(StoreInst *SI, const SCEV *BECount) { in processLoopStore()
612 StoreInst *SI, unsigned StoreSize, const SCEVAddRecExpr *StoreEv, in processLoopStoreOfLoopLoad()
DMemCpyOptimizer.cpp169 if (!isa<StoreInst>(SI)) in isProfitableToUseMemset()
217 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) in addInst()
223 void addStore(int64_t OffsetFromFirst, StoreInst *SI) { in addStore()
335 bool processStore(StoreInst *SI, BasicBlock::iterator &BBI);
384 if (!isa<StoreInst>(BI) && !isa<MemSetInst>(BI)) { in INITIALIZE_PASS_DEPENDENCY()
393 if (StoreInst *NextStore = dyn_cast<StoreInst>(BI)) { in INITIALIZE_PASS_DEPENDENCY()
485 bool MemCpyOpt::processStore(StoreInst *SI, BasicBlock::iterator &BBI) { in processStore()
1153 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in iterateOnFunction()
DScalarReplAggregates.cpp183 void RewriteStoreUserOfWholeAlloca(StoreInst *SI, AllocaInst *AI,
492 if (StoreInst *SI = dyn_cast<StoreInst>(UI)) { in CanConvertToScalar()
646 if (StoreInst *SI = dyn_cast<StoreInst>(User)) { in ConvertUsesToScalar()
735 StoreInst *NewStore = Builder.CreateStore(SrcVal, DstPtr); in ConvertUsesToScalar()
1091 return cast<StoreInst>(I)->getPointerOperand() == AI; in isInstInList()
1098 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) in updateDebugInfo()
1107 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in updateDebugInfo()
1257 if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in tryToMakeAllocaBePromotable()
1639 } else if (StoreInst *SI = dyn_cast<StoreInst>(User)) { in isSafeForScalarRepl()
1699 } else if (StoreInst *SI = dyn_cast<StoreInst>(UI)) { in isSafePHISelectUseForScalarRepl()
[all …]
DLoopLoadElimination.cpp57 StoreInst *Store;
59 StoreToLoadForwardingCandidate(LoadInst *Load, StoreInst *Store) in StoreToLoadForwardingCandidate()
159 auto *Store = dyn_cast<StoreInst>(Source); in findStoreToLoadDependences()
293 StoreInst *FirstStore = in findPointersWrittenOnForwardingPath()
308 if (auto *S = dyn_cast<StoreInst>(I)) in findPointersWrittenOnForwardingPath()
/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 …]
DSSAUpdater.cpp333 SomeVal = cast<StoreInst>(Insts[0])->getOperand(0); in LoadAndStorePromoter()
369 if (StoreInst *SI = dyn_cast<StoreInst>(User)) { in run()
382 if (isa<StoreInst>(I)) { in run()
421 if (StoreInst *SI = dyn_cast<StoreInst>(&I)) { in run()
/external/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp287 if (StoreInst *Store = dyn_cast<StoreInst>(I)) { in chooseInstructionsToInstrument()
302 Value *Addr = isa<StoreInst>(*I) in chooseInstructionsToInstrument()
303 ? cast<StoreInst>(I)->getPointerOperand() in chooseInstructionsToInstrument()
321 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in isAtomic()
353 else if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst)) in runOnFunction()
409 bool IsWrite = isa<StoreInst>(*I); in instrumentLoadOrStore()
411 ? cast<StoreInst>(I)->getPointerOperand() in instrumentLoadOrStore()
418 Value *StoredValue = cast<StoreInst>(I)->getValueOperand(); in instrumentLoadOrStore()
441 ? cast<StoreInst>(I)->getAlignment() in instrumentLoadOrStore()
523 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in instrumentAtomic()
DBoundsChecking.cpp182 if (isa<LoadInst>(I) || isa<StoreInst>(I) || isa<AtomicCmpXchgInst>(I) || in runOnFunction()
195 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in runOnFunction()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp391 static StoreInst *combineStoreToNewValue(InstCombiner &IC, StoreInst &SI, Value *V) { in combineStoreToNewValue()
397 StoreInst *NewStore = IC.Builder->CreateAlignedStore( in combineStoreToNewValue()
476 auto *SI = dyn_cast<StoreInst>(U); in combineLoadToOperationType()
484 auto *SI = cast<StoreInst>(*UI++); in combineLoadToOperationType()
821 new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst()
834 new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst()
902 static bool combineStoreToValueType(InstCombiner &IC, StoreInst &SI) { in combineStoreToValueType()
922 static bool unpackStoreToAggregate(InstCombiner &IC, StoreInst &SI) { in unpackStoreToAggregate()
1011 Instruction *InstCombiner::visitStoreInst(StoreInst &SI) { in visitStoreInst()
1073 if (StoreInst *PrevSI = dyn_cast<StoreInst>(BBI)) { in visitStoreInst()
[all …]
/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()
218 new StoreInst(CI->getArgOperand(0), CI->getArgOperand(2), CI); in PerformDefaultLowering()
DInterleavedAccessPass.cpp87 bool lowerInterleavedStore(StoreInst *SI,
236 StoreInst *SI, SmallVector<Instruction *, 32> &DeadInsts) { in lowerInterleavedStore()
278 if (StoreInst *SI = dyn_cast<StoreInst>(&I)) in runOnFunction()
DAtomicExpandPass.cpp57 StoreInst *convertAtomicStoreToIntegerType(StoreInst *SI);
58 bool expandAtomicStore(StoreInst *SI);
96 auto SI = dyn_cast<StoreInst>(I); in runOnFunction()
293 StoreInst *AtomicExpand::convertAtomicStoreToIntegerType(StoreInst *SI) { in convertAtomicStoreToIntegerType()
305 StoreInst *NewSI = Builder.CreateStore(NewVal, NewAddr); in convertAtomicStoreToIntegerType()
314 bool AtomicExpand::expandAtomicStore(StoreInst *SI) { in expandAtomicStore()
/external/llvm/lib/IR/
DInstruction.cpp288 if (const StoreInst *SI = dyn_cast<StoreInst>(I1)) in haveSameSpecialState()
289 return SI->isVolatile() == cast<StoreInst>(I2)->isVolatile() && in haveSameSpecialState()
290 (SI->getAlignment() == cast<StoreInst>(I2)->getAlignment() || in haveSameSpecialState()
292 SI->getOrdering() == cast<StoreInst>(I2)->getOrdering() && in haveSameSpecialState()
293 SI->getSynchScope() == cast<StoreInst>(I2)->getSynchScope(); in haveSameSpecialState()
430 return !cast<StoreInst>(this)->isUnordered(); in mayReadFromMemory()
467 return cast<StoreInst>(this)->getOrdering() != NotAtomic; in isAtomic()
/external/llvm/lib/Analysis/
DLoads.cpp142 } else if (StoreInst *SI = dyn_cast<StoreInst>(BBI)) { in isSafeToLoadUnconditionally()
239 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in FindAvailableLoadedValue()
DDelinearization.cpp76 else if (StoreInst *Store = dyn_cast<StoreInst>(&Inst)) in getPointerOperand()
89 if (!isa<StoreInst>(Inst) && !isa<LoadInst>(Inst) && in print()
/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/lib/Transforms/IPO/
DGlobalOpt.cpp209 if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupPointerRootUsers()
297 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupConstantGlobalUsers()
374 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in isSafeSROAElementUse()
625 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) { in AllUsesOfValueWillTrapIfNull()
669 } else if (isa<StoreInst>(U)) { in AllUsesOfLoadedValueWillTrapIfNull()
686 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
767 } else if (isa<StoreInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads()
889 if (StoreInst *SI = dyn_cast<StoreInst>(GV->user_back())) { in OptimizeGlobalAddressOfMalloc()
891 new StoreInst(ConstantInt::getTrue(GV->getContext()), InitBool, false, 0, in OptimizeGlobalAddressOfMalloc()
939 cast<StoreInst>(InitBool->user_back())->eraseFromParent(); in OptimizeGlobalAddressOfMalloc()
[all …]
/external/llvm/unittests/Analysis/
DMixedTBAATest.cpp45 auto *Store1 = new StoreInst(Value, Addr, BB); in TEST_F()
46 auto *Store2 = new StoreInst(Value, Addr, BB); in TEST_F()
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCContract.cpp195 static StoreInst *findSafeStoreForStoreStrongContraction(LoadInst *Load, in findSafeStoreForStoreStrongContraction()
199 StoreInst *Store = nullptr; in findSafeStoreForStoreStrongContraction()
253 Store = dyn_cast<StoreInst>(Inst); in findSafeStoreForStoreStrongContraction()
281 findRetainForStoreStrongContraction(Value *New, StoreInst *Store, in findRetainForStoreStrongContraction()
346 StoreInst *Store = in tryToContractReleaseIntoStoreStrong()
470 new StoreInst(Null, CI->getArgOperand(0), CI); in tryToPeepholeInstruction()
/external/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp321 StoreInst *SI = cast<StoreInst>(UserInst); in InTreeUserNeedToExtract()
338 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in getLocation()
349 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in isSimple()
362 typedef SmallVector<StoreInst *, 8> StoreList;
1007 if (StoreInst *SI = dyn_cast<StoreInst>(VL[0])) in buildTree_rec()
1473 if (StoreInst *SI = dyn_cast<StoreInst>(VL[0])) in getEntryCost()
1827 if (StoreInst *SI = dyn_cast<StoreInst>(VL[0])) in getGatherCost()
1837 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in getPointerOperand()
1845 if (StoreInst *S = dyn_cast<StoreInst>(I)) in getAddressSpaceOperand()
2163 if (StoreInst *SI = dyn_cast<StoreInst>(VL[0])) in vectorizeTree()
[all …]
/external/llvm/lib/Target/NVPTX/
DNVPTXLowerAggrCopies.cpp259 if (StoreInst *SI = dyn_cast<StoreInst>(LI->user_back())) { in runOnFunction()
286 StoreInst *SI = dyn_cast<StoreInst>(*LI->user_begin()); in runOnFunction()

123456