blob: 8854fbbebe6b8001f50117fda03ced2277853686 [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>
mike-me2c3a492010-05-07 00:28:04 +00006 <link rel="stylesheet" href="/docs/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
Mikhail Glushenkova606d1f2008-11-25 21:38:38 +000018and 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
Duncan Sands7e7ae5a2010-02-18 14:08:13 +000020<tt>-help</tt> (general options) or <tt>-help-hidden</tt> (general+debugging
Chris Lattner1a5a79c2004-07-10 06:06:56 +000021options) 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
Tanya Lattner10934e82010-05-11 16:47:42 +000025<!-- *********************************************************************** -->
Misha Brukman38ca9be2004-07-01 16:04:49 +000026<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
mike-me2c3a492010-05-07 00:28:04 +000035<li><a href="/cmds/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
mike-me2c3a492010-05-07 00:28:04 +000038<li><a href="/cmds/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
mike-me2c3a492010-05-07 00:28:04 +000041<li><a href="/cmds/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
mike-me2c3a492010-05-07 00:28:04 +000044<li><a href="/cmds/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
mike-me2c3a492010-05-07 00:28:04 +000047<li><a href="/cmds/lli.html"><b>lli</b></a> -
Mikhail Glushenkova606d1f2008-11-25 21:38:38 +000048 directly run a program compiled to bytecode using a JIT compiler or
Chris Lattner1a5a79c2004-07-10 06:06:56 +000049 interpreter</li>
John Criswellecf32e52003-09-11 19:58:03 +000050
mike-me2c3a492010-05-07 00:28:04 +000051<li><a href="/cmds/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
mike-me2c3a492010-05-07 00:28:04 +000054<li><a href="/cmds/llvm-ar.html"><b>llvm-ar</b></a> -
Reid Spencer0aa18992004-11-11 09:30:00 +000055 archive bytecode files</li>
56
mike-me2c3a492010-05-07 00:28:04 +000057<li><a href="/cmds/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
mike-me2c3a492010-05-07 00:28:04 +000060<li><a href="/cmds/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
mike-me2c3a492010-05-07 00:28:04 +000063<li><a href="/cmds/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
mike-me2c3a492010-05-07 00:28:04 +000066<li><a href="/cmds/llvm-ld.html"><b>llvm-ld</b></a> -
Misha Brukman39309df2008-12-11 17:12:52 +000067 general purpose linker with loadable runtime optimization support</li>
Reid Spencer38f98b52004-11-29 04:32:37 +000068
mike-me2c3a492010-05-07 00:28:04 +000069<li><a href="/cmds/llvm-config.html"><b>llvm-config</b></a> -
Misha Brukman39309df2008-12-11 17:12:52 +000070 print out LLVM compilation options, libraries, etc. as configured</li>
Reid Spencercbe3a782006-03-24 00:03:37 +000071
mike-me2c3a492010-05-07 00:28:04 +000072<li><a href="/cmds/llvmc.html"><b>llvmc</b></a> -
Misha Brukman39309df2008-12-11 17:12:52 +000073 a generic customizable compiler driver</li>
Mikhail Glushenkova606d1f2008-11-25 21:38:38 +000074
John McCall8c359362010-09-07 23:10:21 +000075<li><a href="/cmds/llvm-diff.html"><b>llvm-diff</b></a> -
76 structurally compare two modules</li>
77
Misha Brukman38ca9be2004-07-01 16:04:49 +000078</ul>
John Criswellaa5ff242003-10-03 13:48:27 +000079
Misha Brukman38ca9be2004-07-01 16:04:49 +000080</div>
John Criswell32003302003-09-11 20:23:52 +000081
Misha Brukman38ca9be2004-07-01 16:04:49 +000082<!-- *********************************************************************** -->
83<div class="doc_section">
Chris Lattner01924d02008-08-06 05:57:58 +000084 <a name="frontend">C and C++ Front-end Commands</a>
Misha Brukman38ca9be2004-07-01 16:04:49 +000085</div>
86<!-- *********************************************************************** -->
John Criswell32003302003-09-11 20:23:52 +000087
Misha Brukman38ca9be2004-07-01 16:04:49 +000088<div class="doc_text">
Misha Brukman38ca9be2004-07-01 16:04:49 +000089<ul>
Chris Lattnerd053efd2003-10-07 20:05:23 +000090
mike-me2c3a492010-05-07 00:28:04 +000091<li><a href="/cmds/llvmgcc.html"><b>llvm-gcc</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000092 GCC-based C front-end for LLVM
Misha Brukman38ca9be2004-07-01 16:04:49 +000093
mike-me2c3a492010-05-07 00:28:04 +000094<li><a href="/cmds/llvmgxx.html"><b>llvm-g++</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000095 GCC-based C++ front-end for LLVM</li>
Misha Brukman38ca9be2004-07-01 16:04:49 +000096
Misha Brukman38ca9be2004-07-01 16:04:49 +000097</ul>
98
99</div>
100
101<!-- *********************************************************************** -->
102<div class="doc_section">
103 <a name="debug">Debugging Tools</a>
104</div>
105<!-- *********************************************************************** -->
Chris Lattnerd053efd2003-10-07 20:05:23 +0000106
107
Misha Brukman38ca9be2004-07-01 16:04:49 +0000108<div class="doc_text">
109
110<ul>
111
mike-me2c3a492010-05-07 00:28:04 +0000112<li><a href="/cmds/bugpoint.html"><b>bugpoint</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +0000113 automatic test-case reducer</li>
114
mike-me2c3a492010-05-07 00:28:04 +0000115<li><a href="/cmds/llvm-extract.html"><b>llvm-extract</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +0000116 extract a function from an LLVM bytecode file</li>
117
mike-me2c3a492010-05-07 00:28:04 +0000118<li><a href="/cmds/llvm-bcanalyzer.html"><b>llvm-bcanalyzer</b></a> -
Misha Brukman95bba872004-07-01 16:59:05 +0000119 bytecode analyzer (analyzes the binary encoding itself, not the program it
120 represents)</li>
121
Misha Brukman38ca9be2004-07-01 16:04:49 +0000122</ul>
Chris Lattnerc95cf1d2006-06-02 17:43:38 +0000123</div>
Misha Brukman38ca9be2004-07-01 16:04:49 +0000124
Chris Lattnerc95cf1d2006-06-02 17:43:38 +0000125<!-- *********************************************************************** -->
126<div class="doc_section">
127 <a name="internal">Internal Tools</a>
128</div>
129<!-- *********************************************************************** -->
130
131<div class="doc_text">
132<ul>
133
mike-me2c3a492010-05-07 00:28:04 +0000134<li><a href="/cmds/FileCheck.html"><b>FileCheck</b></a> -
Chris Lattner9d3787b2009-08-15 15:38:11 +0000135 Flexible file verifier used extensively by the testing harness</li>
mike-me2c3a492010-05-07 00:28:04 +0000136<li><a href="/cmds/tblgen.html"><b>tblgen</b></a> -
Chris Lattnerc95cf1d2006-06-02 17:43:38 +0000137 target description reader and generator</li>
mike-me2c3a492010-05-07 00:28:04 +0000138<li><a href="/cmds/lit.html"><b>lit</b></a> -
Daniel Dunbar8b828a82009-10-19 03:54:13 +0000139 LLVM Integrated Tester, for running tests</li>
Chris Lattnerc95cf1d2006-06-02 17:43:38 +0000140
141</ul>
Misha Brukman38ca9be2004-07-01 16:04:49 +0000142</div>
143
144<!-- *********************************************************************** -->
145
146<hr>
147<address>
148 <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
Misha Brukman39309df2008-12-11 17:12:52 +0000149 src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS"></a>
Misha Brukman38ca9be2004-07-01 16:04:49 +0000150 <a href="http://validator.w3.org/check/referer"><img
Misha Brukman39309df2008-12-11 17:12:52 +0000151 src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a>
Misha Brukman38ca9be2004-07-01 16:04:49 +0000152
Reid Spencercd143fc2006-03-14 05:42:07 +0000153 <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br>
Misha Brukman38ca9be2004-07-01 16:04:49 +0000154 Last modified: $Date$
155</address>
Chris Lattnerd053efd2003-10-07 20:05:23 +0000156
Misha Brukmanc6ad94c2003-10-31 00:39:28 +0000157</body>
John Criswellecf32e52003-09-11 19:58:03 +0000158</html>