8 <center><h1>LLVM: <tt>llvm-dis</tt> tool</h1></center>
15 <tt>llvm-dis [options] [filename]</tt>
19 The <tt>llvm-dis</tt> command is the LLVM disassembler. It takes an LLVM
20 bytecode file and converts it into LLVM assembly language or C source code with
21 equivalent functionality.
24 If filename is omitted, <tt>llvm-dis</tt> reads its input from standard input.
27 The default output file for <tt>llvm-dis</tt> is determined by the following logic:
30 If the input is standard input or the file -, then the output is
35 If the input filename ends in .bc, then the output filename will be
36 identical, except that the .bc suffix will be replaced by the .ll or .c
37 suffix (for LLVM assembly language and C code, respectively).
41 If the input filename does not end in .bc, then the output filename will
42 be identical to the input filename, except that the .ll or .c suffix
43 will be appended to the filename (for LLVM assembly language and C code,
52 Instruct <tt>llvm-dis</tt> to generate LLVM assembly code in human
53 readable format. This is the default behavior.
58 Instruct <tt>llvm-dis</tt> to generate C source code.
63 Force overwrite. Normally, <tt>llvm-dis</tt> will refuse to overwrite
64 an output file that already exists. With this option, <tt>llvm-dis</tt>
65 will overwrite the output file.
70 Print a summary of command line options.
73 <li> -o <filename>
75 Specify the output filename. If filename is -, then the output is sent
81 Record the amount of time needed for each pass and print it to standard
88 If <tt>llvm-dis</tt> succeeds, it will exit with 0. Otherwise, if an error
89 occurs, it will exit with a non-zero value.
93 <a href="llvm-as.html"><tt>llvm-as</tt></a>
96 Maintained by the <a href="http://llvm.cs.uiuc.edu">LLVM Team</a>.