blob: baab3ed8312785633c65221397e21c48dad1fe7d [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
Chris Lattner517d6502004-07-10 06:06:56 +000016<p>These documents are HTML versions of the <a href="man/man1/">man pages</a>
17for all of the LLVM tools. These pages describe how to use the LLVM commands
18and what their options are. Note that these pages do not describe all of the
19options available for all tools. To get a complete listing, pass the
20<tt>--help</tt> (general options) or <tt>--help-hidden</tt> (general+debugging
21options) arguments to the tool you are interested in.</p>
Chris Lattner46b359c2003-10-07 20:05:23 +000022
Misha Brukmanb4107632004-07-01 16:04:49 +000023</div>
John Criswell408128d2003-09-11 19:58:03 +000024
Misha Brukmanb4107632004-07-01 16:04:49 +000025<!-- *********************************************************************** -->
26<div class="doc_section">
27 <a name="basic">Basic Commands</a>
28</div>
29<!-- *********************************************************************** -->
John Criswell408128d2003-09-11 19:58:03 +000030
Misha Brukmanb4107632004-07-01 16:04:49 +000031<div class="doc_text">
John Criswell408128d2003-09-11 19:58:03 +000032
Misha Brukmanb4107632004-07-01 16:04:49 +000033<ul>
John Criswell408128d2003-09-11 19:58:03 +000034
Reid Spencerf8685392004-11-29 04:32:37 +000035<li><a href="llvm-as.html"><b>llvm-as</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000036 assemble a human-readable .ll file into bytecode</li>
John Criswell408128d2003-09-11 19:58:03 +000037
Reid Spencerf8685392004-11-29 04:32:37 +000038<li><a href="llvm-dis.html"><b>llvm-dis</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000039 disassemble a bytecode file into a human-readable .ll file</li>
Chris Lattnerd57aa5e82003-11-02 02:10:54 +000040
Reid Spencerf8685392004-11-29 04:32:37 +000041<li><a href="opt.html"><b>opt</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000042 run a series of LLVM-to-LLVM optimizations on a bytecode file</li>
Chris Lattnerd57aa5e82003-11-02 02:10:54 +000043
Reid Spencerf8685392004-11-29 04:32:37 +000044<li><a href="llc.html"><b>llc</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000045 generate native machine code for a bytecode file</li>
Chris Lattnerd57aa5e82003-11-02 02:10:54 +000046
Reid Spencerf8685392004-11-29 04:32:37 +000047<li><a href="lli.html"><b>lli</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000048 directly run a program compiled to bytecode using a JIT compiler or
49 interpreter</li>
John Criswell408128d2003-09-11 19:58:03 +000050
Reid Spencerf8685392004-11-29 04:32:37 +000051<li><a href="llvm-link.html"><b>llvm-link</b></a> -
Misha Brukmanb4107632004-07-01 16:04:49 +000052 link several bytecode files into one</li>
John Criswella9060d82003-09-11 20:23:52 +000053
Reid Spencerf8685392004-11-29 04:32:37 +000054<li><a href="analyze.html"><b>analyze</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000055 run LLVM analyses on a bytecode file and print the results</li>
56
Reid Spencerf8685392004-11-29 04:32:37 +000057<li><a href="llvm-ar.html"><b>llvm-ar</b></a> -
Reid Spencere4485002004-11-11 09:30:00 +000058 archive bytecode files</li>
59
Reid Spencerf8685392004-11-29 04:32:37 +000060<li><a href="llvm-ranlib.html"><b>llvm-ranlib</b></a> -
Misha Brukmana8e17182004-11-15 19:53:43 +000061 create an index for archives made with llvm-ar</li>
62
Reid Spencerf8685392004-11-29 04:32:37 +000063<li><a href="llvm-nm.html"><b>llvm-nm</b></a> -
Misha Brukmanb4107632004-07-01 16:04:49 +000064 print out the names and types of symbols in a bytecode file</li>
John Criswella9060d82003-09-11 20:23:52 +000065
Reid Spencerf8685392004-11-29 04:32:37 +000066<li><a href="llvm-prof.html"><b>llvm-prof</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000067 format raw `<tt>llvmprof.out</tt>' data into a human-readable report</li>
John Criswell1ce56bd2003-10-03 13:48:27 +000068
Reid Spencerf8685392004-11-29 04:32:37 +000069<li><a href="llvmc.html"><b>llvmc</b></a> -
70 generic and configurable compiler driver</li>
71
72<li><a href="llvm-ld.html"><b>llvm-ld</b></a> -
73 general purpose linker with loadable runtime optimization support</li>
74
Misha Brukmanb4107632004-07-01 16:04:49 +000075</ul>
John Criswell1ce56bd2003-10-03 13:48:27 +000076
Misha Brukmanb4107632004-07-01 16:04:49 +000077</div>
John Criswella9060d82003-09-11 20:23:52 +000078
Misha Brukmanb4107632004-07-01 16:04:49 +000079<!-- *********************************************************************** -->
80<div class="doc_section">
Chris Lattnerf61dbba2004-07-10 21:43:12 +000081 <a name="frontend">C, C++, and Stacker Front-end Commands</a>
Misha Brukmanb4107632004-07-01 16:04:49 +000082</div>
83<!-- *********************************************************************** -->
John Criswella9060d82003-09-11 20:23:52 +000084
Misha Brukmanb4107632004-07-01 16:04:49 +000085<div class="doc_text">
Misha Brukmanb4107632004-07-01 16:04:49 +000086<ul>
Chris Lattner46b359c2003-10-07 20:05:23 +000087
Reid Spencerf8685392004-11-29 04:32:37 +000088<li><a href="llvmgcc.html"><b>llvmgcc</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000089 GCC-based C front-end for LLVM
Misha Brukmanb4107632004-07-01 16:04:49 +000090
Reid Spencerf8685392004-11-29 04:32:37 +000091<li><a href="llvmgxx.html"><b>llvmg++</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000092 GCC-based C++ front-end for LLVM</li>
Misha Brukmanb4107632004-07-01 16:04:49 +000093
Reid Spencerf8685392004-11-29 04:32:37 +000094<li><a href="gccas.html"><b>gccas</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000095 compile-time optimizer used by llvm-g++ and llvm-gcc</li>
Misha Brukmanb4107632004-07-01 16:04:49 +000096
Reid Spencerf8685392004-11-29 04:32:37 +000097<li><a href="gccld.html"><b>gccld</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000098 linker and link-time optimizer used by llvm-g++ and llvm-gcc</li>
Misha Brukmanb4107632004-07-01 16:04:49 +000099
Reid Spencerf8685392004-11-29 04:32:37 +0000100<li><a href="stkrc.html"><b>stkrc</b></a> -
Chris Lattnerf61dbba2004-07-10 21:43:12 +0000101 front-end compiler for the <a href="../Stacker.html">Stacker</a>
102 language</li>
103
Misha Brukmanb4107632004-07-01 16:04:49 +0000104</ul>
105
106</div>
107
108<!-- *********************************************************************** -->
109<div class="doc_section">
110 <a name="debug">Debugging Tools</a>
111</div>
112<!-- *********************************************************************** -->
Chris Lattner46b359c2003-10-07 20:05:23 +0000113
114
Misha Brukmanb4107632004-07-01 16:04:49 +0000115<div class="doc_text">
116
117<ul>
118
Reid Spencerf8685392004-11-29 04:32:37 +0000119<li><a href="bugpoint.html"><b>bugpoint</b></a> -
Misha Brukmanb4107632004-07-01 16:04:49 +0000120 automatic test-case reducer</li>
121
Reid Spencerf8685392004-11-29 04:32:37 +0000122<li><a href="extract.html"><b>extract</b></a> -
Misha Brukmanb4107632004-07-01 16:04:49 +0000123 extract a function from an LLVM bytecode file</li>
124
Reid Spencerf8685392004-11-29 04:32:37 +0000125<li><a href="llvm-bcanalyzer.html"><b>llvm-bcanalyzer</b></a> -
Misha Brukman61a747f2004-07-01 16:59:05 +0000126 bytecode analyzer (analyzes the binary encoding itself, not the program it
127 represents)</li>
128
Misha Brukmanb4107632004-07-01 16:04:49 +0000129</ul>
130
131</div>
132
133<!-- *********************************************************************** -->
134
135<hr>
136<address>
137 <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
138 src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a>
139 <a href="http://validator.w3.org/check/referer"><img
140 src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
141
Misha Brukmanb4107632004-07-01 16:04:49 +0000142 <a href="http://llvm.cs.uiuc.edu">LLVM Compiler Infrastructure</a><br>
143 Last modified: $Date$
144</address>
Chris Lattner46b359c2003-10-07 20:05:23 +0000145
Misha Brukman47e7fd22003-10-31 00:39:28 +0000146</body>
John Criswell408128d2003-09-11 19:58:03 +0000147</html>