Lines Matching refs:MemoryAccess
43 MemoryAccess *MemorySSAUpdater::getPreviousDefRecursive( in getPreviousDefRecursive()
45 DenseMap<BasicBlock *, TrackingVH<MemoryAccess>> &CachedPreviousDef) { in getPreviousDefRecursive()
59 MemoryAccess *Result = getPreviousDefFromEnd(Pred, CachedPreviousDef); in getPreviousDefRecursive()
68 MemoryAccess *Result = MSSA->createMemoryPhi(BB); in getPreviousDefRecursive()
75 SmallVector<TrackingVH<MemoryAccess>, 8> PhiOps; in getPreviousDefRecursive()
81 MemoryAccess *SingleAccess = nullptr; in getPreviousDefRecursive()
144 MemoryAccess *MemorySSAUpdater::getPreviousDef(MemoryAccess *MA) { in getPreviousDef()
147 DenseMap<BasicBlock *, TrackingVH<MemoryAccess>> CachedPreviousDef; in getPreviousDef()
154 MemoryAccess *MemorySSAUpdater::getPreviousDefInBlock(MemoryAccess *MA) { in getPreviousDefInBlock()
170 return cast<MemoryAccess>(&U); in getPreviousDefInBlock()
179 MemoryAccess *MemorySSAUpdater::getPreviousDefFromEnd( in getPreviousDefFromEnd()
181 DenseMap<BasicBlock *, TrackingVH<MemoryAccess>> &CachedPreviousDef) { in getPreviousDefFromEnd()
192 MemoryAccess *MemorySSAUpdater::recursePhi(MemoryAccess *Phi) { in recursePhi()
195 TrackingVH<MemoryAccess> Res(Phi); in recursePhi()
209 MemoryAccess *MemorySSAUpdater::tryRemoveTrivialPhi(MemoryPhi *Phi) { in tryRemoveTrivialPhi()
215 MemoryAccess *MemorySSAUpdater::tryRemoveTrivialPhi(MemoryPhi *Phi, in tryRemoveTrivialPhi()
222 MemoryAccess *Same = nullptr; in tryRemoveTrivialPhi()
230 Same = cast<MemoryAccess>(&*Op); in tryRemoveTrivialPhi()
274 MemoryAccess *FirstDef = &*Defs->begin(); in insertUse()
292 MemoryAccess *NewDef) { in setMemoryPhiValueForBlock()
318 MemoryAccess *DefBefore = getPreviousDef(MD); in insertDef()
401 DenseMap<BasicBlock *, TrackingVH<MemoryAccess>> CachedPreviousDef; in insertDef()
440 MemoryAccess *FirstDef = &*MSSA->getWritableBlockDefs(StartBlock)->begin(); in insertDef()
468 MemoryAccess *NewDef = dyn_cast_or_null<MemoryAccess>(Var); in fixupDefs()
545 MPhi->unorderedDeleteIncomingIf([&](const MemoryAccess *, BasicBlock *B) { in removeDuplicatePhiEdgesBetween() argument
559 static MemoryAccess *onlySingleValue(MemoryPhi *MP) { in onlySingleValue()
560 MemoryAccess *MA = nullptr; in onlySingleValue()
564 MA = cast<MemoryAccess>(Arg); in onlySingleValue()
571 static MemoryAccess *getNewDefiningAccessForClone(MemoryAccess *MA, in getNewDefiningAccessForClone()
576 MemoryAccess *InsnDefining = MA; in getNewDefiningAccessForClone()
601 if (MemoryAccess *NewDefPhi = MPhiMap.lookup(DefPhi)) in getNewDefiningAccessForClone()
615 for (const MemoryAccess &MA : *Acc) { in cloneUsesAndDefs()
627 MemoryAccess *NewUseOrDef = MSSA->createDefinedAccess( in cloneUsesAndDefs()
650 MemoryAccess *UniqueValue = nullptr; in updatePhisWhenInsertingUniqueBackedgeBlock()
653 MemoryAccess *IV = MPhi->getIncomingValue(I); in updatePhisWhenInsertingUniqueBackedgeBlock()
691 MemoryAccess *IncomingAccess = Phi->getIncomingValue(It); in updateForClonedLoop()
721 if (MemoryAccess *NewDefPhi = MPhiMap.lookup(IncPhi)) in updateForClonedLoop()
755 if (MemoryAccess *NewPhi = MPhiMap.lookup(MPhi)) in updateForClonedLoop()
861 auto GetLastDef = [&](BasicBlock *BB) -> MemoryAccess * { in applyInsertUpdates()
1017 SmallDenseMap<BasicBlock *, MemoryAccess *> LastDefAddedPred; in applyInsertUpdates()
1037 MemoryAccess *DefP1 = GetLastDef(P1); in applyInsertUpdates()
1134 MemoryAccess *Usr = cast<MemoryAccess>(U.getUser()); in applyInsertUpdates()
1215 MemoryAccess *FirstInNew = nullptr; in moveAllAccesses()
1286 Phi->unorderedDeleteIncomingIf([&](MemoryAccess *MA, BasicBlock *B) { in wireOldPredecessorsToNewImmediatePredecessor()
1300 void MemorySSAUpdater::removeMemoryAccess(MemoryAccess *MA, bool OptimizePhis) { in removeMemoryAccess()
1305 MemoryAccess *NewDefTarget = nullptr; in removeMemoryAccess()
1381 for (MemoryAccess &MA : *Acc) in removeBlocks()
1391 MemoryAccess *MA = &*AB; in removeBlocks()
1442 MemoryAccess *MemorySSAUpdater::createMemoryAccessInBB( in createMemoryAccessInBB()
1443 Instruction *I, MemoryAccess *Definition, const BasicBlock *BB, in createMemoryAccessInBB()
1451 Instruction *I, MemoryAccess *Definition, MemoryUseOrDef *InsertPt) { in createMemoryAccessBefore()
1461 Instruction *I, MemoryAccess *Definition, MemoryAccess *InsertPt) { in createMemoryAccessAfter()