LLVM: llvm::SelectionDAG::DAGUpdateListener Struct Reference (original) (raw)

Clients of various APIs that cause global effects on the DAG can optionally implement this interface. More...

#include "[llvm/CodeGen/SelectionDAG.h](SelectionDAG%5F8h%5Fsource.html)"

Public Member Functions
DAGUpdateListener (SelectionDAG &D)
virtual ~DAGUpdateListener ()
virtual void NodeDeleted (SDNode *N, SDNode *E)
The node N that was deleted and, if E is not null, an equivalent node E that replaced it.
virtual void NodeUpdated (SDNode *N)
The node N that was updated.
virtual void NodeInserted (SDNode *N)
The node N that was inserted.

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 318 of file SelectionDAG.h.

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

~DAGUpdateListener()

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

NodeDeleted()

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

NodeInserted()

void SelectionDAG::DAGUpdateListener::NodeInserted ( SDNode * N) virtual

NodeUpdated()

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

DAG

Next


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