blob: aaba1280b8ad48bf1471ca07ad2994ea0d27928f [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
9
10**llvm-dis** [*options*] [*filename*]
11
12
13DESCRIPTION
14-----------
15
16
17The **llvm-dis** command is the LLVM disassembler. It takes an LLVM
18bitcode file and converts it into human-readable LLVM assembly language.
19
20If filename is omitted or specified as ``-``, **llvm-dis** reads its
21input from standard input.
22
23If the input is being read from standard input, then **llvm-dis**
24will send its output to standard output by default. Otherwise, the
25output will be written to a file named after the input file, with
26a ``.ll`` suffix added (any existing ``.bc`` suffix will first be
27removed). You can override the choice of output file using the
28**-o** option.
29
30
31OPTIONS
32-------
33
34
35
36**-f**
37
38 Enable binary output on terminals. Normally, **llvm-dis** will refuse to
39 write raw bitcode output if the output stream is a terminal. With this option,
40 **llvm-dis** will write raw bitcode regardless of the output device.
41
42
43
44**-help**
45
46 Print a summary of command line options.
47
48
49
50**-o** *filename*
51
52 Specify the output file name. If *filename* is -, then the output is sent
53 to standard output.
54
55
56
57
58EXIT STATUS
59-----------
60
61
62If **llvm-dis** succeeds, it will exit with 0. Otherwise, if an error
63occurs, it will exit with a non-zero value.
64
65
66SEE ALSO
67--------
68
69
70llvm-as|llvm-as