LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

llvm-dis

LLVM bitcode disassembler

TLDR

Disassemble bitcode to LLVM IR
$ llvm-dis [file.bc]
copy
Output to specific file
$ llvm-dis [file.bc] -o [output.ll]
copy
Disassemble from stdin to stdout
$ llvm-dis -o - < [file.bc]
copy
Disassemble and show timing for each pass
$ llvm-dis --time-passes [file.bc]
copy
Show version
$ llvm-dis --version
copy

SYNOPSIS

llvm-dis [options] [file]

DESCRIPTION

llvm-dis is the LLVM disassembler. It converts LLVM bitcode (.bc) files to human-readable LLVM assembly language (.ll) format. If no filename is given or the filename is -, it reads from stdin. Useful for inspecting compiled code and debugging LLVM optimization passes.

PARAMETERS

-o file

Output file name. If omitted, input filename with .ll extension is used.
-f, --force
Enable binary output on terminals and overwrite existing output files.
--show-annotations
Show annotations in output.
--disable-output
Discard output (useful with --time-passes for benchmarking).
--time-passes
Time each pass during disassembly.
--help
Display available options.
--version
Display LLVM version.

SEE ALSO

llvm-as(1), llc(1), opt(1), llvm-bcanalyzer(1), llvm-objdump(1), clang(1)

Copied to clipboard
Kai