Documentation ¶
Overview ¶
The ll2dot tool generates control flow graphs from LLVM IR assembly (*.ll -> *.dot).
The input of ll2dot is LLVM IR assembly and the output is a set of Graphviz DOT files, each representing the control flow graph of a function using one node per basic block.
For a source file "foo.ll" containing the functions "bar" and "baz" the following DOT files are generated.
- foo_graphs/bar.dot
- foo_graphs/baz.dot
Usage:
ll2dot [OPTION]... FILE.ll...
Flags:
-f force overwrite existing graph directories -funcs string comma-separated list of functions to parse -img generate an image representation of the control flow graph -q suppress non-error messages
Click to show internal directories.
Click to hide internal directories.