ll2dot

command
v0.0.0-...-4e6f075 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2023 License: Unlicense Imports: 16 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL