Lines Matching refs:MA
104 if (MemoryAccess *MA = MSSA->getMemoryAccess(BB)) in emitBasicBlockStartAnnot() local
105 OS << "; " << *MA << "\n"; in emitBasicBlockStartAnnot()
110 if (MemoryAccess *MA = MSSA->getMemoryAccess(I)) in emitInstructionAnnot() local
111 OS << "; " << *MA << "\n"; in emitInstructionAnnot()
128 if (MemoryAccess *MA = MSSA->getMemoryAccess(BB)) in emitBasicBlockStartAnnot() local
129 OS << "; " << *MA << "\n"; in emitBasicBlockStartAnnot()
134 if (MemoryAccess *MA = MSSA->getMemoryAccess(I)) { in emitInstructionAnnot() local
135 MemoryAccess *Clobber = Walker->getClobberingMemoryAccess(MA, BAA); in emitInstructionAnnot()
136 OS << "; " << *MA; in emitInstructionAnnot()
419 for (const auto *MA : def_chain(MAP.first)) { in checkClobberSanity() local
420 if (MA == ClobberAt) { in checkClobberSanity()
421 if (const auto *MD = dyn_cast<MemoryDef>(MA)) { in checkClobberSanity()
437 assert(!MSSA.isLiveOnEntryDef(MA) && "Hit liveOnEntry before clobber?"); in checkClobberSanity()
439 if (const auto *MD = dyn_cast<MemoryDef>(MA)) { in checkClobberSanity()
449 if (const auto *MU = dyn_cast<MemoryUse>(MA)) { in checkClobberSanity()
456 assert(isa<MemoryPhi>(MA)); in checkClobberSanity()
460 {const_cast<MemoryAccess *>(MA), MAP.second}, in checkClobberSanity()
871 for (auto *MA : def_chain(const_cast<MemoryAccess *>(Target))) in tryOptimizePhi() local
872 DefChainEnd = MA; in tryOptimizePhi()
1019 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, BatchAAResults &BAA, in getClobberingMemoryAccess() argument
1021 return Walker->getClobberingMemoryAccessBase(MA, BAA, UWL, false); in getClobberingMemoryAccess()
1023 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess() argument
1026 return Walker->getClobberingMemoryAccessBase(MA, Loc, BAA, UWL); in getClobberingMemoryAccess()
1030 MemoryAccess *MA, BatchAAResults &BAA, unsigned &UWL) { in getClobberingMemoryAccessWithoutInvariantGroup() argument
1031 return Walker->getClobberingMemoryAccessBase(MA, BAA, UWL, false, false); in getClobberingMemoryAccessWithoutInvariantGroup()
1034 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess() argument
1037 return getClobberingMemoryAccess(MA, BAA, UpwardWalkLimit); in getClobberingMemoryAccess()
1039 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess() argument
1043 return getClobberingMemoryAccess(MA, Loc, BAA, UpwardWalkLimit); in getClobberingMemoryAccess()
1046 void invalidateInfo(MemoryAccess *MA) override { in invalidateInfo() argument
1047 if (auto *MUD = dyn_cast<MemoryUseOrDef>(MA)) in invalidateInfo()
1062 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, BatchAAResults &BAA, in getClobberingMemoryAccess() argument
1064 return Walker->getClobberingMemoryAccessBase(MA, BAA, UWL, true); in getClobberingMemoryAccess()
1066 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess() argument
1069 return Walker->getClobberingMemoryAccessBase(MA, Loc, BAA, UWL); in getClobberingMemoryAccess()
1072 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess() argument
1075 return getClobberingMemoryAccess(MA, BAA, UpwardWalkLimit); in getClobberingMemoryAccess()
1077 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess() argument
1081 return getClobberingMemoryAccess(MA, Loc, BAA, UpwardWalkLimit); in getClobberingMemoryAccess()
1084 void invalidateInfo(MemoryAccess *MA) override { in invalidateInfo() argument
1085 if (auto *MUD = dyn_cast<MemoryUseOrDef>(MA)) in invalidateInfo()
1251 for (MemoryAccess &MA : *Pair.second) in ~MemorySSA()
1252 MA.dropAllReferences(); in ~MemorySSA()
1354 for (MemoryAccess &MA : *Accesses) { in optimizeUsesInBlock()
1355 auto *MU = dyn_cast<MemoryUse>(&MA); in optimizeUsesInBlock()
1357 VersionStack.push_back(&MA); in optimizeUsesInBlock()
1588 *Accesses, [](const MemoryAccess &MA) { return isa<MemoryPhi>(MA); }); in insertIntoListsForBlock() argument
1593 *Defs, [](const MemoryAccess &MA) { return isa<MemoryPhi>(MA); }); in insertIntoListsForBlock() argument
1794 void MemorySSA::removeFromLookups(MemoryAccess *MA) { in removeFromLookups() argument
1795 assert(MA->use_empty() && in removeFromLookups()
1797 BlockNumbering.erase(MA); in removeFromLookups()
1798 if (auto *MUD = dyn_cast<MemoryUseOrDef>(MA)) in removeFromLookups()
1801 if (!isa<MemoryUse>(MA)) in removeFromLookups()
1802 getWalker()->invalidateInfo(MA); in removeFromLookups()
1805 if (const auto *MUD = dyn_cast<MemoryUseOrDef>(MA)) in removeFromLookups()
1808 MemoryInst = MA->getBlock(); in removeFromLookups()
1811 if (VMA->second == MA) in removeFromLookups()
1821 void MemorySSA::removeFromLists(MemoryAccess *MA, bool ShouldDelete) { in removeFromLists() argument
1822 BasicBlock *BB = MA->getBlock(); in removeFromLists()
1825 if (!isa<MemoryUse>(MA)) { in removeFromLists()
1828 Defs->remove(*MA); in removeFromLists()
1838 Accesses->erase(MA); in removeFromLists()
1840 Accesses->remove(MA); in removeFromLists()
1934 for (const MemoryAccess &MA : *Accesses) { in verifyDominationNumbers()
1935 auto ThisNumberIter = BlockNumbering.find(&MA); in verifyDominationNumbers()
1991 MemoryUseOrDef *MA = getMemoryAccess(&I); in verifyOrderingDominationAndDefUses() local
1992 assert((!MA || (AL && (isa<MemoryUse>(MA) || DL))) && in verifyOrderingDominationAndDefUses()
1996 if (MA) { in verifyOrderingDominationAndDefUses()
1998 ActualAccesses.push_back(MA); in verifyOrderingDominationAndDefUses()
1999 if (MemoryAccess *MD = dyn_cast<MemoryDef>(MA)) { in verifyOrderingDominationAndDefUses()
2001 ActualDefs.push_back(MA); in verifyOrderingDominationAndDefUses()
2011 verifyUseInDefs(MA->getDefiningAccess(), MA); in verifyOrderingDominationAndDefUses()
2182 MemoryAccess *MA = cast<MemoryAccess>(Op); in print() local
2190 if (unsigned ID = MA->getID()) in print()
2490 MemoryAccess *MA, BatchAAResults &BAA, unsigned &UpwardWalkLimit, in getClobberingMemoryAccessBase() argument
2492 auto *StartingAccess = dyn_cast<MemoryUseOrDef>(MA); in getClobberingMemoryAccessBase()
2495 return MA; in getClobberingMemoryAccessBase()
2575 DoNothingMemorySSAWalker::getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess() argument
2577 if (auto *Use = dyn_cast<MemoryUseOrDef>(MA)) in getClobberingMemoryAccess()
2579 return MA; in getClobberingMemoryAccess()