blob: 69200c6a3bd80542ad2899f316f1bf1a1f0719b6 [file] [log] [blame]
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +00001llvm-dis - LLVM disassembler
2============================
3
James Hendersona0566842019-06-27 13:24:46 +00004.. program:: llvm-dis
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +00005
6SYNOPSIS
7--------
8
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +00009**llvm-dis** [*options*] [*filename*]
10
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +000011DESCRIPTION
12-----------
13
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +000014The **llvm-dis** command is the LLVM disassembler. It takes an LLVM
15bitcode file and converts it into human-readable LLVM assembly language.
16
17If filename is omitted or specified as ``-``, **llvm-dis** reads its
18input from standard input.
19
20If the input is being read from standard input, then **llvm-dis**
21will send its output to standard output by default. Otherwise, the
22output will be written to a file named after the input file, with
23a ``.ll`` suffix added (any existing ``.bc`` suffix will first be
24removed). You can override the choice of output file using the
25**-o** option.
26
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +000027OPTIONS
28-------
29
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +000030**-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 Dunbar8f4a8a62012-05-08 16:50:35 +000036**-help**
37
38 Print a summary of command line options.
39
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +000040**-o** *filename*
41
42 Specify the output file name. If *filename* is -, then the output is sent
43 to standard output.
44
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +000045EXIT STATUS
46-----------
47
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +000048If **llvm-dis** succeeds, it will exit with 0. Otherwise, if an error
49occurs, it will exit with a non-zero value.
50
Daniel Dunbar8f4a8a62012-05-08 16:50:35 +000051SEE ALSO
52--------
53
Alex Brachet09a066b2019-07-04 21:19:05 +000054:manpage:`llvm-as(1)`