Lines Matching refs:SI
54 static void createTypedBufferStore(IntrinsicInst *II, StoreInst *SI, in createTypedBufferStore() argument
56 IRBuilder<> Builder(SI); in createTypedBufferStore()
60 Value *V = SI->getValueOperand(); in createTypedBufferStore()
83 SI->replaceAllUsesWith(Inst); in createTypedBufferStore()
86 static void createRawStore(IntrinsicInst *II, StoreInst *SI, Value *Offset) { in createRawStore() argument
87 IRBuilder<> Builder(SI); in createRawStore()
91 Value *V = SI->getValueOperand(); in createRawStore()
96 SI->replaceAllUsesWith(Inst); in createRawStore()
99 static void createStoreIntrinsic(IntrinsicInst *II, StoreInst *SI, in createStoreIntrinsic() argument
103 return createTypedBufferStore(II, SI, Offset, RTI); in createStoreIntrinsic()
106 return createRawStore(II, SI, Offset); in createStoreIntrinsic()
224 } else if (auto *SI = dyn_cast<StoreInst>(Current.Access)) { in replaceAccess() local
225 assert(SI->getValueOperand() != II && "Pointer escaped!"); in replaceAccess()
226 createStoreIntrinsic(II, SI, Current.Offset, RTI); in replaceAccess()
227 DeadInsts.push_back(SI); in replaceAccess()