LLVM
8.0.1
|
Public Member Functions | |
SkipSelfWalker (MemorySSA *M, ClobberWalkerBase *W) | |
~SkipSelfWalker () override=default | |
MemoryAccess * | getClobberingMemoryAccess (MemoryAccess *MA) override |
Does the same thing as getClobberingMemoryAccess(const Instruction *I), but takes a MemoryAccess instead of an Instruction. More... | |
MemoryAccess * | getClobberingMemoryAccess (MemoryAccess *MA, const MemoryLocation &Loc) override |
Given a potentially clobbering memory access and a new location, calling this will give you the nearest dominating clobbering MemoryAccess (by skipping non-aliasing def links). More... | |
void | invalidateInfo (MemoryAccess *MA) override |
Given a memory access, invalidate anything this walker knows about that access. More... | |
void | verify (const MemorySSA *MSSA) override |
Public Member Functions inherited from llvm::MemorySSAWalker | |
MemorySSAWalker (MemorySSA *) | |
virtual | ~MemorySSAWalker ()=default |
MemoryAccess * | getClobberingMemoryAccess (const Instruction *I) |
Given a memory Mod/Ref/ModRef'ing instruction, calling this will give you the nearest dominating MemoryAccess that Mod's the location the instruction accesses (by skipping any def which AA can prove does not alias the location(s) accessed by the instruction given). More... | |
Additional Inherited Members | |
Public Types inherited from llvm::MemorySSAWalker | |
using | MemoryAccessSet = SmallVector< MemoryAccess *, 8 > |
Protected Attributes inherited from llvm::MemorySSAWalker | |
MemorySSA * | MSSA |
Definition at line 998 of file MemorySSA.cpp.
|
inline |
Definition at line 1002 of file MemorySSA.cpp.
References llvm::MemorySSAWalker::getClobberingMemoryAccess().
|
overridedefault |
|
overridevirtual |
Does the same thing as getClobberingMemoryAccess(const Instruction *I), but takes a MemoryAccess instead of an Instruction.
Implements llvm::MemorySSAWalker.
Definition at line 2339 of file MemorySSA.cpp.
|
overridevirtual |
Given a potentially clobbering memory access and a new location, calling this will give you the nearest dominating clobbering MemoryAccess (by skipping non-aliasing def links).
This version of the function is mainly used to disambiguate phi translated pointers, where the value of a pointer may have changed from the initial memory access. Note that this expects to be handed either a MemoryUse, or an already potentially clobbering access. Unlike the above API, if given a MemoryDef that clobbers the pointer as the starting access, it will return that MemoryDef, whereas the above would return the clobber starting from the use side of the memory def.
Implements llvm::MemorySSAWalker.
Definition at line 2344 of file MemorySSA.cpp.
|
inlineoverridevirtual |
Given a memory access, invalidate anything this walker knows about that access.
This API is used by walkers that store information to perform basic cache invalidation. This will be called by MemorySSA at appropriate times for the walker it uses or returns.
Reimplemented from llvm::MemorySSAWalker.
Definition at line 1012 of file MemorySSA.cpp.
Reimplemented from llvm::MemorySSAWalker.
Definition at line 1017 of file MemorySSA.cpp.
References assert(), llvm::DomTreeNodeBase< NodeT >::begin(), llvm::SmallVectorBase::empty(), llvm::DomTreeNodeBase< NodeT >::getBlock(), llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::SmallVectorTemplateBase< T >::push_back(), llvm::MemorySSA::renamePass(), second, llvm::successors(), and llvm::MemorySSAWalker::verify().