Lines Matching refs:MA

112     if (MemoryAccess *MA = MSSA->getMemoryAccess(BB))  in emitBasicBlockStartAnnot()  local
113 OS << "; " << *MA << "\n"; in emitBasicBlockStartAnnot()
118 if (MemoryAccess *MA = MSSA->getMemoryAccess(I)) in emitInstructionAnnot() local
119 OS << "; " << *MA << "\n"; in emitInstructionAnnot()
135 if (MemoryAccess *MA = MSSA->getMemoryAccess(BB)) in emitBasicBlockStartAnnot() local
136 OS << "; " << *MA << "\n"; in emitBasicBlockStartAnnot()
141 if (MemoryAccess *MA = MSSA->getMemoryAccess(I)) { in emitInstructionAnnot() local
142 MemoryAccess *Clobber = Walker->getClobberingMemoryAccess(MA); in emitInstructionAnnot()
143 OS << "; " << *MA; in emitInstructionAnnot()
444 for (const auto *MA : def_chain(MAP.first)) { in checkClobberSanity() local
445 if (MA == ClobberAt) { in checkClobberSanity()
446 if (const auto *MD = dyn_cast<MemoryDef>(MA)) { in checkClobberSanity()
466 assert(!MSSA.isLiveOnEntryDef(MA) && "Hit liveOnEntry before clobber?"); in checkClobberSanity()
468 if (const auto *MD = dyn_cast<MemoryDef>(MA)) { in checkClobberSanity()
479 if (const auto *MU = dyn_cast<MemoryUse>(MA)) { in checkClobberSanity()
486 assert(isa<MemoryPhi>(MA)); in checkClobberSanity()
490 {const_cast<MemoryAccess *>(MA), MAP.second}, in checkClobberSanity()
916 for (auto *MA : def_chain(const_cast<MemoryAccess *>(Target))) in tryOptimizePhi() local
917 DefChainEnd = MA; in tryOptimizePhi()
1067 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, unsigned &UWL) { in getClobberingMemoryAccess() argument
1068 return Walker->getClobberingMemoryAccessBase(MA, UWL, false); in getClobberingMemoryAccess()
1070 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess() argument
1073 return Walker->getClobberingMemoryAccessBase(MA, Loc, UWL); in getClobberingMemoryAccess()
1076 MemoryAccess *getClobberingMemoryAccessWithoutInvariantGroup(MemoryAccess *MA, in getClobberingMemoryAccessWithoutInvariantGroup() argument
1078 return Walker->getClobberingMemoryAccessBase(MA, UWL, false, false); in getClobberingMemoryAccessWithoutInvariantGroup()
1081 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA) override { in getClobberingMemoryAccess() argument
1083 return getClobberingMemoryAccess(MA, UpwardWalkLimit); in getClobberingMemoryAccess()
1085 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess() argument
1088 return getClobberingMemoryAccess(MA, Loc, UpwardWalkLimit); in getClobberingMemoryAccess()
1091 void invalidateInfo(MemoryAccess *MA) override { in invalidateInfo() argument
1092 if (auto *MUD = dyn_cast<MemoryUseOrDef>(MA)) in invalidateInfo()
1108 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, unsigned &UWL) { in getClobberingMemoryAccess() argument
1109 return Walker->getClobberingMemoryAccessBase(MA, UWL, true); in getClobberingMemoryAccess()
1111 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess() argument
1114 return Walker->getClobberingMemoryAccessBase(MA, Loc, UWL); in getClobberingMemoryAccess()
1117 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA) override { in getClobberingMemoryAccess() argument
1119 return getClobberingMemoryAccess(MA, UpwardWalkLimit); in getClobberingMemoryAccess()
1121 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess() argument
1124 return getClobberingMemoryAccess(MA, Loc, UpwardWalkLimit); in getClobberingMemoryAccess()
1127 void invalidateInfo(MemoryAccess *MA) override { in invalidateInfo() argument
1128 if (auto *MUD = dyn_cast<MemoryUseOrDef>(MA)) in invalidateInfo()
1294 for (MemoryAccess &MA : *Pair.second) in ~MemorySSA()
1295 MA.dropAllReferences(); in ~MemorySSA()
1398 for (MemoryAccess &MA : *Accesses) { in optimizeUsesInBlock()
1399 auto *MU = dyn_cast<MemoryUse>(&MA); in optimizeUsesInBlock()
1401 VersionStack.push_back(&MA); in optimizeUsesInBlock()
1649 *Accesses, [](const MemoryAccess &MA) { return isa<MemoryPhi>(MA); }); in insertIntoListsForBlock() argument
1654 *Defs, [](const MemoryAccess &MA) { return isa<MemoryPhi>(MA); }); in insertIntoListsForBlock() argument
1843 void MemorySSA::removeFromLookups(MemoryAccess *MA) { in removeFromLookups() argument
1844 assert(MA->use_empty() && in removeFromLookups()
1846 BlockNumbering.erase(MA); in removeFromLookups()
1847 if (auto *MUD = dyn_cast<MemoryUseOrDef>(MA)) in removeFromLookups()
1850 if (!isa<MemoryUse>(MA)) in removeFromLookups()
1851 getWalker()->invalidateInfo(MA); in removeFromLookups()
1854 if (const auto *MUD = dyn_cast<MemoryUseOrDef>(MA)) in removeFromLookups()
1857 MemoryInst = MA->getBlock(); in removeFromLookups()
1860 if (VMA->second == MA) in removeFromLookups()
1870 void MemorySSA::removeFromLists(MemoryAccess *MA, bool ShouldDelete) { in removeFromLists() argument
1871 BasicBlock *BB = MA->getBlock(); in removeFromLists()
1874 if (!isa<MemoryUse>(MA)) { in removeFromLists()
1877 Defs->remove(*MA); in removeFromLists()
1887 Accesses->erase(MA); in removeFromLists()
1889 Accesses->remove(MA); in removeFromLists()
1983 for (const MemoryAccess &MA : *Accesses) { in verifyDominationNumbers()
1984 auto ThisNumberIter = BlockNumbering.find(&MA); in verifyDominationNumbers()
2040 MemoryUseOrDef *MA = getMemoryAccess(&I); in verifyOrderingDominationAndDefUses() local
2041 assert((!MA || (AL && (isa<MemoryUse>(MA) || DL))) && in verifyOrderingDominationAndDefUses()
2045 if (MA) { in verifyOrderingDominationAndDefUses()
2047 ActualAccesses.push_back(MA); in verifyOrderingDominationAndDefUses()
2048 if (MemoryAccess *MD = dyn_cast<MemoryDef>(MA)) { in verifyOrderingDominationAndDefUses()
2050 ActualDefs.push_back(MA); in verifyOrderingDominationAndDefUses()
2060 verifyUseInDefs(MA->getDefiningAccess(), MA); in verifyOrderingDominationAndDefUses()
2234 MemoryAccess *MA = cast<MemoryAccess>(Op); in print() local
2242 if (unsigned ID = MA->getID()) in print()
2569 MemoryAccess *MA, unsigned &UpwardWalkLimit, bool SkipSelf, in getClobberingMemoryAccessBase() argument
2571 auto *StartingAccess = dyn_cast<MemoryUseOrDef>(MA); in getClobberingMemoryAccessBase()
2574 return MA; in getClobberingMemoryAccessBase()
2660 DoNothingMemorySSAWalker::getClobberingMemoryAccess(MemoryAccess *MA) { in getClobberingMemoryAccess() argument
2661 if (auto *Use = dyn_cast<MemoryUseOrDef>(MA)) in getClobberingMemoryAccess()
2663 return MA; in getClobberingMemoryAccess()