struct SelectionDAG::DAGUpdateListener

Declaration

struct SelectionDAG::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:294

Member Variables

public llvm::SelectionDAG::DAGUpdateListener* const Next
public llvm::SelectionDAG& DAG

Method Overview

Methods

DAGUpdateListener(llvm::SelectionDAG& D)

Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:298

Parameters

llvm::SelectionDAG& D

virtual 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:311

Parameters

llvm::SDNode* N
llvm::SDNode* E

virtual void NodeInserted(llvm::SDNode* N)

Description

The node N that was inserted.

Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:317

Parameters

llvm::SDNode* N

virtual void NodeUpdated(llvm::SDNode* N)

Description

The node N that was updated.

Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:314

Parameters

llvm::SDNode* N

virtual ~DAGUpdateListener()

Declared at: llvm/include/llvm/CodeGen/SelectionDAG.h:303