struct SelectionDAG::DAGNodeDeletedListener
Declaration
struct SelectionDAG::DAGNodeDeletedListener : public DAGUpdateListener { /* full declaration omitted */ };
Description
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.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:326
Inherits from: SelectionDAG::DAGUpdateListener
Member Variables
- public std::function<void(SDNode*, SDNode*)> Callback
Inherited from SelectionDAG::DAGUpdateListener:
Method Overview
- public DAGNodeDeletedListener(llvm::SelectionDAG & DAG, std::function<void (SDNode *, SDNode *)> Callback)
- public void NodeDeleted(llvm::SDNode * N, llvm::SDNode * E)
- private virtual void anchor()
Inherited from SelectionDAG::DAGUpdateListener:
Methods
¶DAGNodeDeletedListener(
llvm::SelectionDAG& DAG,
std::function<void(SDNode*, SDNode*)>
Callback)
DAGNodeDeletedListener(
llvm::SelectionDAG& DAG,
std::function<void(SDNode*, SDNode*)>
Callback)
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:329
Parameters
- llvm::SelectionDAG& DAG
- std::function<void(SDNode*, SDNode*)> Callback
¶void NodeDeleted(llvm::SDNode* N, llvm::SDNode* E)
void NodeDeleted(llvm::SDNode* N, llvm::SDNode* E)
Description
The node N that was deleted and, if E is not null, an equivalent node E that replaced it.
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:333
Parameters
- llvm::SDNode* N
- llvm::SDNode* E
¶virtual void anchor()
virtual void anchor()
Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:336