blob: 349da742befc6b4f9a7e39aafa2cf0beab38b065 [file] [log] [blame]
Misha Brukman38ca9be2004-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 Criswellecf32e52003-09-11 19:58:03 +00003<html>
Misha Brukmanc6ad94c2003-10-31 00:39:28 +00004<head>
5 <title>LLVM Command Guide</title>
Misha Brukman38ca9be2004-07-01 16:04:49 +00006 <link rel="stylesheet" href="../llvm.css" type="text/css">
Misha Brukmanc6ad94c2003-10-31 00:39:28 +00007</head>
Misha Brukman38ca9be2004-07-01 16:04:49 +00008<body>
John Criswellecf32e52003-09-11 19:58:03 +00009
Misha Brukman38ca9be2004-07-01 16:04:49 +000010<div class="doc_title">
11 LLVM Command Guide
12</div>
John Criswellecf32e52003-09-11 19:58:03 +000013
Misha Brukman38ca9be2004-07-01 16:04:49 +000014<div class="doc_text">
John Criswellecf32e52003-09-11 19:58:03 +000015
Chris Lattner1a5a79c2004-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 Lattnerd053efd2003-10-07 20:05:23 +000022
Misha Brukman38ca9be2004-07-01 16:04:49 +000023</div>
John Criswellecf32e52003-09-11 19:58:03 +000024
Misha Brukman38ca9be2004-07-01 16:04:49 +000025<!-- *********************************************************************** -->
26<div class="doc_section">
27 <a name="basic">Basic Commands</a>
28</div>
29<!-- *********************************************************************** -->
John Criswellecf32e52003-09-11 19:58:03 +000030
Misha Brukman38ca9be2004-07-01 16:04:49 +000031<div class="doc_text">
John Criswellecf32e52003-09-11 19:58:03 +000032
Misha Brukman38ca9be2004-07-01 16:04:49 +000033<ul>
John Criswellecf32e52003-09-11 19:58:03 +000034
Misha Brukman233952b2004-12-09 23:25:59 +000035<li><a href="html/llvm-as.html"><b>llvm-as</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000036 assemble a human-readable .ll file into bytecode</li>
John Criswellecf32e52003-09-11 19:58:03 +000037
Misha Brukman233952b2004-12-09 23:25:59 +000038<li><a href="html/llvm-dis.html"><b>llvm-dis</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000039 disassemble a bytecode file into a human-readable .ll file</li>
Chris Lattnere66e73a2003-11-02 02:10:54 +000040
Misha Brukman233952b2004-12-09 23:25:59 +000041<li><a href="html/opt.html"><b>opt</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000042 run a series of LLVM-to-LLVM optimizations on a bytecode file</li>
Chris Lattnere66e73a2003-11-02 02:10:54 +000043
Misha Brukman233952b2004-12-09 23:25:59 +000044<li><a href="html/llc.html"><b>llc</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000045 generate native machine code for a bytecode file</li>
Chris Lattnere66e73a2003-11-02 02:10:54 +000046
Misha Brukman233952b2004-12-09 23:25:59 +000047<li><a href="html/lli.html"><b>lli</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000048 directly run a program compiled to bytecode using a JIT compiler or
49 interpreter</li>
John Criswellecf32e52003-09-11 19:58:03 +000050
Misha Brukman233952b2004-12-09 23:25:59 +000051<li><a href="html/llvm-link.html"><b>llvm-link</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +000052 link several bytecode files into one</li>
John Criswell32003302003-09-11 20:23:52 +000053
Misha Brukman233952b2004-12-09 23:25:59 +000054<li><a href="html/llvm-ar.html"><b>llvm-ar</b></a> -
Reid Spencer0aa18992004-11-11 09:30:00 +000055 archive bytecode files</li>
56
Misha Brukman233952b2004-12-09 23:25:59 +000057<li><a href="html/llvm-ranlib.html"><b>llvm-ranlib</b></a> -
Misha Brukmanbbcb10f2004-11-15 19:53:43 +000058 create an index for archives made with llvm-ar</li>
59
Misha Brukman233952b2004-12-09 23:25:59 +000060<li><a href="html/llvm-nm.html"><b>llvm-nm</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +000061 print out the names and types of symbols in a bytecode file</li>
John Criswell32003302003-09-11 20:23:52 +000062
Misha Brukman233952b2004-12-09 23:25:59 +000063<li><a href="html/llvm-prof.html"><b>llvm-prof</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000064 format raw `<tt>llvmprof.out</tt>' data into a human-readable report</li>
John Criswellaa5ff242003-10-03 13:48:27 +000065
Misha Brukman233952b2004-12-09 23:25:59 +000066<li><a href="html/llvmc.html"><b>llvmc</b></a> -
Reid Spencer38f98b52004-11-29 04:32:37 +000067 generic and configurable compiler driver</li>
68
Misha Brukman233952b2004-12-09 23:25:59 +000069<li><a href="html/llvm-ld.html"><b>llvm-ld</b></a> -
Reid Spencer38f98b52004-11-29 04:32:37 +000070 general purpose linker with loadable runtime optimization support</li>
71
Reid Spencercbe3a782006-03-24 00:03:37 +000072<li><a href="html/llvm-config.html"><b>llvm-config</b></a> -
Reid Spencere497ff12006-05-30 19:56:31 +000073 print out LLVM compilation options, libraries, etc. as configured.</li>
Reid Spencercbe3a782006-03-24 00:03:37 +000074
Reid Spencere497ff12006-05-30 19:56:31 +000075 <li><a href="html/llvm2cpp.html"><b>llvm2cpp</b></a> - convert LLVM assembly
76 into the corresponding LLVM C++ API calls to produce it</li>
Misha Brukman38ca9be2004-07-01 16:04:49 +000077</ul>
John Criswellaa5ff242003-10-03 13:48:27 +000078
Misha Brukman38ca9be2004-07-01 16:04:49 +000079</div>
John Criswell32003302003-09-11 20:23:52 +000080
Misha Brukman38ca9be2004-07-01 16:04:49 +000081<!-- *********************************************************************** -->
82<div class="doc_section">
Chris Lattner9099e3e2004-07-10 21:43:12 +000083 <a name="frontend">C, C++, and Stacker Front-end Commands</a>
Misha Brukman38ca9be2004-07-01 16:04:49 +000084</div>
85<!-- *********************************************************************** -->
John Criswell32003302003-09-11 20:23:52 +000086
Misha Brukman38ca9be2004-07-01 16:04:49 +000087<div class="doc_text">
Misha Brukman38ca9be2004-07-01 16:04:49 +000088<ul>
Chris Lattnerd053efd2003-10-07 20:05:23 +000089
Misha Brukman233952b2004-12-09 23:25:59 +000090<li><a href="html/llvmgcc.html"><b>llvmgcc</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000091 GCC-based C front-end for LLVM
Misha Brukman38ca9be2004-07-01 16:04:49 +000092
Misha Brukman233952b2004-12-09 23:25:59 +000093<li><a href="html/llvmgxx.html"><b>llvmg++</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000094 GCC-based C++ front-end for LLVM</li>
Misha Brukman38ca9be2004-07-01 16:04:49 +000095
Misha Brukman233952b2004-12-09 23:25:59 +000096<li><a href="html/gccas.html"><b>gccas</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000097 compile-time optimizer used by llvm-g++ and llvm-gcc</li>
Misha Brukman38ca9be2004-07-01 16:04:49 +000098
Misha Brukman233952b2004-12-09 23:25:59 +000099<li><a href="html/gccld.html"><b>gccld</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +0000100 linker and link-time optimizer used by llvm-g++ and llvm-gcc</li>
Misha Brukman38ca9be2004-07-01 16:04:49 +0000101
Misha Brukman233952b2004-12-09 23:25:59 +0000102<li><a href="html/stkrc.html"><b>stkrc</b></a> -
Chris Lattner9099e3e2004-07-10 21:43:12 +0000103 front-end compiler for the <a href="../Stacker.html">Stacker</a>
104 language</li>
105
Misha Brukman38ca9be2004-07-01 16:04:49 +0000106</ul>
107
108</div>
109
110<!-- *********************************************************************** -->
111<div class="doc_section">
112 <a name="debug">Debugging Tools</a>
113</div>
114<!-- *********************************************************************** -->
Chris Lattnerd053efd2003-10-07 20:05:23 +0000115
116
Misha Brukman38ca9be2004-07-01 16:04:49 +0000117<div class="doc_text">
118
119<ul>
120
Misha Brukmandc0cd022004-12-09 23:28:09 +0000121<li><a href="html/bugpoint.html"><b>bugpoint</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +0000122 automatic test-case reducer</li>
123
Misha Brukman4e8458d2005-04-24 17:46:58 +0000124<li><a href="html/llvm-extract.html"><b>llvm-extract</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +0000125 extract a function from an LLVM bytecode file</li>
126
Misha Brukman233952b2004-12-09 23:25:59 +0000127<li><a href="html/llvm-bcanalyzer.html"><b>llvm-bcanalyzer</b></a> -
Misha Brukman95bba872004-07-01 16:59:05 +0000128 bytecode analyzer (analyzes the binary encoding itself, not the program it
129 represents)</li>
130
Misha Brukman38ca9be2004-07-01 16:04:49 +0000131</ul>
Chris Lattnerc95cf1d2006-06-02 17:43:38 +0000132</div>
Misha Brukman38ca9be2004-07-01 16:04:49 +0000133
Chris Lattnerc95cf1d2006-06-02 17:43:38 +0000134<!-- *********************************************************************** -->
135<div class="doc_section">
136 <a name="internal">Internal Tools</a>
137</div>
138<!-- *********************************************************************** -->
139
140<div class="doc_text">
141<ul>
142
143<li><a href="html/tblgen.html"><b>tblgen</b></a> -
144 target description reader and generator</li>
145
146</ul>
Misha Brukman38ca9be2004-07-01 16:04:49 +0000147</div>
148
149<!-- *********************************************************************** -->
150
151<hr>
152<address>
153 <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
154 src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a>
155 <a href="http://validator.w3.org/check/referer"><img
156 src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
157
Reid Spencercd143fc2006-03-14 05:42:07 +0000158 <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br>
Misha Brukman38ca9be2004-07-01 16:04:49 +0000159 Last modified: $Date$
160</address>
Chris Lattnerd053efd2003-10-07 20:05:23 +0000161
Misha Brukmanc6ad94c2003-10-31 00:39:28 +0000162</body>
John Criswellecf32e52003-09-11 19:58:03 +0000163</html>