|
Jlm
|
Memory State Encoder. More...
#include <MemoryStateEncoder.hpp>
Classes | |
| class | Context |
| Context for the memory state encoder. More... | |
Public Member Functions | |
| ~MemoryStateEncoder () noexcept | |
| MemoryStateEncoder () | |
| MemoryStateEncoder (const MemoryStateEncoder &)=delete | |
| MemoryStateEncoder (MemoryStateEncoder &&)=delete | |
| MemoryStateEncoder & | operator= (const MemoryStateEncoder &)=delete |
| MemoryStateEncoder & | operator= (MemoryStateEncoder &&)=delete |
| void | Encode (rvsdg::RvsdgModule &rvsdgModule, const ModRefSummary &modRefSummary, util::StatisticsCollector &statisticsCollector) |
Static Private Member Functions | |
| static rvsdg::SimpleNode & | ReplaceLoadNode (const rvsdg::SimpleNode &node, const std::vector< rvsdg::Output * > &memoryStates) |
| static rvsdg::SimpleNode & | ReplaceStoreNode (const rvsdg::SimpleNode &node, const std::vector< rvsdg::Output * > &memoryStates) |
| static std::vector< rvsdg::Output * > | ReplaceMemcpyNode (const rvsdg::SimpleNode &memcpyNode, const std::vector< rvsdg::Output * > &memoryStates) |
Private Attributes | |
| std::unique_ptr< Context > | Context_ |
Memory State Encoder.
A memory state encoder encodes a points-to graph in the RVSDG. The basic idea is that there exists a one-to-one correspondence between memory nodes in the points-to graph and memory states in the RVSDG, i.e., for each memory node in the points-to graph, there exists a memory state edge in the RVSDG. A memory state encoder routes these state edges through the RVSDG's structural nodes and ensures that simple nodes operating on a memory location represented by a corresponding memory node in the points-to graph are sequentialized with the respective memory state edge. For example, a store node that modifies a global variable needs to have the respective state edge that corresponds to its memory location routed through it, i.e., the store node is sequentialized by this state edge. Such an encoding ensures that the ordering of side-effecting operations touching on the same memory locations is preserved, while rendering operations independent that are not operating on the same memory locations.
Definition at line 53 of file MemoryStateEncoder.hpp.
|
defaultnoexcept |
|
default |
|
delete |
|
delete |
| void jlm::llvm::aa::MemoryStateEncoder::Encode | ( | rvsdg::RvsdgModule & | rvsdgModule, |
| const ModRefSummary & | modRefSummary, | ||
| util::StatisticsCollector & | statisticsCollector | ||
| ) |
Definition at line 624 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 747 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 863 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 995 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 842 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 1001 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 1018 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 1040 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 909 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 917 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 965 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 801 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 773 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 895 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 989 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 653 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 703 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 822 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 674 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 1062 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 1074 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 1096 of file MemoryStateEncoder.cpp.
|
delete |
|
delete |
|
staticprivate |
Replace loadNode with a new copy that takes the provided memoryStates. All users of the outputs of loadNode are redirected to the respective outputs of the newly created copy.
| node | A LoadNode. |
| memoryStates | The memory states the new LoadNode should consume. |
Definition at line 1121 of file MemoryStateEncoder.cpp.
|
staticprivate |
Replace memcpyNode with a new copy that takes the provided memoryStates. All users of the outputs of memcpyNode are redirected to the respective outputs of the newly created copy.
| memcpyNode | A rvsdg::SimpleNode representing a MemCpyOperation. |
| memoryStates | The memory states the new memcpy node should consume. |
Definition at line 1196 of file MemoryStateEncoder.cpp.
|
staticprivate |
Replace storeNode with a new copy that takes the provided memoryStates. All users of the outputs of storeNode are redirected to the respective outputs of the newly created copy.
| node | A StoreNode. |
| memoryStates | The memory states the new StoreNode should consume. |
Definition at line 1163 of file MemoryStateEncoder.cpp.
|
private |
Definition at line 187 of file MemoryStateEncoder.hpp.