Lines Matching refs:MA

103     if (MemoryAccess *MA = MSSA->getMemoryAccess(BB))  in emitBasicBlockStartAnnot()  local
104 OS << "; " << *MA << "\n"; in emitBasicBlockStartAnnot()
109 if (MemoryAccess *MA = MSSA->getMemoryAccess(I)) in emitInstructionAnnot() local
110 OS << "; " << *MA << "\n"; in emitInstructionAnnot()
410 for (const auto *MA : def_chain(MAP.first)) { in checkClobberSanity() local
411 if (MA == ClobberAt) { in checkClobberSanity()
412 if (const auto *MD = dyn_cast<MemoryDef>(MA)) { in checkClobberSanity()
432 assert(!MSSA.isLiveOnEntryDef(MA) && "Hit liveOnEntry before clobber?"); in checkClobberSanity()
434 if (const auto *MD = dyn_cast<MemoryDef>(MA)) { in checkClobberSanity()
445 if (const auto *MU = dyn_cast<MemoryUse>(MA)) { in checkClobberSanity()
452 assert(isa<MemoryPhi>(MA)); in checkClobberSanity()
454 upward_defs_begin({const_cast<MemoryAccess *>(MA), MAP.second}), in checkClobberSanity()
840 for (auto *MA : def_chain(const_cast<MemoryAccess *>(Target))) in tryOptimizePhi() local
841 DefChainEnd = MA; in tryOptimizePhi()
983 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA) override;
984 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA,
987 void invalidateInfo(MemoryAccess *MA) override { in invalidateInfo() argument
988 if (auto *MUD = dyn_cast<MemoryUseOrDef>(MA)) in invalidateInfo()
1008 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA) override;
1009 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA,
1012 void invalidateInfo(MemoryAccess *MA) override { in invalidateInfo() argument
1013 if (auto *MUD = dyn_cast<MemoryUseOrDef>(MA)) in invalidateInfo()
1165 for (MemoryAccess &MA : *Pair.second) in ~MemorySSA()
1166 MA.dropAllReferences(); in ~MemorySSA()
1271 for (MemoryAccess &MA : *Accesses) { in optimizeUsesInBlock()
1272 auto *MU = dyn_cast<MemoryUse>(&MA); in optimizeUsesInBlock()
1274 VersionStack.push_back(&MA); in optimizeUsesInBlock()
1524 *Accesses, [](const MemoryAccess &MA) { return isa<MemoryPhi>(MA); }); in insertIntoListsForBlock() argument
1529 *Defs, [](const MemoryAccess &MA) { return isa<MemoryPhi>(MA); }); in insertIntoListsForBlock() argument
1713 void MemorySSA::removeFromLookups(MemoryAccess *MA) { in removeFromLookups() argument
1714 assert(MA->use_empty() && in removeFromLookups()
1716 BlockNumbering.erase(MA); in removeFromLookups()
1717 if (auto *MUD = dyn_cast<MemoryUseOrDef>(MA)) in removeFromLookups()
1720 if (!isa<MemoryUse>(MA)) in removeFromLookups()
1721 Walker->invalidateInfo(MA); in removeFromLookups()
1724 if (const auto *MUD = dyn_cast<MemoryUseOrDef>(MA)) in removeFromLookups()
1727 MemoryInst = MA->getBlock(); in removeFromLookups()
1730 if (VMA->second == MA) in removeFromLookups()
1740 void MemorySSA::removeFromLists(MemoryAccess *MA, bool ShouldDelete) { in removeFromLists() argument
1741 BasicBlock *BB = MA->getBlock(); in removeFromLists()
1744 if (!isa<MemoryUse>(MA)) { in removeFromLists()
1747 Defs->remove(*MA); in removeFromLists()
1757 Accesses->erase(MA); in removeFromLists()
1759 Accesses->remove(MA); in removeFromLists()
1786 void MemorySSA::checkClobberSanityAccess(const MemoryAccess *MA) const { in checkClobberSanityAccess()
1787 if (const auto *MUD = dyn_cast<MemoryUseOrDef>(MA)) { in checkClobberSanityAccess()
1806 for (const MemoryAccess &MA : *Accesses) in verifyClobberSanity()
1807 checkClobberSanityAccess(&MA); in verifyClobberSanity()
1833 for (const MemoryAccess &MA : *Accesses) { in verifyDominationNumbers()
1834 auto ThisNumberIter = BlockNumbering.find(&MA); in verifyDominationNumbers()
1869 MemoryAccess *MA = getMemoryAccess(&I); in verifyOrdering() local
1870 assert((!MA || (AL && (isa<MemoryUse>(MA) || DL))) && in verifyOrdering()
1874 if (MA) { in verifyOrdering()
1875 ActualAccesses.push_back(MA); in verifyOrdering()
1876 if (isa<MemoryDef>(MA)) in verifyOrdering()
1877 ActualDefs.push_back(MA); in verifyOrdering()
1971 if (MemoryUseOrDef *MA = getMemoryAccess(&I)) { in verifyDefUses() local
1972 verifyUseInDefs(MA->getDefiningAccess(), MA); in verifyDefUses()
2095 MemoryAccess *MA = cast<MemoryAccess>(Op); in print() local
2107 if (unsigned ID = MA->getID()) in print()
2251 MemorySSA::ClobberWalkerBase::getClobberingMemoryAccessBase(MemoryAccess *MA, in getClobberingMemoryAccessBase() argument
2253 auto *StartingAccess = dyn_cast<MemoryUseOrDef>(MA); in getClobberingMemoryAccessBase()
2256 return MA; in getClobberingMemoryAccessBase()
2328 MemorySSA::CachingWalker::getClobberingMemoryAccess(MemoryAccess *MA) { in getClobberingMemoryAccess() argument
2329 return Walker->getClobberingMemoryAccessBase(MA, false); in getClobberingMemoryAccess()
2333 MemorySSA::CachingWalker::getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess() argument
2335 return Walker->getClobberingMemoryAccessBase(MA, Loc); in getClobberingMemoryAccess()
2339 MemorySSA::SkipSelfWalker::getClobberingMemoryAccess(MemoryAccess *MA) { in getClobberingMemoryAccess() argument
2340 return Walker->getClobberingMemoryAccessBase(MA, true); in getClobberingMemoryAccess()
2344 MemorySSA::SkipSelfWalker::getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess() argument
2346 return Walker->getClobberingMemoryAccessBase(MA, Loc); in getClobberingMemoryAccess()
2350 DoNothingMemorySSAWalker::getClobberingMemoryAccess(MemoryAccess *MA) { in getClobberingMemoryAccess() argument
2351 if (auto *Use = dyn_cast<MemoryUseOrDef>(MA)) in getClobberingMemoryAccess()
2353 return MA; in getClobberingMemoryAccess()