Lines Matching refs:MemoryAccess
115 if (MemoryAccess *MA = MSSA->getMemoryAccess(BB)) in emitBasicBlockStartAnnot()
121 if (MemoryAccess *MA = MSSA->getMemoryAccess(I)) in emitInstructionAnnot()
345 const MemoryAccess *OriginalAccess = nullptr;
351 UpwardsMemoryQuery(const Instruction *Inst, const MemoryAccess *Access) in UpwardsMemoryQuery()
403 checkClobberSanity(const MemoryAccess *Start, MemoryAccess *ClobberAt, in checkClobberSanity()
474 {const_cast<MemoryAccess *>(MA), MAP.second}, in checkClobberSanity()
511 MemoryAccess *First;
512 MemoryAccess *Last;
515 DefPath(const MemoryLocation &Loc, MemoryAccess *First, MemoryAccess *Last, in DefPath()
519 DefPath(const MemoryLocation &Loc, MemoryAccess *Init, in DefPath()
542 const MemoryAccess *getWalkTarget(const MemoryPhi *From) const { in getWalkTarget()
546 MemoryAccess *Result = MSSA.getLiveOnEntryDef(); in getWalkTarget()
560 MemoryAccess *Result;
571 walkToPhiOrClobber(DefPath &Desc, const MemoryAccess *StopAt = nullptr, in walkToPhiOrClobber()
572 const MemoryAccess *SkipStopAt = nullptr) const { in walkToPhiOrClobber()
585 for (MemoryAccess *Current : def_chain(Desc.Last)) { in walkToPhiOrClobber()
627 MemoryAccess *Clobber;
640 getBlockingAccess(const MemoryAccess *StopWhere, in getBlockingAccess()
681 const MemoryAccess *SkipStopWhere = nullptr; in getBlockingAccess()
790 OptznResult tryOptimizePhi(MemoryPhi *Phi, MemoryAccess *Start, in tryOptimizePhi()
885 MemoryAccess *DefChainEnd = nullptr; in tryOptimizePhi()
900 for (auto *MA : def_chain(const_cast<MemoryAccess *>(Target))) in tryOptimizePhi()
958 MemoryAccess *findClobber(MemoryAccess *Start, UpwardsMemoryQuery &Q, in findClobber()
966 MemoryAccess *Current = Start; in findClobber()
976 MemoryAccess *Result; in findClobber()
999 MemoryAccess *IncomingVal;
1002 MemoryAccess *M) in RenamePassData()
1024 MemoryAccess *getClobberingMemoryAccessBase(MemoryAccess *,
1033 MemoryAccess *getClobberingMemoryAccessBase(MemoryAccess *, unsigned &, bool);
1050 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, unsigned &UWL) { in getClobberingMemoryAccess()
1053 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess()
1059 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA) override { in getClobberingMemoryAccess()
1063 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess()
1069 void invalidateInfo(MemoryAccess *MA) override { in invalidateInfo()
1086 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, unsigned &UWL) { in getClobberingMemoryAccess()
1089 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess()
1095 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA) override { in getClobberingMemoryAccess()
1099 MemoryAccess *getClobberingMemoryAccess(MemoryAccess *MA, in getClobberingMemoryAccess()
1105 void invalidateInfo(MemoryAccess *MA) override { in invalidateInfo()
1113 void MemorySSA::renameSuccessorPhis(BasicBlock *BB, MemoryAccess *IncomingVal, in renameSuccessorPhis()
1140 MemoryAccess *MemorySSA::renameBlock(BasicBlock *BB, MemoryAccess *IncomingVal, in renameBlock()
1146 for (MemoryAccess &L : *Accesses) { in renameBlock()
1164 void MemorySSA::renamePass(DomTreeNode *Root, MemoryAccess *IncomingVal, in renamePass()
1272 for (MemoryAccess &MA : *Pair.second) in ~MemorySSA()
1329 SmallVectorImpl<MemoryAccess *> &,
1354 SmallVectorImpl<MemoryAccess *> &VersionStack, in optimizeUsesInBlock()
1376 for (MemoryAccess &MA : *Accesses) { in optimizeUsesInBlock()
1455 MemoryAccess *Result = in optimizeUsesInBlock()
1507 SmallVector<MemoryAccess *, 16> VersionStack; in optimizeUses()
1621 void MemorySSA::insertIntoListsForBlock(MemoryAccess *NewAccess, in insertIntoListsForBlock()
1634 *Accesses, [](const MemoryAccess &MA) { return isa<MemoryPhi>(MA); }); in insertIntoListsForBlock()
1639 *Defs, [](const MemoryAccess &MA) { return isa<MemoryPhi>(MA); }); in insertIntoListsForBlock()
1653 void MemorySSA::insertIntoListsBefore(MemoryAccess *What, const BasicBlock *BB, in insertIntoListsBefore()
1681 void MemorySSA::prepareForMoveTo(MemoryAccess *What, BasicBlock *BB) { in prepareForMoveTo()
1703 void MemorySSA::moveTo(MemoryAccess *What, BasicBlock *BB, in moveTo()
1729 MemoryAccess *Definition, in createDefinedAccess()
1821 bool MemorySSA::dominatesUse(const MemoryAccess *Replacer, in dominatesUse()
1822 const MemoryAccess *Replacee) const { in dominatesUse()
1838 void MemorySSA::removeFromLookups(MemoryAccess *MA) { in removeFromLookups()
1865 void MemorySSA::removeFromLists(MemoryAccess *MA, bool ShouldDelete) { in removeFromLists()
1972 for (const MemoryAccess &MA : *Accesses) { in verifyDominationNumbers()
2000 SmallVector<MemoryAccess *, 32> ActualAccesses; in verifyOrderingDominationAndDefUses()
2001 SmallVector<MemoryAccess *, 32> ActualDefs; in verifyOrderingDominationAndDefUses()
2036 if (MemoryAccess *MD = dyn_cast<MemoryDef>(MA)) { in verifyOrderingDominationAndDefUses()
2087 void MemorySSA::verifyUseInDefs(MemoryAccess *Def, MemoryAccess *Use) const { in verifyUseInDefs()
2118 bool MemorySSA::locallyDominates(const MemoryAccess *Dominator, in locallyDominates()
2119 const MemoryAccess *Dominatee) const { in locallyDominates()
2149 bool MemorySSA::dominates(const MemoryAccess *Dominator, in dominates()
2150 const MemoryAccess *Dominatee) const { in dominates()
2162 bool MemorySSA::dominates(const MemoryAccess *Dominator, in dominates()
2170 return locallyDominates(Dominator, cast<MemoryAccess>(Dominatee)); in dominates()
2173 return dominates(Dominator, cast<MemoryAccess>(Dominatee.getUser())); in dominates()
2178 void MemoryAccess::print(raw_ostream &OS) const { in print()
2188 MemoryAccess *UO = getDefiningAccess(); in print()
2190 auto printID = [&OS](MemoryAccess *A) { in print()
2215 MemoryAccess *MA = cast<MemoryAccess>(Op); in print()
2237 MemoryAccess *UO = getDefiningAccess(); in print()
2249 void MemoryAccess::dump() const { in dump()
2441 MemoryAccess *
2443 MemoryAccess *StartingAccess, const MemoryLocation &Loc, in getClobberingMemoryAccessBase()
2468 MemoryAccess *DefiningAccess = isa<MemoryUse>(StartingUseOrDef) in getClobberingMemoryAccessBase()
2472 MemoryAccess *Clobber = in getClobberingMemoryAccessBase()
2482 MemoryAccess *
2484 MemoryAccess *MA, unsigned &UpwardWalkLimit, bool SkipSelf) { in getClobberingMemoryAccessBase()
2511 MemoryAccess *LiveOnEntry = MSSA->getLiveOnEntryDef(); in getClobberingMemoryAccessBase()
2517 MemoryAccess *OptimizedAccess; in getClobberingMemoryAccessBase()
2520 MemoryAccess *DefiningAccess = StartingAccess->getDefiningAccess(); in getClobberingMemoryAccessBase()
2544 MemoryAccess *Result; in getClobberingMemoryAccessBase()
2559 MemoryAccess *
2560 DoNothingMemorySSAWalker::getClobberingMemoryAccess(MemoryAccess *MA) { in getClobberingMemoryAccess()
2566 MemoryAccess *DoNothingMemorySSAWalker::getClobberingMemoryAccess( in getClobberingMemoryAccess()
2567 MemoryAccess *StartingAccess, const MemoryLocation &) { in getClobberingMemoryAccess()