llir-opt  0.0.1
Low-Level Post-Link Optimiser for OCaml and C
Public Member Functions | Protected Attributes | Friends | List of all members
GraphNode Class Reference

#include <passes/pta/node.h>

Inheritance diagram for GraphNode:
Inheritance graph
[legend]
Collaboration diagram for GraphNode:
Collaboration graph
[legend]

Public Member Functions

 GraphNode (Kind kind, uint64_t id)
 Constructs a graph node.
 
virtual ~GraphNode ()
 Deletes the node.
 
uint64_t GetID () const
 Returns the ID of the node.
 
bool IsDeref () const
 Checks if the node is a load.
 
bool IsSet () const
 Checks if the ndoe is a set.
 
SetNodeAsSet ()
 Returns the node as a set, if it is one.
 
DerefNodeAsDeref ()
 Returns the node as a deref, if it is one.
 
- Public Member Functions inherited from Node
virtual ~Node ()
 Virtual destructor.
 
GraphNodeToGraph ()
 Converts the node to a graph node.
 
RootNodeAsRoot ()
 Converts the node to a root node (if it is one).
 

Protected Attributes

uint64_t id_
 ID of the node.
 
- Protected Attributes inherited from Node
Kind kind_
 Node kind.
 

Friends

class SetNode
 
class DerefNode
 
class SCCSolver
 Solver needs access.
 

Additional Inherited Members

- Public Types inherited from Node
enum  Kind { SET, DEREF, ROOT }
 Enumeration of enum kinds.
 
- Protected Member Functions inherited from Node
 Node (Kind kind)
 Creates a new node.
 

Detailed Description

Actual node in the graph, i.e. not a root node.


The documentation for this class was generated from the following files: