blob: 789d85d68b580241151fc866bf3ea37acb8435cf [file] [log] [blame]
Misha Brukmanb4107632004-07-01 16:04:49 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
John Criswell408128d2003-09-11 19:58:03 +00003<html>
Misha Brukman47e7fd22003-10-31 00:39:28 +00004<head>
5 <title>LLVM Command Guide</title>
Misha Brukmanb4107632004-07-01 16:04:49 +00006 <link rel="stylesheet" href="../llvm.css" type="text/css">
Misha Brukman47e7fd22003-10-31 00:39:28 +00007</head>
Misha Brukmanb4107632004-07-01 16:04:49 +00008<body>
John Criswell408128d2003-09-11 19:58:03 +00009
Misha Brukmanb4107632004-07-01 16:04:49 +000010<div class="doc_title">
11 LLVM Command Guide
12</div>
John Criswell408128d2003-09-11 19:58:03 +000013
Misha Brukmanb4107632004-07-01 16:04:49 +000014<div class="doc_text">
John Criswell408128d2003-09-11 19:58:03 +000015
Misha Brukmanb4107632004-07-01 16:04:49 +000016<p>This document is the reference manual for the LLVM utilities. It will
17show you how to use the LLVM commands and what their options are. Note that in
18the descriptions below, `bytecode' and `program' refer to LLVM bytecode files
19and assembly programs, respectively.</p>
Chris Lattner46b359c2003-10-07 20:05:23 +000020
Misha Brukmanb4107632004-07-01 16:04:49 +000021<ul>
22 <li><a href="#basic">Basic Commands</a></li>
23 <li><a href="#frontend">C and C++ Frond-end Commands</a></li>
24 <li><a href="#debug">Debugging commands</a></li>
25</ul>
Chris Lattner46b359c2003-10-07 20:05:23 +000026
Misha Brukmanb4107632004-07-01 16:04:49 +000027</div>
John Criswell408128d2003-09-11 19:58:03 +000028
Misha Brukmanb4107632004-07-01 16:04:49 +000029<!-- *********************************************************************** -->
30<div class="doc_section">
31 <a name="basic">Basic Commands</a>
32</div>
33<!-- *********************************************************************** -->
John Criswell408128d2003-09-11 19:58:03 +000034
Misha Brukmanb4107632004-07-01 16:04:49 +000035<div class="doc_text">
John Criswell408128d2003-09-11 19:58:03 +000036
Misha Brukmanb4107632004-07-01 16:04:49 +000037<ul>
John Criswell408128d2003-09-11 19:58:03 +000038
Misha Brukmanb4107632004-07-01 16:04:49 +000039<li><a href="llvm-as.html"><b>llvm-as</b></a> -
40 assemble a human-readable program into bytecode</li>
John Criswell408128d2003-09-11 19:58:03 +000041
Misha Brukmanb4107632004-07-01 16:04:49 +000042<li><a href="llvm-dis.html"><b>llvm-dis</b></a> -
43 disassemble a bytecode file into human-readable form</li>
John Criswell408128d2003-09-11 19:58:03 +000044
Misha Brukmanb4107632004-07-01 16:04:49 +000045<li><a href="analyze.html"><b>analyze</b></a> -
46 analyze a bytecode file</li>
Chris Lattnerd57aa5e82003-11-02 02:10:54 +000047
Misha Brukmanb4107632004-07-01 16:04:49 +000048<li><a href="opt.html"><b>opt</b></a> -
49 optimize a bytecode file</li>
Chris Lattnerd57aa5e82003-11-02 02:10:54 +000050
Misha Brukmanb4107632004-07-01 16:04:49 +000051<li><a href="llc.html"><b>llc</b></a> -
52 compile a bytecode program into native machine code</li>
Chris Lattnerd57aa5e82003-11-02 02:10:54 +000053
Misha Brukmanb4107632004-07-01 16:04:49 +000054<li><a href="lli.html"><b>lli</b></a> -
55 run a bytecode program using either an interpreter or a JIT compiler</li>
John Criswell408128d2003-09-11 19:58:03 +000056
Misha Brukmanb4107632004-07-01 16:04:49 +000057<li><a href="llvm-link.html"><b>llvm-link</b></A>
58 link several bytecode files into one</li>
John Criswella9060d82003-09-11 20:23:52 +000059
Misha Brukmanb4107632004-07-01 16:04:49 +000060<li><a href="llvm-nm.html"><b>llvm-nm</b></a>
61 print out the names and types of symbols in a bytecode file</li>
John Criswella9060d82003-09-11 20:23:52 +000062
Misha Brukmanb4107632004-07-01 16:04:49 +000063<li><a href="llvm-prof.html"><b>llvm-prof</b></a> -
64 transform raw `<tt>llvmprof.out</tt>' data into a human-readable report</li>
John Criswell1ce56bd2003-10-03 13:48:27 +000065
Misha Brukmanb4107632004-07-01 16:04:49 +000066</ul>
John Criswell1ce56bd2003-10-03 13:48:27 +000067
Misha Brukmanb4107632004-07-01 16:04:49 +000068</div>
John Criswella9060d82003-09-11 20:23:52 +000069
Misha Brukmanb4107632004-07-01 16:04:49 +000070<!-- *********************************************************************** -->
71<div class="doc_section">
72 <a name="frontend">C and C++ Front-end Commands</a>
73</div>
74<!-- *********************************************************************** -->
John Criswella9060d82003-09-11 20:23:52 +000075
Misha Brukmanb4107632004-07-01 16:04:49 +000076<div class="doc_text">
Chris Lattner46b359c2003-10-07 20:05:23 +000077
Misha Brukmanb4107632004-07-01 16:04:49 +000078<ul>
Chris Lattner46b359c2003-10-07 20:05:23 +000079
Misha Brukmanb4107632004-07-01 16:04:49 +000080<li><a href="llvmgcc.html"><b>llvmgcc</b></a> -
81 GCC-based C front end for LLVM
82
83<li><a href="llvmgxx.html"><b>llvmg++</b></a> -
84 GCC-based C++ front end for LLVM</li>
85
86<li><a href="gccas.html"><b>gccas</b></a> -
87 optimizing assembler used by llvm-g++ and llvm-gcc</li>
88
89<li><a href="gccld.html"><b>gccld</b></a> -
90 optimizing linker used by llvm-g++ and llvm-gcc</li>
91
92</ul>
93
94</div>
95
96<!-- *********************************************************************** -->
97<div class="doc_section">
98 <a name="debug">Debugging Tools</a>
99</div>
100<!-- *********************************************************************** -->
Chris Lattner46b359c2003-10-07 20:05:23 +0000101
102
Misha Brukmanb4107632004-07-01 16:04:49 +0000103<div class="doc_text">
104
105<ul>
106
107<li><a href="bugpoint.html"><b>bugpoint</b></a> -
108 automatic test-case reducer</li>
109
110<li><a href="extract.html"><b>extract</b></a> -
111 extract a function from an LLVM bytecode file</li>
112
113</ul>
114
115</div>
116
117<!-- *********************************************************************** -->
118
119<hr>
120<address>
121 <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
122 src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a>
123 <a href="http://validator.w3.org/check/referer"><img
124 src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
125
126 <a href="mailto:criswell at cs dot uiuc dot edu">John Criswell</a><br>
127 <a href="http://llvm.cs.uiuc.edu">LLVM Compiler Infrastructure</a><br>
128 Last modified: $Date$
129</address>
Chris Lattner46b359c2003-10-07 20:05:23 +0000130
Misha Brukman47e7fd22003-10-31 00:39:28 +0000131</body>
John Criswell408128d2003-09-11 19:58:03 +0000132</html>