aboutsummaryrefslogtreecommitdiff
path: root/docs/CommandGuide/llvm-dis.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/CommandGuide/llvm-dis.html')
-rw-r--r--docs/CommandGuide/llvm-dis.html40
1 files changed, 32 insertions, 8 deletions
diff --git a/docs/CommandGuide/llvm-dis.html b/docs/CommandGuide/llvm-dis.html
index 9f7731ac43..c6288b0359 100644
--- a/docs/CommandGuide/llvm-dis.html
+++ b/docs/CommandGuide/llvm-dis.html
@@ -20,16 +20,39 @@ llvm-dis
SYNOPSIS
</h3>
-llvm-dis [options] &lt; filename&gt;
+llvm-dis [options] [filename]
<h3>
DESCRIPTION
</h3>
The llvm-dis command is the LLVM disassembler. It takes an LLVM bytecode file
-and converts it into one of several human readable formats.
+and converts it into LLVM assembly language or C source code with equivalent
+functionality.
+<p>
+
+If filename is omitted, llvm-dis reads its input from standard input.
+<p>
+
+The default output file for llvm-dis is determined by the following logic:
+<ul>
+ <li>
+ If the input is standard input or the file -, then the output is standard
+ output.
+ <p>
+
+ <li>
+ If the input filename ends in .bc, then the output filename will be
+ identical, except that the .bc suffix will be replaced by the .ll or .c
+ suffix (for LLVM assembly language and C code, respectively).
+ <p>
+
+ <li>
+ If the input filename does not end in .bc, then the output filename will be
+ identical to the input filename, except that the .ll or .c suffix will be
+ appended to the filename (for LLVM assembly language and C code,
+ respectively).
+</ul>
-By default, llvm-dis places its output in filename.ll, removing the .bc suffix
-if it exists.
<h3>
OPTIONS
</h3>
@@ -60,12 +83,13 @@ OPTIONS
<li> -o &lt;filename&gt;
<br>
- Specify the output filename.
+ Specify the output filename. If filename is -, then the output is sent to
+ standard output.
<p>
- <li> -time-pdisses
+ <li> -time-passes
<br>
- Record the amount of time needed for each pdiss and print it to standard
+ Record the amount of time needed for each pass and print it to standard
error.
<p>
</ul>
@@ -80,7 +104,7 @@ will exit with a non-zero value.
<h3>
SEE ALSO
</h3>
-llvm-dis
+llvm-as
<HR>
<a href="http://llvm.cs.uiuc.edu">LLVM Team</a>