llvm::ilist_callback_traits

Callbacks do nothing by default in iplist and ilist.

Synopsis

Declared in <llvm/ADT/ilist.h>

template<typename NodeTy>
struct ilist_callback_traits;

Description

Specialize this for to use callbacks for when nodes change their list membership.

Member Functions

NameDescription
addNodeToList Called when a node is inserted into the list (default: no-op).
removeNodeFromList Called when a node is removed from the list (default: no-op).
transferNodesFromList Callback before transferring nodes to this list. The nodes may already be in this same list.

Specializations

NameDescription
ilist_callback_traits<MachineBasicBlock> Callback traits notifying a MachineFunction when MBBs enter or leave it.

Derived Classes

NameDescription
ilist_node_traits A fragment for template traits for intrusive list that provides default node related operations.