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: analyze tool |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 4 | </title> |
| 5 | |
Chris Lattner | 08a04fd | 2003-10-07 20:12:05 +0000 | [diff] [blame] | 6 | <body bgcolor=white> |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 7 | |
Chris Lattner | 644b8ee | 2003-10-07 20:36:00 +0000 | [diff] [blame] | 8 | <center><h1>LLVM: <tt>analyze</tt> tool</h1></center> |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 9 | <HR> |
| 10 | |
Chris Lattner | 644b8ee | 2003-10-07 20:36:00 +0000 | [diff] [blame] | 11 | <h3>NAME</h3> |
| 12 | <tt>analyze</tt> |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 13 | |
Chris Lattner | 644b8ee | 2003-10-07 20:36:00 +0000 | [diff] [blame] | 14 | <h3>SYNOPSIS</h3> |
| 15 | <tt>analyze [options] [filename]</tt> |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 16 | |
Chris Lattner | 644b8ee | 2003-10-07 20:36:00 +0000 | [diff] [blame] | 17 | <h3>DESCRIPTION</h3> |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 18 | |
Chris Lattner | 644b8ee | 2003-10-07 20:36:00 +0000 | [diff] [blame] | 19 | The <tt>analyze</tt> command performs various analysis of LLVM assembly code or |
John Criswell | fa4f181 | 2003-09-29 14:05:08 +0000 | [diff] [blame] | 20 | bytecode. It will usually print the results on standard output, but in a few |
| 21 | cases, it will print output to standard error or generate a file with the |
| 22 | analysis output (which is usually done when the output is meant for another |
| 23 | program). |
| 24 | <p> |
Chris Lattner | 644b8ee | 2003-10-07 20:36:00 +0000 | [diff] [blame] | 25 | If filename is omitted or is -, <tt>analyze</tt> reads its input from standard |
| 26 | input. It first attempts to interpret its input as LLVM bytecode. If it |
| 27 | encounters an error, it then attempts to parse the input as LLVM assembly |
| 28 | language. |
| 29 | |
| 30 | <h3>OPTIONS</h3> |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 31 | |
| 32 | <ul> |
| 33 | <li> -help |
| 34 | <br> |
| 35 | Print a summary of command line options. |
| 36 | <p> |
| 37 | |
| 38 | <li> -stats |
| 39 | <br> |
| 40 | Print statistics. |
| 41 | <p> |
| 42 | |
| 43 | <li> -time-passes |
| 44 | <br> |
| 45 | Record the amount of time needed for each pass and print it to standard |
| 46 | error. |
| 47 | <p> |
| 48 | |
| 49 | <li> -q |
| 50 | <br> |
| 51 | Quiet mode. With this option, analysis pass names are not printed. |
| 52 | <p> |
| 53 | |
| 54 | <li> -load <plugin.so> |
| 55 | <br> |
| 56 | Load the specified dynamic object with name plugin.so. This file |
| 57 | should contain additional analysis passes that register themselves with |
Chris Lattner | 644b8ee | 2003-10-07 20:36:00 +0000 | [diff] [blame] | 58 | the <tt>analyze</tt> program after being loaded. |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 59 | <p> |
Chris Lattner | 644b8ee | 2003-10-07 20:36:00 +0000 | [diff] [blame] | 60 | |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 61 | After being loaded, additional command line options are made available |
Chris Lattner | 644b8ee | 2003-10-07 20:36:00 +0000 | [diff] [blame] | 62 | for running the passes made available by plugin.so. Use |
| 63 | '<tt><tt>analyze</tt> -load <plugin.so> -help</tt>' to see the new |
| 64 | list of available analysis passes. |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 65 | <p> |
| 66 | </ul> |
| 67 | |
Chris Lattner | 644b8ee | 2003-10-07 20:36:00 +0000 | [diff] [blame] | 68 | <h3>EXIT STATUS</h3> |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 69 | |
Chris Lattner | 644b8ee | 2003-10-07 20:36:00 +0000 | [diff] [blame] | 70 | If <tt>analyze</tt> succeeds, it will exit with 0. Otherwise, if an error |
| 71 | occurs, it will exit with a non-zero value. |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 72 | |
Chris Lattner | 644b8ee | 2003-10-07 20:36:00 +0000 | [diff] [blame] | 73 | <h3>SEE ALSO</h3> |
| 74 | |
| 75 | <a href="opt.html"><tt>opt</tt></a> |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 76 | |
| 77 | <HR> |
Chris Lattner | 08a04fd | 2003-10-07 20:12:05 +0000 | [diff] [blame] | 78 | Maintained by the <a href="http://llvm.cs.uiuc.edu">LLVM Team</a>. |
John Criswell | ecf32e5 | 2003-09-11 19:58:03 +0000 | [diff] [blame] | 79 | </body> |
| 80 | </html> |
| 81 | |