Walk every edge and node in the outlined hash tree.

Synopsis

Declared in <llvm/CGData/OutlinedHashTree.h>

void
walkGraph(
    NodeCallbackFn CallbackNode,
    EdgeCallbackFn CallbackEdge = nullptr,
    bool SortedWalk = false) const;

Description

Calls CallbackEdge for the edges and CallbackNode for the nodes with the stable_hash for the source and the stable_hash of the sink for an edge. These generic callbacks can be used to traverse an OutlinedHashTree for the purpose of print debugging or serializing it.

Parameters

Name

Description

CallbackNode

Called for each node visited during the walk.

CallbackEdge

Called for each edge visited during the walk; may be null.

SortedWalk

When true, walk successors in a deterministic sorted order.

Created with MrDocs