LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::SelectionDAG::DAGNodeDeletedListener Struct Reference

#include "llvm/CodeGen/SelectionDAG.h"

Inheritance diagram for llvm::SelectionDAG::DAGNodeDeletedListener:
Inheritance graph
[legend]

Public Member Functions

 DAGNodeDeletedListener (SelectionDAG &DAG, std::function< void(SDNode *, SDNode *)> Callback)
 
void NodeDeleted (SDNode *N, SDNode *E) override
 The node N that was deleted and, if E is not null, an equivalent node E that replaced it.
 
- Public Member Functions inherited from llvm::SelectionDAG::DAGUpdateListener
 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

std::function< void(SDNode *, SDNode *)> Callback
 
- Public Attributes inherited from llvm::SelectionDAG::DAGUpdateListener
DAGUpdateListener *const Next
 
SelectionDAGDAG
 

Detailed Description

Definition at line 336 of file SelectionDAG.h.

Constructor & Destructor Documentation

◆ DAGNodeDeletedListener()

llvm::SelectionDAG::DAGNodeDeletedListener::DAGNodeDeletedListener ( SelectionDAG DAG,
std::function< void(SDNode *, SDNode *)>  Callback 
)
inline

Definition at line 339 of file SelectionDAG.h.

Member Function Documentation

◆ NodeDeleted()

void llvm::SelectionDAG::DAGNodeDeletedListener::NodeDeleted ( SDNode N,
SDNode E 
)
inlineoverridevirtual

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

Reimplemented from llvm::SelectionDAG::DAGUpdateListener.

Definition at line 343 of file SelectionDAG.h.

References Callback, E, and N.

Member Data Documentation

◆ Callback

std::function<void(SDNode *, SDNode *)> llvm::SelectionDAG::DAGNodeDeletedListener::Callback

Definition at line 337 of file SelectionDAG.h.

Referenced by NodeDeleted().


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