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

#include "llvm/CodeGen/SelectionDAG.h"

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

Public Member Functions

 DAGNodeInsertedListener (SelectionDAG &DAG, std::function< void(SDNode *)> Callback)
 
void NodeInserted (SDNode *N) override
 The node N that was inserted.
 
- 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 *)> Callback
 
- Public Attributes inherited from llvm::SelectionDAG::DAGUpdateListener
DAGUpdateListener *const Next
 
SelectionDAGDAG
 

Detailed Description

Definition at line 354 of file SelectionDAG.h.

Constructor & Destructor Documentation

◆ DAGNodeInsertedListener()

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

Definition at line 357 of file SelectionDAG.h.

Member Function Documentation

◆ NodeInserted()

void llvm::SelectionDAG::DAGNodeInsertedListener::NodeInserted ( SDNode N)
inlineoverridevirtual

The node N that was inserted.

Reimplemented from llvm::SelectionDAG::DAGUpdateListener.

Definition at line 361 of file SelectionDAG.h.

References Callback, and N.

Member Data Documentation

◆ Callback

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

Definition at line 355 of file SelectionDAG.h.

Referenced by NodeInserted().


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