llir-opt  0.0.1
Low-Level Post-Link Optimiser for OCaml and C
Public Member Functions | Friends | List of all members
DerefNode Class Referencefinal

#include <passes/pta/node.h>

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

Public Member Functions

 DerefNode (SetNode *node, RootNode *contents, uint64_t id)
 Creates a new node to dereference a value.
 
 ~DerefNode ()
 Deletes the deref node.
 
SetNodeNode () const
 Returns the dereferenced node.
 
SetNodeContents ()
 Returns the set node with the contents.
 
bool AddSet (SetNode *node)
 Adds an edge from this node to another node.
 
llvm::iterator_range< BitSet< SetNode * >::iterator > set_ins ()
 Iterator over the incoming edges.
 
llvm::iterator_range< BitSet< SetNode * >::iterator > set_outs ()
 Iterator over the outgoing edges.
 
void set_ins (std::function< ID< SetNode * >(ID< SetNode * >)> &&f)
 Store set traversal, applying fixups.
 
void set_outs (std::function< ID< SetNode * >(ID< SetNode * >)> &&f)
 Load set traversal, applying fixups.
 
- Public Member Functions inherited from GraphNode
 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).
 

Friends

class Graph
 
class SetNode
 

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.
 
- Protected Attributes inherited from GraphNode
uint64_t id_
 ID of the node.
 
- Protected Attributes inherited from Node
Kind kind_
 Node kind.
 

Detailed Description

Dereference node in the graph.


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