LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
llvm::SelectionDAG::DAGUpdateListener Struct Reference

#include <SelectionDAG.h>

Collaboration diagram for llvm::SelectionDAG::DAGUpdateListener:
Collaboration graph
[legend]

Public Member Functions

 DAGUpdateListener (SelectionDAG &D)
 
virtual ~DAGUpdateListener ()
 
virtual void NodeDeleted (SDNode *N, SDNode *E)
 
virtual void NodeUpdated (SDNode *N)
 NodeUpdated - The node N that was updated. More...
 

Public Attributes

DAGUpdateListener *const Next
 
SelectionDAGDAG
 

Detailed Description

DAGUpdateListener - Clients of various APIs that cause global effects on the DAG can optionally implement this interface. This allows the clients to handle the various sorts of updates that happen.

A DAGUpdateListener automatically registers itself with DAG when it is constructed, and removes itself when destroyed in RAII fashion.

Definition at line 217 of file SelectionDAG.h.

Constructor & Destructor Documentation

llvm::SelectionDAG::DAGUpdateListener::DAGUpdateListener ( SelectionDAG D)
inlineexplicit

Definition at line 221 of file SelectionDAG.h.

References DAG.

virtual llvm::SelectionDAG::DAGUpdateListener::~DAGUpdateListener ( )
inlinevirtual

Definition at line 226 of file SelectionDAG.h.

References DAG, and Next.

Member Function Documentation

void SelectionDAG::DAGUpdateListener::NodeDeleted ( SDNode N,
SDNode E 
)
virtual

NodeDeleted - The node N that was deleted and, if E is not null, an equivalent node E that replaced it.

Definition at line 63 of file SelectionDAG.cpp.

void SelectionDAG::DAGUpdateListener::NodeUpdated ( SDNode N)
virtual

NodeUpdated - The node N that was updated.

Definition at line 64 of file SelectionDAG.cpp.

Member Data Documentation

SelectionDAG& llvm::SelectionDAG::DAGUpdateListener::DAG

Definition at line 219 of file SelectionDAG.h.

Referenced by DAGUpdateListener(), and ~DAGUpdateListener().

DAGUpdateListener* const llvm::SelectionDAG::DAGUpdateListener::Next

Definition at line 218 of file SelectionDAG.h.

Referenced by llvm::SelectionDAG::RemoveDeadNodes(), and ~DAGUpdateListener().


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