| 
    LLVM 22.0.0git
    
   | 
 
Clients of various APIs that cause global effects on the DAG can optionally implement this interface. More...
#include "llvm/CodeGen/SelectionDAG.h"
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.   | |
Public Attributes | |
| DAGUpdateListener *const | Next | 
| SelectionDAG & | DAG | 
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.
      
  | 
  inlineexplicit | 
Definition at line 322 of file SelectionDAG.h.
References D(), DAG, Next, and llvm::SelectionDAG::SelectionDAG().
Referenced by llvm::SelectionDAG::DAGNodeDeletedListener::DAGNodeDeletedListener(), and llvm::SelectionDAG::DAGNodeInsertedListener::DAGNodeInsertedListener().
      
  | 
  inlinevirtual | 
Definition at line 327 of file SelectionDAG.h.
The node N that was deleted and, if E is not null, an equivalent node E that replaced it.
Reimplemented in llvm::SelectionDAG::DAGNodeDeletedListener.
Definition at line 95 of file SelectionDAG.cpp.
      
  | 
  virtual | 
The node N that was inserted.
Reimplemented in llvm::SelectionDAG::DAGNodeInsertedListener.
Definition at line 97 of file SelectionDAG.cpp.
      
  | 
  virtual | 
The node N that was updated.
Definition at line 96 of file SelectionDAG.cpp.
| SelectionDAG& llvm::SelectionDAG::DAGUpdateListener::DAG | 
Definition at line 320 of file SelectionDAG.h.
Referenced by llvm::SelectionDAG::DAGNodeDeletedListener::DAGNodeDeletedListener(), llvm::SelectionDAG::DAGNodeInsertedListener::DAGNodeInsertedListener(), DAGUpdateListener(), and ~DAGUpdateListener().
| DAGUpdateListener* const llvm::SelectionDAG::DAGUpdateListener::Next | 
Definition at line 319 of file SelectionDAG.h.
Referenced by DAGUpdateListener(), llvm::SelectionDAG::RemoveDeadNodes(), and ~DAGUpdateListener().