Lines Matching defs:What
1149 // Move What before Where in the MemorySSA IR.
1151 void MemorySSAUpdater::moveTo(MemoryUseOrDef *What, BasicBlock *BB,
1153 // Mark MemoryPhi users of What not to be optimized.
1154 for (auto *U : What->users())
1159 What->replaceAllUsesWith(What->getDefiningAccess());
1162 MSSA->moveTo(What, BB, Where);
1165 if (auto *MD = dyn_cast<MemoryDef>(What))
1168 insertUse(cast<MemoryUse>(What), /*RenameUses=*/true);
1175 // Move What before Where in the MemorySSA IR.
1176 void MemorySSAUpdater::moveBefore(MemoryUseOrDef *What, MemoryUseOrDef *Where) {
1177 moveTo(What, Where->getBlock(), Where->getIterator());
1180 // Move What after Where in the MemorySSA IR.
1181 void MemorySSAUpdater::moveAfter(MemoryUseOrDef *What, MemoryUseOrDef *Where) {
1182 moveTo(What, Where->getBlock(), ++Where->getIterator());
1185 void MemorySSAUpdater::moveToPlace(MemoryUseOrDef *What, BasicBlock *BB,
1188 return moveTo(What, BB, Where);
1191 return moveBefore(What, Where);
1193 return moveTo(What, BB, MemorySSA::InsertionPlace::End);