Home
last modified time | relevance | path

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

123456

/external/llvm/lib/Transforms/Scalar/
DMergedLoadStoreMotion.cpp145 StoreInst *canSinkFromBlock(BasicBlock *BB, StoreInst *SI);
146 PHINode *getPHIOperand(BasicBlock *BB, StoreInst *S0, StoreInst *S1);
150 bool sinkStore(BasicBlock *BB, StoreInst *SinkCand, StoreInst *ElseInst);
415 StoreInst *MergedLoadStoreMotion::canSinkFromBlock(BasicBlock *BB1, in canSinkFromBlock()
416 StoreInst *Store0) { in canSinkFromBlock()
423 if (!isa<StoreInst>(Inst)) in canSinkFromBlock()
426 StoreInst *Store1 = cast<StoreInst>(Inst); in canSinkFromBlock()
444 PHINode *MergedLoadStoreMotion::getPHIOperand(BasicBlock *BB, StoreInst *S0, in getPHIOperand()
445 StoreInst *S1) { in getPHIOperand()
476 bool MergedLoadStoreMotion::sinkStore(BasicBlock *BB, StoreInst *S0, in sinkStore()
[all …]
DDeadStoreElimination.cpp157 if (isa<StoreInst>(I)) in hasMemoryWrite()
199 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) in getLocForWrite()
243 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in isRemovable()
276 if (isa<StoreInst>(I)) in isShortenable()
296 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in getStoredPointerOperand()
503 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in runOnBasicBlock()
DLowerAtomic.cpp107 static bool LowerStoreInst(StoreInst *SI) { in LowerStoreInst()
133 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in runOnBasicBlock()
DMemCpyOptimizer.cpp168 if (!isa<StoreInst>(TheStores[i])) in isProfitableToUseMemset()
217 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) in addInst()
223 void addStore(int64_t OffsetFromFirst, StoreInst *SI) { in addStore()
341 bool processStore(StoreInst *SI, BasicBlock::iterator &BBI);
388 if (!isa<StoreInst>(BI) && !isa<MemSetInst>(BI)) { in INITIALIZE_PASS_DEPENDENCY()
397 if (StoreInst *NextStore = dyn_cast<StoreInst>(BI)) { in INITIALIZE_PASS_DEPENDENCY()
493 bool MemCpyOpt::processStore(StoreInst *SI, BasicBlock::iterator &BBI) { in processStore()
1040 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in iterateOnFunction()
DScalarReplAggregates.cpp182 void RewriteStoreUserOfWholeAlloca(StoreInst *SI, AllocaInst *AI,
491 if (StoreInst *SI = dyn_cast<StoreInst>(UI)) { in CanConvertToScalar()
645 if (StoreInst *SI = dyn_cast<StoreInst>(User)) { in ConvertUsesToScalar()
734 StoreInst *NewStore = Builder.CreateStore(SrcVal, DstPtr); in ConvertUsesToScalar()
1090 return cast<StoreInst>(I)->getPointerOperand() == AI; in isInstInList()
1097 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) in updateDebugInfo()
1106 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in updateDebugInfo()
1256 if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in tryToMakeAllocaBePromotable()
1638 } else if (StoreInst *SI = dyn_cast<StoreInst>(User)) { in isSafeForScalarRepl()
1698 } else if (StoreInst *SI = dyn_cast<StoreInst>(UI)) { in isSafePHISelectUseForScalarRepl()
[all …]
DSROA.cpp759 void visitStoreInst(StoreInst &SI) { in visitStoreInst()
916 if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in hasUnsafePHIOrSelectUse()
1125 Ptr = cast<StoreInst>(I)->getPointerOperand(); in isInstInList()
1149 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) in updateDebugInfo()
1155 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { in updateDebugInfo()
1306 } else if (StoreInst *SI = dyn_cast<StoreInst>(U->getUser())) { in INITIALIZE_PASS_DEPENDENCY()
1827 } else if (auto *SI = dyn_cast<StoreInst>(I)) { in getAdjustedAlignment()
1983 } else if (StoreInst *SI = dyn_cast<StoreInst>(U->getUser())) { in isVectorPromotionViableForSlice()
2031 else if (auto *SI = dyn_cast<StoreInst>(S.getUse()->getUser())) in isVectorPromotionViable()
2150 } else if (StoreInst *SI = dyn_cast<StoreInst>(U->getUser())) { in isIntegerWideningViableForSlice()
[all …]
/external/llvm/lib/Transforms/Utils/
DPromoteMemoryToRegister.cpp73 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) { in isAllocaPromotable()
110 StoreInst *OnlyStore;
138 if (StoreInst *SI = dyn_cast<StoreInst>(User)) { in AnalyzeAlloca()
200 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1))); in isInterestingInstruction()
327 if (isa<LoadInst>(I) || isa<StoreInst>(I)) in removeLifetimeIntrinsicUsers()
356 StoreInst *OnlyStore = Info.OnlyStore; in rewriteSingleStoreAlloca()
459 typedef SmallVector<std::pair<unsigned, StoreInst *>, 64> StoresByIndexTy; in promoteSingleBlockAlloca()
463 if (StoreInst *SI = dyn_cast<StoreInst>(U)) in promoteSingleBlockAlloca()
483 static_cast<StoreInst *>(nullptr)), in promoteSingleBlockAlloca()
501 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/InstCombine/
DInstCombineLoadStoreAlloca.cpp383 static StoreInst *combineStoreToNewValue(InstCombiner &IC, StoreInst &SI, Value *V) { in combineStoreToNewValue()
389 StoreInst *NewStore = IC.Builder->CreateAlignedStore( in combineStoreToNewValue()
465 auto *SI = dyn_cast<StoreInst>(U); in combineLoadToOperationType()
473 auto *SI = cast<StoreInst>(*UI++); in combineLoadToOperationType()
722 new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst()
735 new StoreInst(UndefValue::get(LI.getType()), in visitLoadInst()
803 static bool combineStoreToValueType(InstCombiner &IC, StoreInst &SI) { in combineStoreToValueType()
823 static bool unpackStoreToAggregate(InstCombiner &IC, StoreInst &SI) { in unpackStoreToAggregate()
876 Instruction *InstCombiner::visitStoreInst(StoreInst &SI) { in visitStoreInst()
938 if (StoreInst *PrevSI = dyn_cast<StoreInst>(BBI)) { in visitStoreInst()
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp286 if (StoreInst *Store = dyn_cast<StoreInst>(I)) { in chooseInstructionsToInstrument()
301 Value *Addr = isa<StoreInst>(*I) in chooseInstructionsToInstrument()
302 ? cast<StoreInst>(I)->getPointerOperand() in chooseInstructionsToInstrument()
320 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in isAtomic()
348 else if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst)) in runOnFunction()
404 bool IsWrite = isa<StoreInst>(*I); in instrumentLoadOrStore()
406 ? cast<StoreInst>(I)->getPointerOperand() in instrumentLoadOrStore()
413 Value *StoredValue = cast<StoreInst>(I)->getValueOperand(); in instrumentLoadOrStore()
436 ? cast<StoreInst>(I)->getAlignment() in instrumentLoadOrStore()
516 } 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/IR/
DInstruction.cpp272 if (const StoreInst *SI = dyn_cast<StoreInst>(I1)) in haveSameSpecialState()
273 return SI->isVolatile() == cast<StoreInst>(I2)->isVolatile() && in haveSameSpecialState()
274 (SI->getAlignment() == cast<StoreInst>(I2)->getAlignment() || in haveSameSpecialState()
276 SI->getOrdering() == cast<StoreInst>(I2)->getOrdering() && in haveSameSpecialState()
277 SI->getSynchScope() == cast<StoreInst>(I2)->getSynchScope(); in haveSameSpecialState()
411 return !cast<StoreInst>(this)->isUnordered(); in mayReadFromMemory()
446 return cast<StoreInst>(this)->getOrdering() != NotAtomic; in isAtomic()
DInstructions.cpp1037 void StoreInst::AssertOK() { in AssertOK()
1048 StoreInst::StoreInst(Value *val, Value *addr, Instruction *InsertBefore) in StoreInst() function in StoreInst
1049 : StoreInst(val, addr, /*isVolatile=*/false, InsertBefore) {} in StoreInst()
1051 StoreInst::StoreInst(Value *val, Value *addr, BasicBlock *InsertAtEnd) in StoreInst() function in StoreInst
1052 : StoreInst(val, addr, /*isVolatile=*/false, InsertAtEnd) {} in StoreInst()
1054 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, in StoreInst() function in StoreInst
1056 : StoreInst(val, addr, isVolatile, /*Align=*/0, InsertBefore) {} in StoreInst()
1058 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, in StoreInst() function in StoreInst
1060 : StoreInst(val, addr, isVolatile, /*Align=*/0, InsertAtEnd) {} in StoreInst()
1062 StoreInst::StoreInst(Value *val, Value *addr, bool isVolatile, unsigned Align, in StoreInst() function in StoreInst
[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()
/external/llvm/lib/Analysis/
DLoads.cpp133 else if (StoreInst *SI = dyn_cast<StoreInst>(BBI)) in isSafeToLoadUnconditionally()
212 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()
DAliasSetTracker.cpp326 bool AliasSetTracker::add(StoreInst *SI) { in add()
374 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in add()
464 bool AliasSetTracker::remove(StoreInst *SI) { in remove()
501 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in remove()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp204 if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupPointerRootUsers()
293 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in CleanupConstantGlobalUsers()
370 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in isSafeSROAElementUse()
623 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) { in AllUsesOfValueWillTrapIfNull()
667 } else if (isa<StoreInst>(U)) { in AllUsesOfLoadedValueWillTrapIfNull()
684 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in OptimizeAwayTrappingUsesOfValue()
765 } else if (isa<StoreInst>(GlobalUser)) { in OptimizeAwayTrappingUsesOfLoads()
887 if (StoreInst *SI = dyn_cast<StoreInst>(GV->user_back())) { in OptimizeGlobalAddressOfMalloc()
889 new StoreInst(ConstantInt::getTrue(GV->getContext()), InitBool, false, 0, in OptimizeGlobalAddressOfMalloc()
937 cast<StoreInst>(InitBool->user_back())->eraseFromParent(); in OptimizeGlobalAddressOfMalloc()
[all …]
/external/llvm/include/llvm/Analysis/
DAliasAnalysis.h47 class StoreInst; variable
142 Location getLocation(const StoreInst *SI);
151 else if (auto *I = dyn_cast<StoreInst>(Inst)) in getLocation()
394 case Instruction::Store: return getModRefInfo((const StoreInst*)I, Loc); in getModRefInfo()
458 ModRefResult getModRefInfo(const StoreInst *S, const Location &Loc);
461 ModRefResult getModRefInfo(const StoreInst *S, const Value *P, uint64_t Size){ in getModRefInfo()
/external/llvm/lib/Target/NVPTX/
DNVPTXLowerAggrCopies.cpp154 if (StoreInst *store = dyn_cast<StoreInst>(use)) { in runOnFunction()
193 StoreInst *store = dyn_cast<StoreInst>(*load->user_begin()); in runOnFunction()
/external/llvm/unittests/Analysis/
DMixedTBAATest.cpp44 auto *Store1 = new StoreInst(Value, Addr, BB); in TEST_F()
45 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.cpp302 StoreInst *SI = cast<StoreInst>(UserInst); in InTreeUserNeedToExtract()
319 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in getLocation()
330 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in isSimple()
343 typedef SmallVector<StoreInst *, 8> StoreList;
972 if (StoreInst *SI = dyn_cast<StoreInst>(VL[0])) in buildTree_rec()
1419 if (StoreInst *SI = dyn_cast<StoreInst>(VL[0])) in getEntryCost()
1770 if (StoreInst *SI = dyn_cast<StoreInst>(VL[0])) in getGatherCost()
1780 if (StoreInst *SI = dyn_cast<StoreInst>(I)) in getPointerOperand()
1788 if (StoreInst *S = dyn_cast<StoreInst>(I)) in getAddressSpaceOperand()
2086 if (StoreInst *SI = dyn_cast<StoreInst>(VL[0])) in vectorizeTree()
[all …]
/external/llvm/lib/Analysis/IPA/
DGlobalsModRef.cpp260 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { in AnalyzeUsesOfPointer()
316 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) { in AnalyzeIndirectGlobalMemory()
449 } else if (StoreInst *SI = dyn_cast<StoreInst>(&*II)) { in AnalyzeCallGraph()
/external/llvm/lib/Target/PowerPC/
DPPCLoopPreIncPrep.cpp131 } else if (StoreInst *SMemI = dyn_cast<StoreInst>(MemI)) { in GetPointerOperand()
184 } else if (StoreInst *SMemI = dyn_cast<StoreInst>(J)) { in runOnLoop()

123456