|
Jlm
|
#include <graph.hpp>
Public Member Functions | |
| ~Graph () noexcept | |
| Graph () | |
| Region::Id | generateRegionId () noexcept |
| Region & | GetRootRegion () const noexcept |
| std::unique_ptr< Graph > | Copy () const |
| void | PruneNodes () |
Static Public Member Functions | |
| static std::vector< Node * > | ExtractTailNodes (const Graph &rvsdg) |
Private Attributes | |
| Region::Id | nextRegionId_ |
| std::unique_ptr< Region > | RootRegion_ |
Represents a Regionalized Value State Dependence Graph (RVSDG)
|
defaultnoexcept |
| std::unique_ptr< Graph > jlm::rvsdg::Graph::Copy | ( | ) | const |
Extracts all tail nodes of the RVSDG root region.
A tail node is any node in the root region on which no other node in the root region depends on. An example would be a lambda node that is not called within the RVSDG module.
| rvsdg | The RVSDG from which to extract the tail nodes. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Remove all dead nodes in the graph.
|
private |
|
private |