|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
include/llvm/Analysis/AliasSetTracker.h 44 class StoreInst;
include/llvm/Analysis/MemoryLocation.h 26 class StoreInst;
include/llvm/Analysis/TargetTransformInfo.h 51 class StoreInst;
include/llvm/IR/Instruction.def 173 HANDLE_MEMORY_INST(33, Store , StoreInst )
include/llvm/Transforms/Scalar/MemCpyOptimizer.h 35 class StoreInst;
include/llvm/Transforms/Utils/Local.h 55 class StoreInst;
include/llvm/Transforms/Utils/VNCoercion.h 27 class StoreInst;
include/llvm/Transforms/Vectorize/SLPVectorizer.h 44 class StoreInst;
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h 80 class StoreInst;
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.h 36 class StoreInst;
References
include/llvm/ADT/ArrayRef.h 108 const ArrayRef<U *> &A,
110 std::is_convertible<U *const *, T const *>::value>::type * = nullptr)
118 const SmallVectorTemplateCommon<U *, DummyT> &Vec,
120 std::is_convertible<U *const *, T const *>::value>::type * = nullptr)
include/llvm/ADT/DenseMapInfo.h 39 static inline T* getEmptyKey() {
41 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
45 static inline T* getTombstoneKey() {
47 Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
51 static unsigned getHashValue(const T *PtrVal) {
56 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
56 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
include/llvm/Analysis/AliasAnalysis.h 544 ModRefInfo getModRefInfo(const StoreInst *S, const MemoryLocation &Loc);
547 ModRefInfo getModRefInfo(const StoreInst *S, const Value *P,
707 ModRefInfo getModRefInfo(const StoreInst *S, const MemoryLocation &Loc,
include/llvm/Analysis/AliasSetTracker.h 379 void add(StoreInst *SI);
include/llvm/Analysis/LoopAccessAnalysis.h 184 void addAccess(StoreInst *SI) {
include/llvm/Analysis/MemoryLocation.h 200 static MemoryLocation get(const StoreInst *SI);
212 return get(cast<StoreInst>(Inst));
include/llvm/Analysis/PtrUseVisitor.h 250 void visitStoreInst(StoreInst &SI) {
include/llvm/Analysis/TargetTransformInfo.h 1092 bool isLegalToVectorizeStore(StoreInst *SI) const;
1359 virtual bool isLegalToVectorizeStore(StoreInst *SI) const = 0;
1813 bool isLegalToVectorizeStore(StoreInst *SI) const override {
include/llvm/Analysis/TargetTransformInfoImpl.h 564 bool isLegalToVectorizeStore(StoreInst *SI) const { return true; }
include/llvm/CodeGen/TargetLowering.h 1829 virtual bool shouldExpandAtomicStoreInIR(StoreInst *SI) const {
2484 virtual bool lowerInterleavedStore(StoreInst *SI, ShuffleVectorInst *SVI,
3763 virtual bool lowerAtomicStoreAsStoreSDNode(const StoreInst &SI) const {
include/llvm/IR/IRBuilder.h 845 InstTy *Insert(InstTy *I, const Twine &Name = "") const {
845 InstTy *Insert(InstTy *I, const Twine &Name = "") const {
1620 StoreInst *CreateStore(Value *Val, Value *Ptr, bool isVolatile = false) {
1621 return Insert(new StoreInst(Val, Ptr, isVolatile));
1664 StoreInst *CreateAlignedStore(Value *Val, Value *Ptr, unsigned Align,
1666 StoreInst *SI = CreateStore(Val, Ptr, isVolatile);
include/llvm/IR/InstVisitor.h 172 RetTy visitStoreInst(StoreInst &I) { DELEGATE(Instruction);}
include/llvm/IR/Instructions.h 332 StoreInst *cloneImpl() const;
450 struct OperandTraits<StoreInst> : public FixedNumOperandTraits<StoreInst, 2> {
5261 if (auto *Store = dyn_cast<StoreInst>(V))
5289 return MaybeAlign(cast<StoreInst>(I)->getAlignment());
5299 return cast<StoreInst>(I)->getPointerAddressSpace();
include/llvm/IR/OperandTraits.h 31 static Use *op_begin(SubClass* U) {
33 !std::is_polymorphic<SubClass>::value,
37 static Use *op_end(SubClass* U) {
include/llvm/IR/User.h 127 template <int Idx, typename U> static Use &OpFrom(const U *that) {
129 ? OperandTraits<U>::op_end(const_cast<U*>(that))[Idx]
130 : OperandTraits<U>::op_begin(const_cast<U*>(that))[Idx];
include/llvm/Support/Casting.h 58 return To::classof(&Val);
66 static inline bool doit(const From &) { return true; }
77 return isa_impl<To, From>::doit(Val);
92 return isa_impl<To, From>::doit(*Val);
104 static inline bool doit(const From *Val) {
106 return isa_impl<To, From>::doit(*Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
165 using ret_type = To &; // Normal case, return Ty&
168 using ret_type = const To &; // Normal case, return Ty&
172 using ret_type = To *; // Pointer arg case, return Ty*
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
218 static typename cast_retty<To, From>::ret_type doit(From &Val) {
219 return cast_convert_val<To, SimpleFrom,
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
248 typename cast_retty<X, const Y>::ret_type>::type
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
258 return cast_convert_val<X, Y,
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
265 return cast_convert_val<X, Y*,
266 typename simplify_type<Y*>::SimpleType>::doit(Val);
331 typename cast_retty<X, const Y>::ret_type>::type
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
338 return isa<X>(Val) ? cast<X>(Val) : nullptr;
338 return isa<X>(Val) ? cast<X>(Val) : nullptr;
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
360 typename cast_retty<X, Y>::ret_type>::type
366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
include/llvm/Support/PointerLikeTypeTraits.h 56 static inline void *getAsVoidPointer(T *P) { return P; }
57 static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
59 enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
include/llvm/Transforms/Scalar/GVNExpression.h 374 StoreInst *Store;
378 StoreExpression(unsigned NumOperands, StoreInst *S, Value *StoredValue,
391 StoreInst *getStoreInst() const { return Store; }
include/llvm/Transforms/Scalar/MemCpyOptimizer.h 60 bool processStore(StoreInst *SI, BasicBlock::iterator &BBI);
include/llvm/Transforms/Utils/Local.h 290 StoreInst *SI, DIBuilder &Builder);
include/llvm/Transforms/Utils/VNCoercion.h 55 StoreInst *DepSI, const DataLayout &DL);
include/llvm/Transforms/Vectorize/SLPVectorizer.h 60 using StoreList = SmallVector<StoreInst *, 8>;
143 bool vectorizeStores(ArrayRef<StoreInst *> Stores, slpvectorizer::BoUpSLP &R);
lib/Analysis/AliasAnalysis.cpp 457 ModRefInfo AAResults::getModRefInfo(const StoreInst *S,
462 ModRefInfo AAResults::getModRefInfo(const StoreInst *S,
lib/Analysis/AliasAnalysisEvaluator.cpp 112 if (EvalAAMD && isa<StoreInst>(&*I))
180 MemoryLocation::get(cast<StoreInst>(Store)));
206 AliasResult AR = AA.alias(MemoryLocation::get(cast<StoreInst>(*I1)),
207 MemoryLocation::get(cast<StoreInst>(*I2)));
lib/Analysis/AliasSetTracker.cpp 414 void AliasSetTracker::add(StoreInst *SI) {
464 if (StoreInst *SI = dyn_cast<StoreInst>(I))
464 if (StoreInst *SI = dyn_cast<StoreInst>(I))
lib/Analysis/CFLGraph.h 352 void visitStoreInst(StoreInst &Inst) {
lib/Analysis/CaptureTracking.cpp 312 if (V == I->getOperand(0) || cast<StoreInst>(I)->isVolatile())
lib/Analysis/Delinearization.cpp 77 if (!isa<StoreInst>(Inst) && !isa<LoadInst>(Inst) &&
lib/Analysis/DependenceAnalysis.cpp 176 if (isa<StoreInst>(*SrcI) || isa<LoadInst>(*SrcI)) {
179 if (isa<StoreInst>(*DstI) || isa<LoadInst>(*DstI)) {
680 else if (const StoreInst *SI = dyn_cast<StoreInst>(I))
680 else if (const StoreInst *SI = dyn_cast<StoreInst>(I))
lib/Analysis/GlobalsModRef.cpp 355 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
355 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
423 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
423 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
lib/Analysis/InlineCost.cpp 278 bool visitStore(StoreInst &I);
1149 bool CallAnalyzer::visitStore(StoreInst &I) {
lib/Analysis/InstructionPrecedenceTracking.cpp 146 if (isa<StoreInst>(Insn)) {
lib/Analysis/LazyValueInfo.cpp 673 if (StoreInst *S = dyn_cast<StoreInst>(I)) {
673 if (StoreInst *S = dyn_cast<StoreInst>(I)) {
lib/Analysis/Lint.cpp 106 void visitStoreInst(StoreInst &I);
511 void Lint::visitStoreInst(StoreInst &I) {
lib/Analysis/Loads.cpp 313 } else if (StoreInst *SI = dyn_cast<StoreInst>(BBI)) {
313 } else if (StoreInst *SI = dyn_cast<StoreInst>(BBI)) {
428 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
428 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
lib/Analysis/LoopAccessAnalysis.cpp 1165 if (StoreInst *S = dyn_cast<StoreInst>(I))
1165 if (StoreInst *S = dyn_cast<StoreInst>(I))
1796 SmallVector<StoreInst *, 16> Stores;
1874 auto *St = dyn_cast<StoreInst>(&I);
1874 auto *St = dyn_cast<StoreInst>(&I);
1928 for (StoreInst *ST : Stores) {
2285 else if (StoreInst *SI = dyn_cast<StoreInst>(MemAccess))
2285 else if (StoreInst *SI = dyn_cast<StoreInst>(MemAccess))
lib/Analysis/LoopCacheAnalysis.cpp 520 if (!isa<StoreInst>(I) && !isa<LoadInst>(I))
lib/Analysis/MemoryDependenceAnalysis.cpp 131 if (const StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
131 if (const StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
320 if (auto *SI = dyn_cast<StoreInst>(Inst))
320 if (auto *SI = dyn_cast<StoreInst>(Inst))
419 if ((isa<LoadInst>(U) || isa<StoreInst>(U)) &&
504 if (auto *SI = dyn_cast<StoreInst>(I))
504 if (auto *SI = dyn_cast<StoreInst>(I))
512 return !isa<LoadInst>(I) && !isa<StoreInst>(I) && I->mayReadOrWriteMemory();
616 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
616 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
946 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
946 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
lib/Analysis/MemoryLocation.cpp 44 MemoryLocation MemoryLocation::get(const StoreInst *SI) {
lib/Analysis/MemorySSA.cpp 1718 if (auto *SI = dyn_cast<StoreInst>(I)) {
lib/Analysis/ModuleSummaryAnalysis.cpp 235 if (const auto *SI = dyn_cast<StoreInst>(I))
235 if (const auto *SI = dyn_cast<StoreInst>(I))
lib/Analysis/ScalarEvolution.cpp 6107 if (auto *SI = dyn_cast<StoreInst>(I))
6107 if (auto *SI = dyn_cast<StoreInst>(I))
11136 if (StoreInst *Store = dyn_cast<StoreInst>(Inst))
11136 if (StoreInst *Store = dyn_cast<StoreInst>(Inst))
lib/Analysis/TargetTransformInfo.cpp 802 bool TargetTransformInfo::isLegalToVectorizeStore(StoreInst *SI) const {
1201 const StoreInst *SI = cast<StoreInst>(I);
1201 const StoreInst *SI = cast<StoreInst>(I);
lib/Analysis/ValueLatticeUtils.cpp 32 if (auto *Store = dyn_cast<StoreInst>(U)) {
32 if (auto *Store = dyn_cast<StoreInst>(U)) {
lib/Analysis/ValueTracking.cpp 4356 return cast<StoreInst>(I)->getPointerOperand();
lib/Analysis/VectorUtils.cpp 819 auto *SI = dyn_cast<StoreInst>(&I);
819 auto *SI = dyn_cast<StoreInst>(&I);
lib/AsmParser/LLParser.cpp 7020 Inst = new StoreInst(Val, Ptr, isVolatile, Alignment, Ordering, SSID);
lib/Bitcode/Reader/BitcodeReader.cpp 4854 I = new StoreInst(Val, Ptr, Record[OpNum + 1], Align);
4887 I = new StoreInst(Val, Ptr, Record[OpNum + 1], Align, Ordering, SSID);
lib/Bitcode/Writer/BitcodeWriter.cpp 2945 if (cast<StoreInst>(I).isAtomic())
2951 Vals.push_back(Log2_32(cast<StoreInst>(I).getAlignment())+1);
2952 Vals.push_back(cast<StoreInst>(I).isVolatile());
2953 if (cast<StoreInst>(I).isAtomic()) {
2954 Vals.push_back(getEncodedOrdering(cast<StoreInst>(I).getOrdering()));
2956 getEncodedSyncScopeID(cast<StoreInst>(I).getSyncScopeID()));
lib/CodeGen/AtomicExpandPass.cpp 77 StoreInst *convertAtomicStoreToIntegerType(StoreInst *SI);
77 StoreInst *convertAtomicStoreToIntegerType(StoreInst *SI);
78 bool expandAtomicStore(StoreInst *SI);
113 void expandAtomicStoreToLibcall(StoreInst *LI);
139 static unsigned getAtomicOpSize(StoreInst *SI) {
164 static unsigned getAtomicOpAlign(StoreInst *SI) {
191 static bool atomicSizeSupported(const TargetLowering *TLI, Inst *I) {
220 auto SI = dyn_cast<StoreInst>(I);
459 StoreInst *AtomicExpand::convertAtomicStoreToIntegerType(StoreInst *SI) {
459 StoreInst *AtomicExpand::convertAtomicStoreToIntegerType(StoreInst *SI) {
471 StoreInst *NewSI = Builder.CreateStore(NewVal, NewAddr);
480 bool AtomicExpand::expandAtomicStore(StoreInst *SI) {
1480 void AtomicExpand::expandAtomicStoreToLibcall(StoreInst *I) {
lib/CodeGen/CodeGenPrepare.cpp 4447 if (StoreInst *SI = dyn_cast<StoreInst>(UserI)) {
4447 if (StoreInst *SI = dyn_cast<StoreInst>(UserI)) {
4449 if (opNo != StoreInst::getPointerOperandIndex())
5616 if (isa<PHINode>(UI) || isa<LoadInst>(UI) || isa<StoreInst>(UI))
6361 StoreInst *ST = cast<StoreInst>(CombineInst);
6361 StoreInst *ST = cast<StoreInst>(CombineInst);
6508 bool canCombine(const Instruction *Use) { return isa<StoreInst>(Use); }
6674 static bool splitMergedValStore(StoreInst &SI, const DataLayout &DL,
6986 if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
6986 if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
lib/CodeGen/GCRootLowering.cpp 129 if (isa<AllocaInst>(I) || isa<GetElementPtrInst>(I) || isa<StoreInst>(I) ||
152 if (StoreInst *SI = dyn_cast<StoreInst>(IP))
152 if (StoreInst *SI = dyn_cast<StoreInst>(IP))
162 StoreInst *SI = new StoreInst(
162 StoreInst *SI = new StoreInst(
207 Value *St = new StoreInst(CI->getArgOperand(0),
lib/CodeGen/GlobalISel/IRTranslator.cpp 246 if (const StoreInst *SI = dyn_cast<StoreInst>(&I)) {
246 if (const StoreInst *SI = dyn_cast<StoreInst>(&I)) {
903 const StoreInst &SI = cast<StoreInst>(U);
903 const StoreInst &SI = cast<StoreInst>(U);
lib/CodeGen/InterleavedAccessPass.cpp 111 bool lowerInterleavedStore(StoreInst *SI,
418 StoreInst *SI, SmallVector<Instruction *, 32> &DeadInsts) {
464 if (StoreInst *SI = dyn_cast<StoreInst>(&I))
464 if (StoreInst *SI = dyn_cast<StoreInst>(&I))
lib/CodeGen/SelectionDAG/FastISel.cpp 2402 } else if (const auto *SI = dyn_cast<StoreInst>(I)) {
2402 } else if (const auto *SI = dyn_cast<StoreInst>(I)) {
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 4126 void SelectionDAGBuilder::visitStoreToSwiftError(const StoreInst &I) {
4184 void SelectionDAGBuilder::visitStore(const StoreInst &I) {
4713 void SelectionDAGBuilder::visitAtomicStore(const StoreInst &I) {
9413 std::pair<const AllocaInst *, const StoreInst *>>;
9448 const auto *SI = dyn_cast<StoreInst>(&I);
9448 const auto *SI = dyn_cast<StoreInst>(&I);
9567 const StoreInst *SI = ArgCopyIter->second.second;
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h 722 void visitStore(const StoreInst &I);
742 void visitAtomicStore(const StoreInst &I);
744 void visitStoreToSwiftError(const StoreInst &I);
lib/CodeGen/ShadowStackGCLowering.cpp 337 while (isa<StoreInst>(IP))
lib/CodeGen/SjLjEHPrepare.cpp 459 Instruction *StoreStackAddr = new StoreInst(StackAddr, StackPtr, true);
lib/CodeGen/StackProtector.cpp 164 if (AI == cast<StoreInst>(I)->getValueOperand())
lib/CodeGen/SwiftErrorValueTracking.cpp 296 } else if (const StoreInst *SI = dyn_cast<const StoreInst>(&*It)) {
296 } else if (const StoreInst *SI = dyn_cast<const StoreInst>(&*It)) {
lib/CodeGen/WinEHPrepare.cpp 1158 new StoreInst(PredVal, SpillSlot, PredBlock->getTerminator());
lib/ExecutionEngine/Interpreter/Execution.cpp 1102 void Interpreter::visitStoreInst(StoreInst &I) {
lib/ExecutionEngine/Interpreter/Interpreter.h 133 void visitStoreInst(StoreInst &I);
lib/FuzzMutate/RandomIRBuilder.cpp 130 new StoreInst(V, Ptr, Insts.back());
lib/IR/AsmWriter.cpp 3691 (isa<StoreInst>(I) && cast<StoreInst>(I).isAtomic()))
3691 (isa<StoreInst>(I) && cast<StoreInst>(I).isAtomic()))
3699 (isa<StoreInst>(I) && cast<StoreInst>(I).isVolatile()) ||
3699 (isa<StoreInst>(I) && cast<StoreInst>(I).isVolatile()) ||
4029 if (isa<SelectInst>(I) || isa<StoreInst>(I) || isa<ShuffleVectorInst>(I)
4062 } else if (const StoreInst *SI = dyn_cast<StoreInst>(&I)) {
4062 } else if (const StoreInst *SI = dyn_cast<StoreInst>(&I)) {
lib/IR/AutoUpgrade.cpp 1686 StoreInst *SI = Builder.CreateAlignedStore(Extract, Addr, 1);
1710 StoreInst *SI = Builder.CreateAlignedStore(Arg1, BC,
lib/IR/Core.cpp 2001 if (StoreInst *SI = dyn_cast<StoreInst>(P))
2001 if (StoreInst *SI = dyn_cast<StoreInst>(P))
2016 else if (StoreInst *SI = dyn_cast<StoreInst>(P))
2016 else if (StoreInst *SI = dyn_cast<StoreInst>(P))
3647 if (StoreInst *SI = dyn_cast<StoreInst>(P))
3647 if (StoreInst *SI = dyn_cast<StoreInst>(P))
3658 if (StoreInst *SI = dyn_cast<StoreInst>(P))
3658 if (StoreInst *SI = dyn_cast<StoreInst>(P))
3678 else if (StoreInst *SI = dyn_cast<StoreInst>(P))
3678 else if (StoreInst *SI = dyn_cast<StoreInst>(P))
3691 return cast<StoreInst>(P)->setOrdering(O);
lib/IR/Instruction.cpp 394 if (const StoreInst *SI = dyn_cast<StoreInst>(I1))
394 if (const StoreInst *SI = dyn_cast<StoreInst>(I1))
395 return SI->isVolatile() == cast<StoreInst>(I2)->isVolatile() &&
396 (SI->getAlignment() == cast<StoreInst>(I2)->getAlignment() ||
398 SI->getOrdering() == cast<StoreInst>(I2)->getOrdering() &&
399 SI->getSyncScopeID() == cast<StoreInst>(I2)->getSyncScopeID();
529 return !cast<StoreInst>(this)->isUnordered();
564 return cast<StoreInst>(this)->getOrdering() != AtomicOrdering::NotAtomic;
lib/IR/Instructions.cpp 1395 OperandTraits<StoreInst>::op_begin(this),
1396 OperandTraits<StoreInst>::operands(this), InsertBefore) {
1409 OperandTraits<StoreInst>::op_begin(this),
1410 OperandTraits<StoreInst>::operands(this), InsertAtEnd) {
4144 StoreInst *StoreInst::cloneImpl() const {
4145 return new StoreInst(getOperand(0), getOperand(1), isVolatile(),
lib/IR/Verifier.cpp 464 void visitStoreInst(StoreInst &SI);
3402 void Verifier::visitStoreInst(StoreInst &SI) {
3453 if (auto StoreI = dyn_cast<StoreInst>(U))
lib/Target/AArch64/AArch64FastISel.cpp 2222 auto *SI = cast<StoreInst>(I);
lib/Target/AArch64/AArch64ISelLowering.cpp 8911 bool AArch64TargetLowering::lowerInterleavedStore(StoreInst *SI,
12125 bool AArch64TargetLowering::shouldExpandAtomicStoreInIR(StoreInst *SI) const {
lib/Target/AArch64/AArch64ISelLowering.h 366 bool lowerInterleavedStore(StoreInst *SI, ShuffleVectorInst *SVI,
426 bool shouldExpandAtomicStoreInIR(StoreInst *SI) const override;
lib/Target/AArch64/AArch64PromoteConstant.cpp 280 if (isa<const StoreInst>(Instr) && OpIdx > 1)
lib/Target/AArch64/AArch64StackTagging.cpp 107 bool addStore(uint64_t Offset, StoreInst *SI, const DataLayout *DL) {
348 if (!isa<StoreInst>(BI) && !isa<MemSetInst>(BI)) {
357 if (StoreInst *NextStore = dyn_cast<StoreInst>(BI)) {
357 if (StoreInst *NextStore = dyn_cast<StoreInst>(BI)) {
lib/Target/AMDGPU/AMDGPULibCalls.cpp 533 new StoreInst(cosval, aCI->getArgOperand(1), aCI);
1705 new StoreInst(nval1, aCI->getArgOperand(1), aCI);
lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp 128 if (auto SI = dyn_cast<StoreInst>(Inst)) {
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp 166 if (auto SI = dyn_cast<StoreInst>(Use)) {
389 StoreInst *stbuff =
390 new StoreInst(ConstantInt::get(I32Ty, UniqID), id_gep_cast);
542 StoreInst *StBuff = new StoreInst(TheBtCast, CastedGEP, Brnch);
542 StoreInst *StBuff = new StoreInst(TheBtCast, CastedGEP, Brnch);
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp 346 StoreInst *SI = cast<StoreInst>(Inst);
346 StoreInst *SI = cast<StoreInst>(Inst);
440 StoreInst *SI = cast<StoreInst>(Inst);
440 StoreInst *SI = cast<StoreInst>(Inst);
549 if (StoreInst *SI = dyn_cast<StoreInst>(UseInst)) {
549 if (StoreInst *SI = dyn_cast<StoreInst>(UseInst)) {
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp 140 StoreInst *SI = dyn_cast<StoreInst>(U.getUser());
140 StoreInst *SI = dyn_cast<StoreInst>(U.getUser());
178 U.getOperandNo() != StoreInst::getPointerOperandIndex())
287 SmallVector<std::pair<ReturnInst *, StoreInst *>, 4> ReplaceableStores;
307 StoreInst *SI = nullptr;
309 SI = dyn_cast<StoreInst>(Q.getInst());
323 for (std::pair<ReturnInst *, StoreInst *> Store : ReplaceableStores) {
lib/Target/ARM/ARMCodeGenPrepare.cpp 266 if (auto *Store = dyn_cast<StoreInst>(V))
266 if (auto *Store = dyn_cast<StoreInst>(V))
lib/Target/ARM/ARMFastISel.cpp 1153 if (cast<StoreInst>(I)->isAtomic())
1185 if (!ARMEmitStore(VT, SrcReg, Addr, cast<StoreInst>(I)->getAlignment()))
lib/Target/ARM/ARMISelLowering.cpp16478 bool ARMTargetLowering::shouldExpandAtomicStoreInIR(StoreInst *SI) const {
16872 bool ARMTargetLowering::lowerInterleavedStore(StoreInst *SI,
lib/Target/ARM/ARMISelLowering.h 557 bool lowerInterleavedStore(StoreInst *SI, ShuffleVectorInst *SVI,
563 bool shouldExpandAtomicStoreInIR(StoreInst *SI) const override;
lib/Target/Hexagon/HexagonCommonGEP.cpp 1031 } else if (StoreInst *St = dyn_cast<StoreInst>(R)) {
1031 } else if (StoreInst *St = dyn_cast<StoreInst>(R)) {
1032 unsigned PtrX = StoreInst::getPointerOperandIndex();
lib/Target/Hexagon/HexagonISelLowering.cpp 3293 bool HexagonTargetLowering::shouldExpandAtomicStoreInIR(StoreInst *SI) const {
lib/Target/Hexagon/HexagonISelLowering.h 324 bool shouldExpandAtomicStoreInIR(StoreInst *SI) const override;
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp 144 bool isLegalStore(Loop *CurLoop, StoreInst *SI);
146 SmallVectorImpl<StoreInst*> &Stores);
147 bool processCopyingStore(Loop *CurLoop, StoreInst *SI, const SCEV *BECount);
1913 bool HexagonLoopIdiomRecognize::isLegalStore(Loop *CurLoop, StoreInst *SI) {
1999 SmallVectorImpl<StoreInst*> &Stores) {
2002 if (StoreInst *SI = dyn_cast<StoreInst>(&I))
2002 if (StoreInst *SI = dyn_cast<StoreInst>(&I))
2008 StoreInst *SI, const SCEV *BECount) {
2368 SmallVector<StoreInst*,8> Stores;
lib/Target/Mips/MipsFastISel.cpp 919 if (cast<StoreInst>(I)->isAtomic())
937 if (!emitStore(VT, SrcReg, Addr, cast<StoreInst>(I)->getAlignment()))
lib/Target/NVPTX/NVPTXLowerAggrCopies.cpp 79 if (StoreInst *SI = dyn_cast<StoreInst>(LI->user_back())) {
79 if (StoreInst *SI = dyn_cast<StoreInst>(LI->user_back())) {
106 auto *SI = cast<StoreInst>(*LI->user_begin());
106 auto *SI = cast<StoreInst>(*LI->user_begin());
lib/Target/NVPTX/NVPTXLowerAlloca.cpp 97 auto SI = dyn_cast<StoreInst>(AllocaUse.getUser());
lib/Target/NVPTX/NVPTXLowerArgs.cpp 175 new StoreInst(LI, AllocA, FirstInst);
lib/Target/PowerPC/PPCFastISel.cpp 744 if (cast<StoreInst>(I)->isAtomic())
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp 186 } else if (StoreInst *SMemI = dyn_cast<StoreInst>(MemI)) {
186 } else if (StoreInst *SMemI = dyn_cast<StoreInst>(MemI)) {
252 } else if (StoreInst *SMemI = dyn_cast<StoreInst>(&J)) {
252 } else if (StoreInst *SMemI = dyn_cast<StoreInst>(&J)) {
lib/Target/RISCV/RISCVISelLowering.cpp 2726 if (isa<StoreInst>(Inst) && isReleaseOrStronger(Ord))
lib/Target/RISCV/RISCVISelLowering.h 119 return isa<LoadInst>(I) || isa<StoreInst>(I);
lib/Target/SystemZ/SystemZISelLowering.cpp 858 } else if (isa<StoreInst>(SingleUser))
862 } else if (auto *StoreI = dyn_cast<StoreInst>(I)) {
862 } else if (auto *StoreI = dyn_cast<StoreInst>(I)) {
869 if (HasVector && (isa<LoadInst>(I) || isa<StoreInst>(I))) {
884 if (!IsVectorAccess && isa<StoreInst>(I)) {
3845 if (auto *SI = dyn_cast<StoreInst>(&I))
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp 260 if (isa<StoreInst>(&I)) {
1040 (!LdUser->hasOneUse() || !isa<StoreInst>(*LdUser->user_begin())))
1043 else if (const StoreInst *SI = dyn_cast<StoreInst>(I)) {
1043 else if (const StoreInst *SI = dyn_cast<StoreInst>(I)) {
lib/Target/WebAssembly/WebAssemblyFastISel.cpp 1214 const auto *Store = cast<StoreInst>(I);
1214 const auto *Store = cast<StoreInst>(I);
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp 983 StoreInst *ThrewResetSI = nullptr;
997 if (auto *SI = dyn_cast<StoreInst>(I))
997 if (auto *SI = dyn_cast<StoreInst>(I))
lib/Target/X86/X86FastISel.cpp 1103 const StoreInst *S = cast<StoreInst>(I);
1103 const StoreInst *S = cast<StoreInst>(I);
lib/Target/X86/X86ISelLowering.cpp26449 bool X86TargetLowering::shouldExpandAtomicStoreInIR(StoreInst *SI) const {
26589 bool X86TargetLowering::lowerAtomicStoreAsStoreSDNode(const StoreInst &SI) const {
lib/Target/X86/X86ISelLowering.h 1246 bool lowerInterleavedStore(StoreInst *SI, ShuffleVectorInst *SVI,
1409 bool shouldExpandAtomicStoreInIR(StoreInst *SI) const override;
1416 bool lowerAtomicStoreAsStoreSDNode(const StoreInst &SI) const override;
lib/Target/X86/X86InterleavedAccess.cpp 155 if (ShuffleElemSize == 8 && isa<StoreInst>(Inst) && Factor == 4 &&
795 StoreInst *SI = cast<StoreInst>(Inst);
795 StoreInst *SI = cast<StoreInst>(Inst);
823 bool X86TargetLowering::lowerInterleavedStore(StoreInst *SI,
lib/Target/X86/X86TargetTransformInfo.cpp 3094 if (isa<StoreInst>(U)) {
lib/Target/XCore/XCoreISelLowering.cpp 1003 if (auto *SI = dyn_cast<StoreInst>(&I))
lib/Transforms/Coroutines/CoroFrame.cpp 513 void visitStoreInst(StoreInst &SI) { PI.setAborted(&SI); }
1237 if (isa<LoadInst>(User) || isa<StoreInst>(User))
lib/Transforms/IPO/ArgumentPromotion.cpp 402 new StoreInst(&*I2++, Idx, InsertPt);
819 SmallVector<StoreInst *, 16> Stores;
831 } else if (StoreInst *Store = dyn_cast<StoreInst>(V)) {
831 } else if (StoreInst *Store = dyn_cast<StoreInst>(V)) {
839 for (StoreInst *Store : Stores)
lib/Transforms/IPO/Attributor.cpp 290 if (auto *SI = dyn_cast<StoreInst>(I))
1300 Ordering = cast<StoreInst>(I)->getOrdering();
1369 return cast<StoreInst>(I)->isVolatile();
2704 if (auto *SI = dyn_cast<StoreInst>(U.getUser())) {
2704 if (auto *SI = dyn_cast<StoreInst>(U.getUser())) {
3651 if (auto *SI = dyn_cast<StoreInst>(UserI)) {
3651 if (auto *SI = dyn_cast<StoreInst>(UserI)) {
4171 if (cast<StoreInst>(UserI)->getPointerOperand() == U->get())
4849 IRPosition::value(*cast<StoreInst>(I).getPointerOperand()));
lib/Transforms/IPO/CalledValuePropagation.cpp 184 return visitStore(*cast<StoreInst>(&I), ChangedValues, SS);
330 void visitStore(StoreInst &I,
lib/Transforms/IPO/FunctionAttrs.cpp 192 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
192 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
lib/Transforms/IPO/GlobalOpt.cpp 210 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
210 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
298 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
298 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
410 if (StoreInst *SI = dyn_cast<StoreInst>(I))
410 if (StoreInst *SI = dyn_cast<StoreInst>(I))
625 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) {
625 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) {
669 } else if (isa<StoreInst>(U)) {
690 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
690 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
771 } else if (isa<StoreInst>(GlobalUser)) {
892 if (StoreInst *SI = dyn_cast<StoreInst>(GV->user_back())) {
892 if (StoreInst *SI = dyn_cast<StoreInst>(GV->user_back())) {
894 new StoreInst(ConstantInt::getTrue(GV->getContext()), InitBool, false,
943 cast<StoreInst>(InitBool->user_back())->eraseFromParent();
975 if (const StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
975 if (const StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
1017 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
1017 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
1036 if (StoreInst *SI = dyn_cast<StoreInst>(GEPI->user_back()))
1036 if (StoreInst *SI = dyn_cast<StoreInst>(GEPI->user_back()))
1319 new StoreInst(NMI, NGV, CI);
1378 new StoreInst(Constant::getNullValue(GVVal->getType()), FieldGlobals[i],
1409 StoreInst *SI = cast<StoreInst>(User);
1409 StoreInst *SI = cast<StoreInst>(User);
1417 new StoreInst(Null, FieldGlobals[i], SI);
1622 if (!isa<LoadInst>(U) && !isa<StoreInst>(U))
1698 if (StoreInst *SI = dyn_cast<StoreInst>(UI)) {
1698 if (StoreInst *SI = dyn_cast<StoreInst>(UI)) {
1728 StoreInst *NSI =
1729 new StoreInst(StoreVal, NewGV, false, None, SI->getOrdering(),
1800 SmallVector<StoreInst *, 4> Stores;
1806 else if (auto *SI = dyn_cast<StoreInst>(UU))
1806 else if (auto *SI = dyn_cast<StoreInst>(UU))
1821 else if (auto *SI = dyn_cast<StoreInst>(I))
1821 else if (auto *SI = dyn_cast<StoreInst>(I))
1954 new StoreInst(GV->getInitializer(), Alloca, &FirstI);
lib/Transforms/IPO/MergeFunctions.cpp 585 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
585 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
lib/Transforms/InstCombine/InstCombineAtomicRMW.cpp 124 auto *SI = new StoreInst(RMWI.getValOperand(),
124 auto *SI = new StoreInst(RMWI.getValOperand(),
lib/Transforms/InstCombine/InstCombineCalls.cpp 200 StoreInst *S = Builder.CreateStore(L, Dest);
272 StoreInst *S = Builder.CreateStore(ConstantInt::get(ITy, Fill), Dest,
1090 return new StoreInst(II.getArgOperand(0), StorePtr, false, Alignment);
2356 return new StoreInst(II->getArgOperand(0), Ptr);
2364 return new StoreInst(II->getArgOperand(0), Ptr, false, Align::None());
2396 return new StoreInst(TOp, Ptr);
2406 return new StoreInst(II->getArgOperand(0), Ptr);
lib/Transforms/InstCombine/InstCombineCasts.cpp 2148 if (!isa<StoreInst>(U))
2263 if (auto *SI = dyn_cast<StoreInst>(V)) {
2263 if (auto *SI = dyn_cast<StoreInst>(V)) {
lib/Transforms/InstCombine/InstCombineCompares.cpp 1065 } else if (const auto *SI = dyn_cast<StoreInst>(V)) {
1065 } else if (const auto *SI = dyn_cast<StoreInst>(V)) {
lib/Transforms/InstCombine/InstCombineInternal.h 435 Instruction *visitStoreInst(StoreInst &SI);
694 new StoreInst(ConstantInt::getTrue(Ctx),
985 bool mergeStoreIntoSuccessor(StoreInst &SI);
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp 475 static StoreInst *combineStoreToNewValue(InstCombiner &IC, StoreInst &SI, Value *V) {
475 static StoreInst *combineStoreToNewValue(InstCombiner &IC, StoreInst &SI, Value *V) {
484 StoreInst *NewStore = IC.Builder.CreateAlignedStore(
595 auto *SI = dyn_cast<StoreInst>(U);
595 auto *SI = dyn_cast<StoreInst>(U);
604 auto *SI = cast<StoreInst>(*UI++);
604 auto *SI = cast<StoreInst>(*UI++);
908 T &MemI) {
924 static bool canSimplifyNullStoreOrGEP(StoreInst &SI) {
1004 StoreInst *SI = new StoreInst(UndefValue::get(LI.getType()),
1004 StoreInst *SI = new StoreInst(UndefValue::get(LI.getType()),
1137 static bool combineStoreToValueType(InstCombiner &IC, StoreInst &SI) {
1169 static bool unpackStoreToAggregate(InstCombiner &IC, StoreInst &SI) {
1314 StoreInst &SI) {
1329 auto *SI = dyn_cast<StoreInst>(U);
1329 auto *SI = dyn_cast<StoreInst>(U);
1341 auto *USI = cast<StoreInst>(UI);
1341 auto *USI = cast<StoreInst>(UI);
1350 Instruction *InstCombiner::visitStoreInst(StoreInst &SI) {
1421 if (StoreInst *PrevSI = dyn_cast<StoreInst>(BBI)) {
1421 if (StoreInst *PrevSI = dyn_cast<StoreInst>(BBI)) {
1488 bool InstCombiner::mergeStoreIntoSuccessor(StoreInst &SI) {
1517 StoreInst *OtherStore = nullptr;
1529 OtherStore = dyn_cast<StoreInst>(BBI);
1545 if ((OtherStore = dyn_cast<StoreInst>(BBI))) {
1582 StoreInst *NewSI = new StoreInst(MergedVal, SI.getOperand(1), SI.isVolatile(),
1582 StoreInst *NewSI = new StoreInst(MergedVal, SI.getOperand(1), SI.isVolatile(),
lib/Transforms/InstCombine/InstCombinePHI.cpp 111 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
111 } else if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
506 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
506 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
lib/Transforms/InstCombine/InstructionCombining.cpp 2340 StoreInst *SI = cast<StoreInst>(I);
2340 StoreInst *SI = cast<StoreInst>(I);
2407 } else if (auto *SI = dyn_cast<StoreInst>(I)) {
2407 } else if (auto *SI = dyn_cast<StoreInst>(I)) {
lib/Transforms/Instrumentation/AddressSanitizer.cpp 1363 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
1363 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
lib/Transforms/Instrumentation/BoundsChecking.cpp 158 } else if (StoreInst *SI = dyn_cast<StoreInst>(&I)) {
158 } else if (StoreInst *SI = dyn_cast<StoreInst>(&I)) {
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp 446 void visitStoreInst(StoreInst &SI);
705 new StoreInst(DFSF.getShadow(RI->getReturnValue()),
1379 void DFSanVisitor::visitStoreInst(StoreInst &SI) {
1444 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
1444 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp 526 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
526 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
567 if (StoreInst *SI = dyn_cast<StoreInst>(I))
567 if (StoreInst *SI = dyn_cast<StoreInst>(I))
lib/Transforms/Instrumentation/InstrProfiling.cpp 202 Value *Addr = cast<StoreInst>(Store)->getPointerOperand();
213 auto *NewStore = Builder.CreateStore(NewVal, Addr);
650 auto *Store = Builder.CreateStore(Count, Addr);
lib/Transforms/Instrumentation/MemorySanitizer.cpp 1048 SmallVector<StoreInst *, 16> StoreList;
1160 for (StoreInst *SI : StoreList) {
1172 StoreInst *NewSI = IRB.CreateAlignedStore(Shadow, ShadowPtr, Alignment);
1817 void visitStoreInst(StoreInst &I) {
lib/Transforms/Instrumentation/ThreadSanitizer.cpp 377 if (StoreInst *Store = dyn_cast<StoreInst>(I)) {
377 if (StoreInst *Store = dyn_cast<StoreInst>(I)) {
397 Value *Addr = isa<StoreInst>(*I)
398 ? cast<StoreInst>(I)->getPointerOperand()
417 if (StoreInst *SI = dyn_cast<StoreInst>(I))
417 if (StoreInst *SI = dyn_cast<StoreInst>(I))
458 else if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst))
521 bool IsWrite = isa<StoreInst>(*I);
523 ? cast<StoreInst>(I)->getPointerOperand()
537 Value *StoredValue = cast<StoreInst>(I)->getValueOperand();
560 ? cast<StoreInst>(I)->getAlignment()
645 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
645 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
lib/Transforms/ObjCARC/DependencyAnalysis.cpp 108 } else if (const StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
108 } else if (const StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
lib/Transforms/ObjCARC/ObjCARCContract.cpp 206 static StoreInst *findSafeStoreForStoreStrongContraction(LoadInst *Load,
210 StoreInst *Store = nullptr;
265 Store = dyn_cast<StoreInst>(Inst);
293 findRetainForStoreStrongContraction(Value *New, StoreInst *Store,
385 StoreInst *Store =
511 new StoreInst(Null, CI->getArgOperand(0), CI);
lib/Transforms/ObjCARC/ObjCARCOpts.cpp 804 new StoreInst(UndefValue::get(cast<PointerType>(Ty)->getElementType()),
825 new StoreInst(UndefValue::get(cast<PointerType>(Ty)->getElementType()),
lib/Transforms/ObjCARC/ProvenanceAnalysis.cpp 93 if (isa<StoreInst>(Ur)) {
lib/Transforms/Scalar/AlignmentFromAssumptions.cpp 327 } else if (StoreInst *SI = dyn_cast<StoreInst>(J)) {
327 } else if (StoreInst *SI = dyn_cast<StoreInst>(J)) {
lib/Transforms/Scalar/ConstantHoisting.cpp 668 } else if (StoreInst *SI = dyn_cast<StoreInst>(UI)) {
668 } else if (StoreInst *SI = dyn_cast<StoreInst>(UI)) {
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp 286 Pointer = cast<StoreInst>(I)->getPointerOperand();
lib/Transforms/Scalar/DeadStoreElimination.cpp 153 if (isa<StoreInst>(I))
191 if (StoreInst *SI = dyn_cast<StoreInst>(Inst))
191 if (StoreInst *SI = dyn_cast<StoreInst>(Inst))
236 if (StoreInst *SI = dyn_cast<StoreInst>(I))
236 if (StoreInst *SI = dyn_cast<StoreInst>(I))
272 if (isa<StoreInst>(I))
1033 StoreInst *SI = dyn_cast<StoreInst>(Inst);
1033 StoreInst *SI = dyn_cast<StoreInst>(Inst);
1211 auto *Earlier = dyn_cast<StoreInst>(DepWrite);
1211 auto *Earlier = dyn_cast<StoreInst>(DepWrite);
1212 auto *Later = dyn_cast<StoreInst>(Inst);
1212 auto *Later = dyn_cast<StoreInst>(Inst);
1255 auto *SI = new StoreInst(
1255 auto *SI = new StoreInst(
lib/Transforms/Scalar/EarlyCSE.cpp 618 return isa<StoreInst>(Inst);
633 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
633 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
646 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
646 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
704 if (auto *SI = dyn_cast<StoreInst>(Inst))
704 if (auto *SI = dyn_cast<StoreInst>(Inst))
lib/Transforms/Scalar/GVN.cpp 839 if (U != LI && (isa<LoadInst>(U) || isa<StoreInst>(U)) &&
871 if (StoreInst *DepSI = dyn_cast<StoreInst>(DepInst)) {
871 if (StoreInst *DepSI = dyn_cast<StoreInst>(DepInst)) {
940 if (StoreInst *S = dyn_cast<StoreInst>(DepInst)) {
940 if (StoreInst *S = dyn_cast<StoreInst>(DepInst)) {
1409 new StoreInst(UndefValue::get(Int8Ty),
lib/Transforms/Scalar/GVNHoist.cpp 203 void insert(StoreInst *Store, GVN::ValueTable &VN) {
882 cast<StoreInst>(OtherInst)->getPointerOperand());
895 } else if (auto *ReplacementStore = dyn_cast<StoreInst>(Repl)) {
895 } else if (auto *ReplacementStore = dyn_cast<StoreInst>(Repl)) {
898 cast<StoreInst>(I)->getAlignment())));
981 } else if (auto *St = dyn_cast<StoreInst>(Repl)) {
981 } else if (auto *St = dyn_cast<StoreInst>(Repl)) {
1062 else if (isa<StoreInst>(Repl))
1105 else if (auto *Store = dyn_cast<StoreInst>(&I1))
1105 else if (auto *Store = dyn_cast<StoreInst>(&I1))
lib/Transforms/Scalar/GVNSink.cpp 101 return isa<LoadInst>(I) || isa<StoreInst>(I) ||
410 template <class Inst> InstructionUseExpr *createMemoryExpr(Inst *I) {
440 exp = createMemoryExpr(cast<StoreInst>(I));
lib/Transforms/Scalar/InferAddressSpaces.cpp 362 else if (auto *SI = dyn_cast<StoreInst>(&I))
362 else if (auto *SI = dyn_cast<StoreInst>(&I))
768 if (auto *SI = dyn_cast<StoreInst>(Inst))
768 if (auto *SI = dyn_cast<StoreInst>(Inst))
769 return OpNo == StoreInst::getPointerOperandIndex() &&
lib/Transforms/Scalar/LICM.cpp 1035 return (isa<LoadInst>(I) || isa<StoreInst>(I) || isa<CallInst>(I) ||
1200 } else if (auto *SI = dyn_cast<StoreInst>(&I)) {
1200 } else if (auto *SI = dyn_cast<StoreInst>(&I)) {
1312 (!isa<StoreInst>(UI) && !isa<LoadInst>(UI))))
1785 Ptr = cast<StoreInst>(I)->getPointerOperand();
1800 StoreInst *NewSI = new StoreInst(LiveInValue, Ptr, InsertPos);
1800 StoreInst *NewSI = new StoreInst(LiveInValue, Ptr, InsertPos);
1990 } else if (const StoreInst *Store = dyn_cast<StoreInst>(UI)) {
1990 } else if (const StoreInst *Store = dyn_cast<StoreInst>(UI)) {
lib/Transforms/Scalar/LoopDataPrefetch.cpp 259 } else if (StoreInst *SMemI = dyn_cast<StoreInst>(&I)) {
259 } else if (StoreInst *SMemI = dyn_cast<StoreInst>(&I)) {
lib/Transforms/Scalar/LoopDistribute.cpp 328 if (isa<StoreInst>(Inst)) {
lib/Transforms/Scalar/LoopFuse.cpp 192 if (StoreInst *SI = dyn_cast<StoreInst>(&I)) {
192 if (StoreInst *SI = dyn_cast<StoreInst>(&I)) {
lib/Transforms/Scalar/LoopIdiomRecognize.cpp 166 using StoreList = SmallVector<StoreInst *, 8>;
197 LegalStoreKind isLegalStore(StoreInst *SI);
199 bool processLoopStores(SmallVectorImpl<StoreInst *> &SL, const SCEV *BECount,
209 bool processLoopStoreOfLoopLoad(StoreInst *SI, const SCEV *BECount);
472 LoopIdiomRecognize::isLegalStore(StoreInst *SI) {
582 StoreInst *SI = dyn_cast<StoreInst>(&I);
582 StoreInst *SI = dyn_cast<StoreInst>(&I);
663 bool LoopIdiomRecognize::processLoopStores(SmallVectorImpl<StoreInst *> &SL,
666 SetVector<StoreInst *> Heads, Tails;
667 SmallDenseMap<StoreInst *, StoreInst *> ConsecutiveChain;
667 SmallDenseMap<StoreInst *, StoreInst *> ConsecutiveChain;
758 for (SetVector<StoreInst *>::iterator it = Heads.begin(), e = Heads.end();
766 StoreInst *I = *it;
768 StoreInst *HeadStore = I;
1055 bool LoopIdiomRecognize::processLoopStoreOfLoopLoad(StoreInst *SI,
lib/Transforms/Scalar/LoopInterchange.cpp 101 } else if (auto *St = dyn_cast<StoreInst>(&I)) {
101 } else if (auto *St = dyn_cast<StoreInst>(&I)) {
lib/Transforms/Scalar/LoopLoadElimination.cpp 90 StoreInst *Store;
92 StoreToLoadForwardingCandidate(LoadInst *Load, StoreInst *Store)
209 auto *Store = dyn_cast<StoreInst>(Source);
209 auto *Store = dyn_cast<StoreInst>(Source);
350 StoreInst *FirstStore =
365 if (auto *S = dyn_cast<StoreInst>(I))
365 if (auto *S = dyn_cast<StoreInst>(I))
lib/Transforms/Scalar/LoopRerollPass.cpp 732 if (StoreInst *SI = dyn_cast<StoreInst>(I))
732 if (StoreInst *SI = dyn_cast<StoreInst>(I))
lib/Transforms/Scalar/LoopStrengthReduce.cpp 800 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
800 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
840 if (const StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
840 if (const StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
1487 if (StoreInst *Store = dyn_cast<StoreInst>(UserInst)) {
1487 if (StoreInst *Store = dyn_cast<StoreInst>(UserInst)) {
lib/Transforms/Scalar/LoopVersioningLICM.cpp 366 StoreInst *St = dyn_cast<StoreInst>(I);
366 StoreInst *St = dyn_cast<StoreInst>(I);
lib/Transforms/Scalar/LowerAtomic.cpp 112 static bool LowerStoreInst(StoreInst *SI) {
130 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
130 } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
lib/Transforms/Scalar/MemCpyOptimizer.cpp 114 if (!isa<StoreInst>(SI))
166 if (StoreInst *SI = dyn_cast<StoreInst>(Inst))
166 if (StoreInst *SI = dyn_cast<StoreInst>(Inst))
172 void addStore(int64_t OffsetFromFirst, StoreInst *SI) {
317 if (!isa<StoreInst>(BI) && !isa<MemSetInst>(BI)) {
326 if (StoreInst *NextStore = dyn_cast<StoreInst>(BI)) {
326 if (StoreInst *NextStore = dyn_cast<StoreInst>(BI)) {
419 static unsigned findStoreAlignment(const DataLayout &DL, const StoreInst *SI) {
433 static unsigned findCommonAlignment(const DataLayout &DL, const StoreInst *SI,
444 static bool moveUp(AliasAnalysis &AA, StoreInst *SI, Instruction *P,
502 } else if (isa<LoadInst>(C) || isa<StoreInst>(C) || isa<VAArgInst>(C)) {
534 bool MemCpyOptPass::processStore(StoreInst *SI, BasicBlock::iterator &BBI) {
1353 if (StoreInst *SI = dyn_cast<StoreInst>(I))
1353 if (StoreInst *SI = dyn_cast<StoreInst>(I))
lib/Transforms/Scalar/MergeICmps.cpp 72 if (const StoreInst *SI = dyn_cast<StoreInst>(I))
72 if (const StoreInst *SI = dyn_cast<StoreInst>(I))
lib/Transforms/Scalar/MergedLoadStoreMotion.cpp 117 StoreInst *canSinkFromBlock(BasicBlock *BB, StoreInst *SI);
117 StoreInst *canSinkFromBlock(BasicBlock *BB, StoreInst *SI);
118 PHINode *getPHIOperand(BasicBlock *BB, StoreInst *S0, StoreInst *S1);
118 PHINode *getPHIOperand(BasicBlock *BB, StoreInst *S0, StoreInst *S1);
121 bool canSinkStoresAndGEPs(StoreInst *S0, StoreInst *S1) const;
121 bool canSinkStoresAndGEPs(StoreInst *S0, StoreInst *S1) const;
122 void sinkStoresAndGEPs(BasicBlock *BB, StoreInst *SinkCand,
123 StoreInst *ElseInst);
186 StoreInst *MergedLoadStoreMotion::canSinkFromBlock(BasicBlock *BB1,
187 StoreInst *Store0) {
191 auto *Store1 = dyn_cast<StoreInst>(&Inst);
191 auto *Store1 = dyn_cast<StoreInst>(&Inst);
209 PHINode *MergedLoadStoreMotion::getPHIOperand(BasicBlock *BB, StoreInst *S0,
210 StoreInst *S1) {
228 bool MergedLoadStoreMotion::canSinkStoresAndGEPs(StoreInst *S0,
229 StoreInst *S1) const {
242 void MergedLoadStoreMotion::sinkStoresAndGEPs(BasicBlock *BB, StoreInst *S0,
243 StoreInst *S1) {
257 StoreInst *SNew = cast<StoreInst>(S0->clone());
257 StoreInst *SNew = cast<StoreInst>(S0->clone());
313 auto *S0 = dyn_cast<StoreInst>(I);
313 auto *S0 = dyn_cast<StoreInst>(I);
320 if (StoreInst *S1 = canSinkFromBlock(Pred1, S0)) {
lib/Transforms/Scalar/NewGVN.cpp 684 const StoreExpression *createStoreExpression(StoreInst *,
1346 NewGVN::createStoreExpression(StoreInst *SI, const MemoryAccess *MA) const {
1366 auto *SI = cast<StoreInst>(I);
1366 auto *SI = cast<StoreInst>(I);
1419 if (auto *DepSI = dyn_cast<StoreInst>(DepInst)) {
1419 if (auto *DepSI = dyn_cast<StoreInst>(DepInst)) {
2152 if (auto *NL = dyn_cast_or_null<StoreInst>(CC->getNextLeader().first))
2152 if (auto *NL = dyn_cast_or_null<StoreInst>(CC->getNextLeader().first))
2156 *CC, [&](const Value *V) { return isa<StoreInst>(V); }));
2157 return getMemoryAccess(cast<StoreInst>(V));
2251 if (auto *SI = dyn_cast<StoreInst>(I)) {
2251 if (auto *SI = dyn_cast<StoreInst>(I)) {
2360 StoreInst *SI = SE->getStoreInst();
2414 if (ClassChanged && isa<StoreInst>(I)) {
2679 if (auto *SI = dyn_cast<StoreInst>(FoundVal))
2679 if (auto *SI = dyn_cast<StoreInst>(FoundVal))
2890 if (MD && isa<StoreInst>(MD->getMemoryInst()))
3576 if (auto *SI = dyn_cast<StoreInst>(D)) {
3576 if (auto *SI = dyn_cast<StoreInst>(D)) {
3654 if (!isa<LoadInst>(D) && !isa<StoreInst>(D))
3701 new StoreInst(UndefValue::get(Int8Ty),
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp 1653 StoreInst *Store = new StoreInst(CastedRelocatedValue, Alloca);
1653 StoreInst *Store = new StoreInst(CastedRelocatedValue, Alloca);
1676 StoreInst *Store = new StoreInst(RematerializedValue, Alloca);
1676 StoreInst *Store = new StoreInst(RematerializedValue, Alloca);
1782 StoreInst *Store = new StoreInst(CPN, AI);
1782 StoreInst *Store = new StoreInst(CPN, AI);
1845 StoreInst *Store = new StoreInst(Def, Alloca);
1845 StoreInst *Store = new StoreInst(Def, Alloca);
2415 if (!isa<LoadInst>(I) && !isa<StoreInst>(I))
lib/Transforms/Scalar/SCCP.cpp 631 void visitStoreInst (StoreInst &I);
1129 void SCCPSolver::visitStoreInst(StoreInst &SI) {
2224 StoreInst *SI = cast<StoreInst>(GV->user_back());
2224 StoreInst *SI = cast<StoreInst>(GV->user_back());
lib/Transforms/Scalar/SROA.cpp 794 void visitStoreInst(StoreInst &SI) {
966 if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
966 if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
1146 } else if (StoreInst *SI = dyn_cast<StoreInst>(U->getUser())) {
1146 } else if (StoreInst *SI = dyn_cast<StoreInst>(U->getUser())) {
1690 } else if (auto *SI = dyn_cast<StoreInst>(I)) {
1690 } else if (auto *SI = dyn_cast<StoreInst>(I)) {
1859 } else if (StoreInst *SI = dyn_cast<StoreInst>(U->getUser())) {
1859 } else if (StoreInst *SI = dyn_cast<StoreInst>(U->getUser())) {
1914 else if (auto *SI = dyn_cast<StoreInst>(S.getUse()->getUser()))
1914 else if (auto *SI = dyn_cast<StoreInst>(S.getUse()->getUser()))
2042 } else if (StoreInst *SI = dyn_cast<StoreInst>(U->getUser())) {
2042 } else if (StoreInst *SI = dyn_cast<StoreInst>(U->getUser())) {
2598 bool rewriteVectorizedStoreInst(Value *V, StoreInst &SI, Value *OldOp,
2617 StoreInst *Store = IRB.CreateAlignedStore(V, &NewAI, NewAI.getAlignment());
2626 bool rewriteIntegerStore(Value *V, StoreInst &SI, AAMDNodes AATags) {
2638 StoreInst *Store = IRB.CreateAlignedStore(V, &NewAI, NewAI.getAlignment());
2648 bool visitStoreInst(StoreInst &SI) {
2681 StoreInst *NewSI;
2868 StoreInst *New = IRB.CreateAlignedStore(V, &NewAI, NewAI.getAlignment(),
3062 StoreInst *Store = cast<StoreInst>(
3062 StoreInst *Store = cast<StoreInst>(
3126 if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
3126 if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
3408 StoreInst *Store =
3416 bool visitStoreInst(StoreInst &SI) {
3636 SmallVector<StoreInst *, 4> Stores;
3671 else if (auto *SI = dyn_cast<StoreInst>(I))
3671 else if (auto *SI = dyn_cast<StoreInst>(I))
3688 auto *SI = dyn_cast<StoreInst>(LU);
3688 auto *SI = dyn_cast<StoreInst>(LU);
3700 } else if (auto *SI = dyn_cast<StoreInst>(I)) {
3700 } else if (auto *SI = dyn_cast<StoreInst>(I)) {
3899 StoreInst *SI = cast<StoreInst>(LU);
3899 StoreInst *SI = cast<StoreInst>(LU);
3919 StoreInst *PStore = IRB.CreateAlignedStore(
3960 for (StoreInst *SI : Stores) {
4015 StoreInst *PStore = IRB.CreateAlignedStore(
4294 isa<StoreInst>(S.getUse()->getUser())) {
4311 isa<StoreInst>(S.getUse()->getUser())) {
lib/Transforms/Scalar/Scalarizer.cpp 196 bool visitStoreInst(StoreInst &SI);
791 bool ScalarizerVisitor::visitStoreInst(StoreInst &SI) {
lib/Transforms/Utils/CodeExtractor.cpp 326 StoreInst *SI = cast<StoreInst>(&II);
326 StoreInst *SI = cast<StoreInst>(&II);
1123 StoreInst *SI = new StoreInst(StructValues[i], GEP);
1123 StoreInst *SI = new StoreInst(StructValues[i], GEP);
1265 new StoreInst(outputs[i], GEP, InsertBefore);
1270 new StoreInst(outputs[i], &*OAI, InsertBefore);
lib/Transforms/Utils/DemoteRegToStack.cpp 103 new StoreInst(&I, Slot, &*InsertPt);
136 new StoreInst(P->getIncomingValue(i), Slot,
lib/Transforms/Utils/Evaluator.cpp 336 if (StoreInst *SI = dyn_cast<StoreInst>(CurInst)) {
336 if (StoreInst *SI = dyn_cast<StoreInst>(CurInst)) {
lib/Transforms/Utils/FlattenCFG.cpp 358 StoreInst *SI = dyn_cast<StoreInst>(CurI);
358 StoreInst *SI = dyn_cast<StoreInst>(CurI);
lib/Transforms/Utils/FunctionComparator.cpp 557 if (const StoreInst *SI = dyn_cast<StoreInst>(L)) {
557 if (const StoreInst *SI = dyn_cast<StoreInst>(L)) {
559 cmpNumbers(SI->isVolatile(), cast<StoreInst>(R)->isVolatile()))
562 cmpNumbers(SI->getAlignment(), cast<StoreInst>(R)->getAlignment()))
565 cmpOrderings(SI->getOrdering(), cast<StoreInst>(R)->getOrdering()))
568 cast<StoreInst>(R)->getSyncScopeID());
lib/Transforms/Utils/GlobalStatus.cpp 94 } else if (const StoreInst *SI = dyn_cast<StoreInst>(I)) {
94 } else if (const StoreInst *SI = dyn_cast<StoreInst>(I)) {
lib/Transforms/Utils/InlineFunction.cpp 987 else if (const StoreInst *SI = dyn_cast<StoreInst>(I))
987 else if (const StoreInst *SI = dyn_cast<StoreInst>(I))
lib/Transforms/Utils/Local.cpp 1288 StoreInst *SI, DIBuilder &Builder) {
1418 if (StoreInst *SI = dyn_cast<StoreInst>(U))
1418 if (StoreInst *SI = dyn_cast<StoreInst>(U))
1426 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
1426 if (StoreInst *SI = dyn_cast<StoreInst>(U)) {
2079 } else if (auto *SI = dyn_cast<StoreInst>(&I)) {
2079 } else if (auto *SI = dyn_cast<StoreInst>(&I)) {
2359 if (isa<LoadInst>(K) || isa<StoreInst>(K))
lib/Transforms/Utils/LoopUnrollAndJam.cpp 599 } else if (auto *St = dyn_cast<StoreInst>(&I)) {
599 } else if (auto *St = dyn_cast<StoreInst>(&I)) {
lib/Transforms/Utils/LoopVersioning.cpp 230 : cast<StoreInst>(OrigInst)->getPointerOperand();
lib/Transforms/Utils/PromoteMemoryToRegister.cpp 76 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) {
76 } else if (const StoreInst *SI = dyn_cast<StoreInst>(U)) {
112 StoreInst *OnlyStore;
138 if (StoreInst *SI = dyn_cast<StoreInst>(User)) {
138 if (StoreInst *SI = dyn_cast<StoreInst>(User)) {
193 (isa<StoreInst>(I) && isa<AllocaInst>(I->getOperand(1)));
322 if (isa<LoadInst>(I) || isa<StoreInst>(I))
350 StoreInst *OnlyStore = Info.OnlyStore;
455 using StoresByIndexTy = SmallVector<std::pair<unsigned, StoreInst *>, 64>;
459 if (StoreInst *SI = dyn_cast<StoreInst>(U))
459 if (StoreInst *SI = dyn_cast<StoreInst>(U))
511 StoreInst *SI = cast<StoreInst>(AI->user_back());
511 StoreInst *SI = cast<StoreInst>(AI->user_back());
794 if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
794 if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
956 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
956 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) {
lib/Transforms/Utils/SSAUpdater.cpp 345 SomeVal = cast<StoreInst>(Insts[0])->getOperand(0);
378 if (StoreInst *SI = dyn_cast<StoreInst>(User)) {
378 if (StoreInst *SI = dyn_cast<StoreInst>(User)) {
391 if (isa<StoreInst>(I)) {
430 if (StoreInst *SI = dyn_cast<StoreInst>(&I)) {
430 if (StoreInst *SI = dyn_cast<StoreInst>(&I)) {
lib/Transforms/Utils/SimplifyCFG.cpp 1503 if (isa<StoreInst>(I0) && any_of(Insts, [](const Instruction *I) {
1886 StoreInst *StoreToHoist = dyn_cast<StoreInst>(I);
1886 StoreInst *StoreToHoist = dyn_cast<StoreInst>(I);
1904 if (CurI.mayHaveSideEffects() && !isa<StoreInst>(CurI))
1907 if (auto *SI = dyn_cast<StoreInst>(&CurI)) {
1907 if (auto *SI = dyn_cast<StoreInst>(&CurI)) {
1986 StoreInst *SpeculatedStore = nullptr;
2015 SpeculatedStore = cast<StoreInst>(I);
2879 static StoreInst *findUniqueStoreInBlocks(BasicBlock *BB1, BasicBlock *BB2) {
2880 StoreInst *S = nullptr;
2885 if (auto *SI = dyn_cast<StoreInst>(&I)) {
2885 if (auto *SI = dyn_cast<StoreInst>(&I)) {
2956 StoreInst *PStore = findUniqueStoreInBlocks(PTB, PFB);
2957 StoreInst *QStore = findUniqueStoreInBlocks(QTB, QFB);
3007 if (auto *S = dyn_cast<StoreInst>(&I))
3007 if (auto *S = dyn_cast<StoreInst>(&I))
3025 const SmallVector<StoreInst *, 2> FreeStores = {PStore, QStore};
3072 StoreInst *SI = cast<StoreInst>(QB.CreateStore(QPHI, Address));
3072 StoreInst *SI = cast<StoreInst>(QB.CreateStore(QPHI, Address));
3192 if (StoreInst *SI = dyn_cast<StoreInst>(&I))
3192 if (StoreInst *SI = dyn_cast<StoreInst>(&I))
3199 if (StoreInst *SI = dyn_cast<StoreInst>(&I))
3199 if (StoreInst *SI = dyn_cast<StoreInst>(&I))
4179 if (auto *SI = dyn_cast<StoreInst>(BBI)) {
4179 if (auto *SI = dyn_cast<StoreInst>(BBI)) {
6001 if (StoreInst *SI = dyn_cast<StoreInst>(Use))
6001 if (StoreInst *SI = dyn_cast<StoreInst>(Use))
lib/Transforms/Utils/VNCoercion.cpp 219 StoreInst *DepSI, const DataLayout &DL) {
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp 139 unsigned getAlignment(StoreInst *SI) const {
306 if (StoreInst *S = dyn_cast<StoreInst>(I))
306 if (StoreInst *S = dyn_cast<StoreInst>(I))
619 if (isa<LoadInst>(I) || isa<StoreInst>(I)) {
675 if (isa<StoreInst>(MemInstr) && ChainLoad &&
680 if (MemLoad && isa<StoreInst>(ChainInstr) &&
796 } else if (StoreInst *SI = dyn_cast<StoreInst>(&I)) {
796 } else if (StoreInst *SI = dyn_cast<StoreInst>(&I)) {
941 StoreInst *S0 = cast<StoreInst>(Chain[0]);
941 StoreInst *S0 = cast<StoreInst>(Chain[0]);
946 StoreTy = cast<StoreInst>(I)->getValueOperand()->getType();
1050 StoreInst *Store = cast<StoreInst>(Chain[I]);
1050 StoreInst *Store = cast<StoreInst>(Chain[I]);
1065 StoreInst *Store = cast<StoreInst>(Chain[I]);
1065 StoreInst *Store = cast<StoreInst>(Chain[I]);
1077 StoreInst *SI = Builder.CreateAlignedStore(
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp 729 if (auto *ST = dyn_cast<StoreInst>(&I)) {
729 if (auto *ST = dyn_cast<StoreInst>(&I)) {
904 auto *SI = dyn_cast<StoreInst>(&I);
904 auto *SI = dyn_cast<StoreInst>(&I);
lib/Transforms/Vectorize/LoopVectorize.cpp 312 return cast<StoreInst>(I)->getValueOperand()->getType();
904 if (LVer && (isa<LoadInst>(Orig) || isa<StoreInst>(Orig)))
1222 bool SI = isa<StoreInst>(V);
1244 if (isa<LoadInst>(I) || isa<StoreInst>(I))
2308 cast<StoreInst>(Member)->getValueOperand(), Part);
2349 StoreInst *SI = dyn_cast<StoreInst>(Instr);
2349 StoreInst *SI = dyn_cast<StoreInst>(Instr);
4381 if (auto *Store = dyn_cast<StoreInst>(MemAccess))
4381 if (auto *Store = dyn_cast<StoreInst>(MemAccess))
4417 return isa<LoadInst>(U) || isa<StoreInst>(U);
4443 } else if (auto *Store = dyn_cast<StoreInst>(&I)) {
4443 } else if (auto *Store = dyn_cast<StoreInst>(&I)) {
4493 ((isa<LoadInst>(J) || isa<StoreInst>(J)) &&
4620 StoreInst *SI = dyn_cast<StoreInst>(I);
4620 StoreInst *SI = dyn_cast<StoreInst>(I);
5085 if (!isa<LoadInst>(I) && !isa<StoreInst>(I) && !isa<PHINode>(I))
5098 if (auto *ST = dyn_cast<StoreInst>(&I))
5098 if (auto *ST = dyn_cast<StoreInst>(&I))
5506 (isa<StoreInst>(I) &&
5805 StoreInst *SI = cast<StoreInst>(I);
5805 StoreInst *SI = cast<StoreInst>(I);
5925 if (isa<StoreInst>(I) && TTI.supportsEfficientVectorElementLoadStore())
5953 if (isa<StoreInst>(&I) && isScalarWithPredication(&I))
6747 if (!isa<LoadInst>(I) && !isa<StoreInst>(I))
6914 if (isa<LoadInst>(I) || isa<StoreInst>(I)) {
lib/Transforms/Vectorize/SLPVectorizer.cpp 448 StoreInst *SI = cast<StoreInst>(UserInst);
448 StoreInst *SI = cast<StoreInst>(UserInst);
467 if (StoreInst *SI = dyn_cast<StoreInst>(I))
467 if (StoreInst *SI = dyn_cast<StoreInst>(I))
478 if (StoreInst *SI = dyn_cast<StoreInst>(I))
478 if (StoreInst *SI = dyn_cast<StoreInst>(I))
498 using StoreList = SmallVector<StoreInst *, 8>;
2190 if (StoreInst *SI = dyn_cast<StoreInst>(S.OpValue))
2190 if (StoreInst *SI = dyn_cast<StoreInst>(S.OpValue))
2911 if (StoreInst *SI = dyn_cast<StoreInst>(VL[0]))
2911 if (StoreInst *SI = dyn_cast<StoreInst>(VL[0]))
3183 MaybeAlign alignment(cast<StoreInst>(VL0)->getAlignment());
3522 if (StoreInst *SI = dyn_cast<StoreInst>(VL[0]))
3522 if (StoreInst *SI = dyn_cast<StoreInst>(VL[0]))
3677 if (StoreInst *SI = dyn_cast<StoreInst>(S.OpValue))
3677 if (StoreInst *SI = dyn_cast<StoreInst>(S.OpValue))
3732 if (StoreInst *SI = dyn_cast<StoreInst>(VL0))
3732 if (StoreInst *SI = dyn_cast<StoreInst>(VL0))
4053 StoreInst *SI = cast<StoreInst>(VL0);
4053 StoreInst *SI = cast<StoreInst>(VL0);
4062 StoreInst *ST = Builder.CreateStore(VecValue, VecPtr);
4926 if (auto *Store = dyn_cast<StoreInst>(V))
4926 if (auto *Store = dyn_cast<StoreInst>(V))
5376 cast<StoreInst>(Chain[i]))
5392 bool SLPVectorizerPass::vectorizeStores(ArrayRef<StoreInst *> Stores,
5394 SetVector<StoreInst *> Heads;
5395 SmallDenseSet<StoreInst *> Tails;
5396 SmallDenseMap<StoreInst *, StoreInst *> ConsecutiveChain;
5396 SmallDenseMap<StoreInst *, StoreInst *> ConsecutiveChain;
5429 for (auto *SI : llvm::reverse(Heads)) {
5436 StoreInst *I = SI;
5471 if (auto *SI = dyn_cast<StoreInst>(&I)) {
5471 if (auto *SI = dyn_cast<StoreInst>(&I)) {
6993 if (ShouldStartVectorizeHorAtStore || !isa<StoreInst>(it)) {
lib/Transforms/Vectorize/VPlanHCFGTransforms.cpp 58 if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst))
lib/Transforms/Vectorize/VPlanSLP.cpp 150 return cast<StoreInst>(cast<VPInstruction>(Op)->getUnderlyingInstr())
tools/bugpoint/Miscompilation.cpp 900 new StoreInst(CastedResolver, Cache, LookupBB);
tools/clang/lib/CodeGen/CGAtomic.cpp 560 llvm::StoreInst *Store = CGF.Builder.CreateStore(LoadVal1, Ptr);
1961 llvm::StoreInst *store = Builder.CreateStore(intValue, addr);
tools/clang/lib/CodeGen/CGBuilder.h 107 llvm::StoreInst *CreateStore(llvm::Value *Val, Address Addr,
114 llvm::StoreInst *CreateAlignedStore(llvm::Value *Val, llvm::Value *Addr,
121 llvm::StoreInst *CreateDefaultAlignedStore(llvm::Value *Val,
135 llvm::StoreInst *CreateFlagStore(bool Value, llvm::Value *Addr) {
tools/clang/lib/CodeGen/CGBuiltin.cpp 343 llvm::StoreInst *Store =
2846 llvm::StoreInst *Store =
2989 StoreInst *Store = Builder.CreateStore(NewVal, Ptr, Volatile);
3021 StoreInst *Store = Builder.CreateStore(NewVal, Ptr, Volatile);
11354 StoreInst *SI = Builder.CreateDefaultAlignedStore(Src, BC);
tools/clang/lib/CodeGen/CGCall.cpp 2731 static llvm::StoreInst *findDominatingStoreToReturnValue(CodeGenFunction &CGF) {
2736 auto *SI = dyn_cast<llvm::StoreInst>(U);
2736 auto *SI = dyn_cast<llvm::StoreInst>(U);
2775 llvm::StoreInst *store =
2867 if (llvm::StoreInst *SI =
tools/clang/lib/CodeGen/CGClass.cpp 2497 llvm::StoreInst *Store = Builder.CreateStore(VTableAddressPoint, VTableField);
tools/clang/lib/CodeGen/CGCleanup.cpp 306 auto store = new llvm::StoreInst(value, addr.getPointer(), beforeInst);
tools/clang/lib/CodeGen/CGExpr.cpp 128 auto *Store = new llvm::StoreInst(Init, Var.getPointer());
128 auto *Store = new llvm::StoreInst(Init, Var.getPointer());
1753 llvm::StoreInst *Store = Builder.CreateStore(Value, Addr, Volatile);
tools/clang/lib/CodeGen/CGObjC.cpp 1358 llvm::StoreInst *store = Builder.CreateStore(load, ivarAddr);
tools/clang/lib/CodeGen/CGVTables.cpp 204 return isa<llvm::StoreInst>(I) &&
tools/clang/lib/CodeGen/CodeGenFunction.h 1036 auto store = new llvm::StoreInst(value, addr.getPointer(), &block->back());
tools/lldb/source/Expression/IRInterpreter.cpp 1358 const StoreInst *store_inst = dyn_cast<StoreInst>(inst);
1358 const StoreInst *store_inst = dyn_cast<StoreInst>(inst);
tools/lldb/source/Plugins/ExpressionParser/Clang/IRDynamicChecks.cpp 334 else if (llvm::StoreInst *si = dyn_cast<llvm::StoreInst>(inst))
334 else if (llvm::StoreInst *si = dyn_cast<llvm::StoreInst>(inst))
358 if (dyn_cast<llvm::LoadInst>(&i) || dyn_cast<llvm::StoreInst>(&i))
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp 396 StoreInst *synthesized_store =
397 new StoreInst(initializer, new_result_global, first_entry_instruction);
1521 if (StoreInst *store = dyn_cast<StoreInst>(&inst))
1521 if (StoreInst *store = dyn_cast<StoreInst>(&inst))
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.h 469 llvm::StoreInst *m_result_store; ///< If non-NULL, the store instruction that
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp 188 (new llvm::StoreInst(new_func_cast, new_func_ptr, call_inst))
tools/llvm-diff/DiffConsumer.cpp 53 if (isa<StoreInst>(V)) {
55 printValue(cast<StoreInst>(V)->getPointerOperand(), isL);
tools/llvm-stress/llvm-stress.cpp 367 new StoreInst(Val, Ptr, BB->getTerminator());
tools/polly/include/polly/CodeGen/BlockGenerators.h 543 void generateArrayStore(ScopStmt &Stmt, StoreInst *store, ValueMapT &BBMap,
741 void copyStore(ScopStmt &Stmt, StoreInst *Store, ValueMapT &VectorMap,
tools/polly/include/polly/Support/ScopHelper.h 82 /* implicit */ MemAccInst(llvm::StoreInst &SI) : I(&SI) {}
83 /* implicit */ MemAccInst(llvm::StoreInst *SI) : I(SI) {}
90 return llvm::isa<llvm::LoadInst>(V) || llvm::isa<llvm::StoreInst>(V) ||
94 return llvm::isa<llvm::LoadInst>(V) || llvm::isa<llvm::StoreInst>(V) ||
135 MemAccInst &operator=(llvm::StoreInst &SI) {
139 MemAccInst &operator=(llvm::StoreInst *SI) {
260 bool isStore() const { return I && llvm::isa<llvm::StoreInst>(I); }
269 llvm::StoreInst *asStore() const { return llvm::cast<llvm::StoreInst>(I); }
269 llvm::StoreInst *asStore() const { return llvm::cast<llvm::StoreInst>(I); }
tools/polly/lib/Analysis/ScopBuilder.cpp 1387 if (!isa<LoadInst>(Inst) && !isa<StoreInst>(Inst))
1426 auto *MallocStore = dyn_cast<StoreInst>(user);
1426 auto *MallocStore = dyn_cast<StoreInst>(user);
1457 if (!isa<LoadInst>(Inst) && !isa<StoreInst>(Inst))
1972 (SplitOnStore && isa<StoreInst>(Inst))) {
2112 if (!MainInst && (isa<StoreInst>(Inst) ||
3091 auto *Store = dyn_cast<StoreInst>(StoreMA->getAccessInstruction());
3091 auto *Store = dyn_cast<StoreInst>(StoreMA->getAccessInstruction());
3568 if (isa<StoreInst>(Inst))
tools/polly/lib/Analysis/ScopDetection.cpp 1234 Context.hasStores |= isa<StoreInst>(MemInst);
1593 MemStore |= isa<StoreInst>(&I);
tools/polly/lib/CodeGen/BlockGenerators.cpp 329 void BlockGenerator::generateArrayStore(ScopStmt &Stmt, StoreInst *Store,
376 if (auto *Store = dyn_cast<StoreInst>(Inst)) {
376 if (auto *Store = dyn_cast<StoreInst>(Inst)) {
1190 ScopStmt &Stmt, StoreInst *Store, ValueMapT &VectorMap,
1209 StoreInst *Store = Builder.CreateStore(Vector, VectorPtr);
1308 if (auto *Store = dyn_cast<StoreInst>(Inst)) {
1308 if (auto *Store = dyn_cast<StoreInst>(Inst)) {
tools/polly/lib/Exchange/JSONExporter.cpp 453 } else if (StoreInst *StoreI =
454 dyn_cast<StoreInst>(MA->getAccessInstruction())) {
tools/polly/lib/Support/VirtualInstruction.cpp 174 if (isa<LoadInst>(Inst) || isa<StoreInst>(Inst))
tools/polly/lib/Transform/DeLICM.cpp 1274 if (!isa<StoreInst>(MA->getAccessInstruction())) {
tools/polly/lib/Transform/RewriteByReferenceParameters.cpp 75 new StoreInst(LoadedVal, NewAlloca, &Inst);
tools/polly/lib/Transform/Simplify.cpp 269 isa<StoreInst>(MA->getAccessInstruction()))) {
439 (isa<StoreInst>(MA->getAccessInstruction()) ||
tools/polly/lib/Transform/ZoneAlgo.cpp 888 return isa<StoreInst>(AccInst) || isa<LoadInst>(AccInst);
unittests/Analysis/AliasAnalysisTest.cpp 177 auto *Store1 = new StoreInst(Value, Addr, BB);
177 auto *Store1 = new StoreInst(Value, Addr, BB);
unittests/Analysis/MemorySSATest.cpp 134 StoreInst *EntryStore = B.CreateStore(B.getInt8(16), PointerArg);
158 StoreInst *LeftStore = B.CreateStore(B.getInt8(16), PointerArg);
183 StoreInst *SecondEntryStore = B.CreateStore(B.getInt8(16), PointerArg);
224 StoreInst *SI = B.CreateStore(B.getInt8(16), PointerArg);
306 StoreInst *EntryStore = B.CreateStore(B.getInt8(16), PointerArg);
309 StoreInst *SideStore = B.CreateStore(B.getInt8(16), PointerArg);
342 StoreInst *EntryStore = B.CreateStore(B.getInt8(16), PointerArg);
345 auto *SideStore = B.CreateStore(B.getInt8(16), PointerArg);
388 StoreInst *EntryStore = B.CreateStore(B.getInt8(16), PointerArg);
391 auto *SideStore = B.CreateStore(B.getInt8(16), PointerArg);
432 StoreInst *EntryStore = B.CreateStore(B.getInt8(16), PointerArg);
435 auto *SideStore = B.CreateStore(B.getInt8(16), PointerArg);
489 StoreInst *StoreInst = B.CreateStore(B.getInt8(16), PointerArg);
534 StoreInst *StoreInst = B.CreateStore(B.getInt8(16), PointerArg);
602 StoreInst *S1 = B.CreateStore(ConstantInt::get(Int8, 0), Alloca);
603 StoreInst *S2 = B.CreateStore(ConstantInt::get(Int8, 1), Alloca);
604 StoreInst *S3 = B.CreateStore(ConstantInt::get(Int8, 2), Alloca);
611 for (StoreInst *V : {S1, S2, S3}) {
663 StoreInst *SI = B.CreateStore(ConstantInt::get(Int8, 0), Alloca);
835 StoreInst *StoreA0 = B.CreateStore(ConstantInt::get(Int8, 0), A);
836 StoreInst *StoreB = B.CreateStore(ConstantInt::get(Int8, 0), B_);
838 StoreInst *StoreA1 = B.CreateStore(ConstantInt::get(Int8, 4), A);
839 StoreInst *StoreC = B.CreateStore(ConstantInt::get(Int8, 4), C);
840 StoreInst *StoreA2 = B.CreateStore(ConstantInt::get(Int8, 4), A);
931 StoreInst *StoreA = B.CreateStore(B.getInt8(0), A);
932 StoreInst *StoreB = B.CreateStore(B.getInt8(0), A);
977 StoreInst *StoreX1 = B.CreateStore(B.getInt8(0), X);
978 StoreInst *StoreY = B.CreateStore(B.getInt8(0), Y);
979 StoreInst *StoreX2 = B.CreateStore(B.getInt8(0), X);
1053 StoreInst *SA1 = B.CreateStore(ConstantInt::get(Int8, 1), AllocaA);
1054 StoreInst *SB1 = B.CreateStore(ConstantInt::get(Int8, 1), AllocaB);
1055 StoreInst *SA2 = B.CreateStore(ConstantInt::get(Int8, 2), AllocaA);
1056 StoreInst *SB2 = B.CreateStore(ConstantInt::get(Int8, 2), AllocaB);
1057 StoreInst *SA3 = B.CreateStore(ConstantInt::get(Int8, 3), AllocaA);
1058 StoreInst *SB3 = B.CreateStore(ConstantInt::get(Int8, 3), AllocaB);
1065 for (StoreInst *V : {SA1, SB1, SA2, SB2, SA3, SB3}) {
1149 StoreInst *SA1 = B.CreateStore(ConstantInt::get(Int8, 0), PointerA);
1151 StoreInst *SB1 = B.CreateStore(ConstantInt::get(Int8, 1), PointerB);
1153 StoreInst *SC1 = B.CreateStore(ConstantInt::get(Int8, 2), AllocaC);
1155 StoreInst *SA2 = B.CreateStore(ConstantInt::get(Int8, 3), PointerA);
1157 StoreInst *SB2 = B.CreateStore(ConstantInt::get(Int8, 4), PointerB);
1159 StoreInst *SC2 = B.CreateStore(ConstantInt::get(Int8, 5), AllocaC);
1161 StoreInst *SB3 = B.CreateStore(ConstantInt::get(Int8, 6), PointerB);
1162 std::initializer_list<StoreInst *> Sts = {SA1, SB1, SC1, SA2, SB2, SC2, SB3};
1169 for (StoreInst *V : Sts) {
1179 for (StoreInst *V : Sts)
1183 for (StoreInst *V : Sts) {
1290 StoreInst *StoreEntry = B.CreateStore(B.getInt8(0), Alloca);
1294 StoreInst *StoreA = B.CreateStore(B.getInt8(1), Alloca);
1298 StoreInst *StoreB = B.CreateStore(B.getInt8(2), Alloca);
1342 StoreInst *StoreA = B.CreateStore(ConstantInt::get(Int8, 0), AllocA);
1343 StoreInst *StoreB = B.CreateStore(ConstantInt::get(Int8, 1), AllocB);
1344 StoreInst *StoreA2 = B.CreateStore(ConstantInt::get(Int8, 2), AllocA);
1428 StoreInst *S1 = B.CreateStore(B.getInt8(16), PointerArg);
1482 StoreInst *S1 = B.CreateStore(B.getInt8(16), PointerArg);
1490 StoreInst *S2 = B.CreateStore(B.getInt8(16), PointerArg);
unittests/Analysis/SparsePropagation.cpp 150 return visitStore(*cast<StoreInst>(&I), ChangedValues, SS);
202 void visitStore(StoreInst &I,
unittests/Analysis/TBAATest.cpp 33 static StoreInst *getFunctionWithSingleStore(Module *M, StringRef Name) {
40 auto *SI = new StoreInst(ConstantInt::get(IntType, 42),
40 auto *SI = new StoreInst(ConstantInt::get(IntType, 42),
48 auto *SI = getFunctionWithSingleStore(&M, "f1");
69 auto *SI = getFunctionWithSingleStore(&M, "f2");
usr/include/c++/7.4.0/type_traits 1983 { typedef _Up type; };