decomp: github.com/decomp/decomp/cmd/ll2dot Files

Command ll2dot

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

Package Files

main.go

Package main imports 16 packages (graph). Updated 2019-09-07. Refresh now. Tools for package owners.