llvm::viewGraphForFunction

Open a Graphviz viewer for a function's analysis graph.

Synopsis

Declared in <llvm/Analysis/DOTGraphTraitsPass.h>

template<typename GraphT>
void
viewGraphForFunction(
    Function& F,
    GraphT Graph,
    StringRef Name,
    bool IsSimple);

Parameters

NameDescription
FFunction the graph belongs to.
GraphGraph extracted from the analysis result.
NameBase name for the viewer window.
IsSimpleTrue to render simplified node labels.