Daniel Dunbar | 8f4a8a6 | 2012-05-08 16:50:35 +0000 | [diff] [blame] | 1 | llvm-dis - LLVM disassembler |
| 2 | ============================ |
| 3 | |
James Henderson | a056684 | 2019-06-27 13:24:46 +0000 | [diff] [blame] | 4 | .. program:: llvm-dis |
Daniel Dunbar | 8f4a8a6 | 2012-05-08 16:50:35 +0000 | [diff] [blame] | 5 | |
| 6 | SYNOPSIS |
| 7 | -------- |
| 8 | |
Daniel Dunbar | 8f4a8a6 | 2012-05-08 16:50:35 +0000 | [diff] [blame] | 9 | **llvm-dis** [*options*] [*filename*] |
| 10 | |
Daniel Dunbar | 8f4a8a6 | 2012-05-08 16:50:35 +0000 | [diff] [blame] | 11 | DESCRIPTION |
| 12 | ----------- |
| 13 | |
Daniel Dunbar | 8f4a8a6 | 2012-05-08 16:50:35 +0000 | [diff] [blame] | 14 | The **llvm-dis** command is the LLVM disassembler. It takes an LLVM |
| 15 | bitcode file and converts it into human-readable LLVM assembly language. |
| 16 | |
| 17 | If filename is omitted or specified as ``-``, **llvm-dis** reads its |
| 18 | input from standard input. |
| 19 | |
| 20 | If the input is being read from standard input, then **llvm-dis** |
| 21 | will send its output to standard output by default. Otherwise, the |
| 22 | output will be written to a file named after the input file, with |
| 23 | a ``.ll`` suffix added (any existing ``.bc`` suffix will first be |
| 24 | removed). You can override the choice of output file using the |
| 25 | **-o** option. |
| 26 | |
Daniel Dunbar | 8f4a8a6 | 2012-05-08 16:50:35 +0000 | [diff] [blame] | 27 | OPTIONS |
| 28 | ------- |
| 29 | |
Daniel Dunbar | 8f4a8a6 | 2012-05-08 16:50:35 +0000 | [diff] [blame] | 30 | **-f** |
| 31 | |
| 32 | Enable binary output on terminals. Normally, **llvm-dis** will refuse to |
| 33 | write raw bitcode output if the output stream is a terminal. With this option, |
| 34 | **llvm-dis** will write raw bitcode regardless of the output device. |
| 35 | |
Daniel Dunbar | 8f4a8a6 | 2012-05-08 16:50:35 +0000 | [diff] [blame] | 36 | **-help** |
| 37 | |
| 38 | Print a summary of command line options. |
| 39 | |
Daniel Dunbar | 8f4a8a6 | 2012-05-08 16:50:35 +0000 | [diff] [blame] | 40 | **-o** *filename* |
| 41 | |
| 42 | Specify the output file name. If *filename* is -, then the output is sent |
| 43 | to standard output. |
| 44 | |
Daniel Dunbar | 8f4a8a6 | 2012-05-08 16:50:35 +0000 | [diff] [blame] | 45 | EXIT STATUS |
| 46 | ----------- |
| 47 | |
Daniel Dunbar | 8f4a8a6 | 2012-05-08 16:50:35 +0000 | [diff] [blame] | 48 | If **llvm-dis** succeeds, it will exit with 0. Otherwise, if an error |
| 49 | occurs, it will exit with a non-zero value. |
| 50 | |
Daniel Dunbar | 8f4a8a6 | 2012-05-08 16:50:35 +0000 | [diff] [blame] | 51 | SEE ALSO |
| 52 | -------- |
| 53 | |
Alex Brachet | 09a066b | 2019-07-04 21:19:05 +0000 | [diff] [blame] | 54 | :manpage:`llvm-as(1)` |