John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <title> |
Chris Lattner | ee43b69 | 2003-09-25 19:50:05 +0000 | [diff] [blame] | 3 | LLVM: llvm-dis tool |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 4 | </title> |
| 5 | |
| 6 | <body> |
| 7 | |
| 8 | <center> |
Chris Lattner | ee43b69 | 2003-09-25 19:50:05 +0000 | [diff] [blame] | 9 | <h1>LLVM: llvm-dis tool</h1> |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 10 | </center> |
| 11 | <HR> |
| 12 | |
| 13 | <h3> |
| 14 | NAME |
| 15 | </h3> |
| 16 | |
| 17 | llvm-dis |
| 18 | |
| 19 | <h3> |
| 20 | SYNOPSIS |
| 21 | </h3> |
| 22 | |
John Criswell | 6775392 | 2003-09-26 02:59:00 +0000 | [diff] [blame] | 23 | llvm-dis [options] [filename] |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 24 | <h3> |
| 25 | DESCRIPTION |
| 26 | </h3> |
| 27 | |
| 28 | The llvm-dis command is the LLVM disassembler. It takes an LLVM bytecode file |
John Criswell | 6775392 | 2003-09-26 02:59:00 +0000 | [diff] [blame] | 29 | and converts it into LLVM assembly language or C source code with equivalent |
| 30 | functionality. |
| 31 | <p> |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 32 | |
John Criswell | 6775392 | 2003-09-26 02:59:00 +0000 | [diff] [blame] | 33 | If filename is omitted, llvm-dis reads its input from standard input. |
| 34 | <p> |
| 35 | |
| 36 | The default output file for llvm-dis is determined by the following logic: |
| 37 | <ul> |
| 38 | <li> |
| 39 | If the input is standard input or the file -, then the output is standard |
| 40 | output. |
| 41 | <p> |
| 42 | |
| 43 | <li> |
| 44 | If the input filename ends in .bc, then the output filename will be |
| 45 | identical, except that the .bc suffix will be replaced by the .ll or .c |
| 46 | suffix (for LLVM assembly language and C code, respectively). |
| 47 | <p> |
| 48 | |
| 49 | <li> |
| 50 | If the input filename does not end in .bc, then the output filename will be |
| 51 | identical to the input filename, except that the .ll or .c suffix will be |
| 52 | appended to the filename (for LLVM assembly language and C code, |
| 53 | respectively). |
| 54 | </ul> |
| 55 | |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 56 | <h3> |
| 57 | OPTIONS |
| 58 | </h3> |
| 59 | |
| 60 | <ul> |
| 61 | <li> -llvm |
| 62 | <br> |
| 63 | Instruct llvm-dis to generate LLVM assembly code in human readable |
| 64 | format. This is the default behavior. |
| 65 | <p> |
| 66 | |
| 67 | <li> -c |
| 68 | <br> |
| 69 | Instruct llvm-dis to generate C source code. |
| 70 | <p> |
| 71 | |
| 72 | <li> -f |
| 73 | <br> |
| 74 | Force overwrite. Normally, llvm-dis will refuse to overwrite an output |
| 75 | file that already exists. With this option, llvm-dis will overwrite the |
| 76 | output file. |
| 77 | <p> |
| 78 | |
| 79 | <li> -help |
| 80 | <br> |
| 81 | Print a summary of command line options. |
| 82 | <p> |
| 83 | |
| 84 | <li> -o <filename> |
| 85 | <br> |
John Criswell | 6775392 | 2003-09-26 02:59:00 +0000 | [diff] [blame] | 86 | Specify the output filename. If filename is -, then the output is sent to |
| 87 | standard output. |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 88 | <p> |
| 89 | |
John Criswell | 6775392 | 2003-09-26 02:59:00 +0000 | [diff] [blame] | 90 | <li> -time-passes |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 91 | <br> |
John Criswell | 6775392 | 2003-09-26 02:59:00 +0000 | [diff] [blame] | 92 | Record the amount of time needed for each pass and print it to standard |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 93 | error. |
| 94 | <p> |
| 95 | </ul> |
| 96 | |
| 97 | <h3> |
| 98 | EXIT STATUS |
| 99 | </h3> |
| 100 | |
| 101 | If llvm-dis succeeds, it will exit with 0. Otherwise, if an error occurs, it |
| 102 | will exit with a non-zero value. |
| 103 | |
| 104 | <h3> |
| 105 | SEE ALSO |
| 106 | </h3> |
John Criswell | 6775392 | 2003-09-26 02:59:00 +0000 | [diff] [blame] | 107 | llvm-as |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 108 | |
| 109 | <HR> |
John Criswell | 3200330 | 2003-09-11 20:23:52 +0000 | [diff] [blame] | 110 | <a href="http://llvm.cs.uiuc.edu">LLVM Team</a> |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 111 | </body> |
| 112 | </html> |
| 113 | |