blob: 5cac65cd0b723fbc01583f2f73775bd0c3856ae9 [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>
Reid Spencere14b7332007-07-09 06:32:55 +00006 <link rel="stylesheet" href="/docs/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 Spencerade052e52007-08-05 23:43:44 +000035<li><a href="/cmds/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 Spencerade052e52007-08-05 23:43:44 +000038<li><a href="/cmds/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 Spencerade052e52007-08-05 23:43:44 +000041<li><a href="/cmds/llvm-upgrade.html"><b>llvm-upgrade</b></a> -
Reid Spencer963bdf32006-12-02 16:35:42 +000042 upgrade LLVM assembly from previous version</li>
43
Reid Spencerade052e52007-08-05 23:43:44 +000044<li><a href="/cmds/opt.html"><b>opt</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000045 run a series of LLVM-to-LLVM optimizations on a bytecode file</li>
Chris Lattnerd57aa5e82003-11-02 02:10:54 +000046
Reid Spencerade052e52007-08-05 23:43:44 +000047<li><a href="/cmds/llc.html"><b>llc</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000048 generate native machine code for a bytecode file</li>
Chris Lattnerd57aa5e82003-11-02 02:10:54 +000049
Reid Spencerade052e52007-08-05 23:43:44 +000050<li><a href="/cmds/lli.html"><b>lli</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000051 directly run a program compiled to bytecode using a JIT compiler or
52 interpreter</li>
John Criswell408128d2003-09-11 19:58:03 +000053
Reid Spencerade052e52007-08-05 23:43:44 +000054<li><a href="/cmds/llvm-link.html"><b>llvm-link</b></a> -
Misha Brukmanb4107632004-07-01 16:04:49 +000055 link several bytecode files into one</li>
John Criswella9060d82003-09-11 20:23:52 +000056
Reid Spencerade052e52007-08-05 23:43:44 +000057<li><a href="/cmds/llvm-ar.html"><b>llvm-ar</b></a> -
Reid Spencere4485002004-11-11 09:30:00 +000058 archive bytecode files</li>
59
Reid Spencerade052e52007-08-05 23:43:44 +000060<li><a href="/cmds/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 Spencerade052e52007-08-05 23:43:44 +000063<li><a href="/cmds/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 Spencerade052e52007-08-05 23:43:44 +000066<li><a href="/cmds/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 Spencerade052e52007-08-05 23:43:44 +000069<li><a href="/cmds/llvmc.html"><b>llvmc</b></a> -
Reid Spencerf8685392004-11-29 04:32:37 +000070 generic and configurable compiler driver</li>
71
Reid Spencerade052e52007-08-05 23:43:44 +000072<li><a href="/cmds/llvm-ld.html"><b>llvm-ld</b></a> -
Reid Spencerf8685392004-11-29 04:32:37 +000073 general purpose linker with loadable runtime optimization support</li>
74
Reid Spencerade052e52007-08-05 23:43:44 +000075<li><a href="/cmds/llvm-config.html"><b>llvm-config</b></a> -
Reid Spencerf9aa6882006-05-30 19:56:31 +000076 print out LLVM compilation options, libraries, etc. as configured.</li>
Reid Spencer95680d12006-03-24 00:03:37 +000077
Reid Spencerade052e52007-08-05 23:43:44 +000078 <li><a href="/cmds/llvm2cpp.html"><b>llvm2cpp</b></a> - convert LLVM assembly
Reid Spencerf9aa6882006-05-30 19:56:31 +000079 into the corresponding LLVM C++ API calls to produce it</li>
Misha Brukmanb4107632004-07-01 16:04:49 +000080</ul>
John Criswell1ce56bd2003-10-03 13:48:27 +000081
Misha Brukmanb4107632004-07-01 16:04:49 +000082</div>
John Criswella9060d82003-09-11 20:23:52 +000083
Misha Brukmanb4107632004-07-01 16:04:49 +000084<!-- *********************************************************************** -->
85<div class="doc_section">
Chris Lattnerf61dbba2004-07-10 21:43:12 +000086 <a name="frontend">C, C++, and Stacker Front-end Commands</a>
Misha Brukmanb4107632004-07-01 16:04:49 +000087</div>
88<!-- *********************************************************************** -->
John Criswella9060d82003-09-11 20:23:52 +000089
Misha Brukmanb4107632004-07-01 16:04:49 +000090<div class="doc_text">
Misha Brukmanb4107632004-07-01 16:04:49 +000091<ul>
Chris Lattner46b359c2003-10-07 20:05:23 +000092
Reid Spencerade052e52007-08-05 23:43:44 +000093<li><a href="/cmds/llvmgcc.html"><b>llvmgcc</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000094 GCC-based C front-end for LLVM
Misha Brukmanb4107632004-07-01 16:04:49 +000095
Reid Spencerade052e52007-08-05 23:43:44 +000096<li><a href="/cmds/llvmgxx.html"><b>llvmg++</b></a> -
Chris Lattner517d6502004-07-10 06:06:56 +000097 GCC-based C++ front-end for LLVM</li>
Misha Brukmanb4107632004-07-01 16:04:49 +000098
Reid Spencerade052e52007-08-05 23:43:44 +000099<li><a href="/cmds/stkrc.html"><b>stkrc</b></a> -
Chris Lattnerf61dbba2004-07-10 21:43:12 +0000100 front-end compiler for the <a href="../Stacker.html">Stacker</a>
101 language</li>
102
Misha Brukmanb4107632004-07-01 16:04:49 +0000103</ul>
104
105</div>
106
107<!-- *********************************************************************** -->
108<div class="doc_section">
109 <a name="debug">Debugging Tools</a>
110</div>
111<!-- *********************************************************************** -->
Chris Lattner46b359c2003-10-07 20:05:23 +0000112
113
Misha Brukmanb4107632004-07-01 16:04:49 +0000114<div class="doc_text">
115
116<ul>
117
Reid Spencerade052e52007-08-05 23:43:44 +0000118<li><a href="/cmds/bugpoint.html"><b>bugpoint</b></a> -
Misha Brukmanb4107632004-07-01 16:04:49 +0000119 automatic test-case reducer</li>
120
Reid Spencerade052e52007-08-05 23:43:44 +0000121<li><a href="/cmds/llvm-extract.html"><b>llvm-extract</b></a> -
Misha Brukmanb4107632004-07-01 16:04:49 +0000122 extract a function from an LLVM bytecode file</li>
123
Reid Spencerade052e52007-08-05 23:43:44 +0000124<li><a href="/cmds/llvm-bcanalyzer.html"><b>llvm-bcanalyzer</b></a> -
Misha Brukman61a747f2004-07-01 16:59:05 +0000125 bytecode analyzer (analyzes the binary encoding itself, not the program it
126 represents)</li>
127
Misha Brukmanb4107632004-07-01 16:04:49 +0000128</ul>
Chris Lattner5d112312006-06-02 17:43:38 +0000129</div>
Misha Brukmanb4107632004-07-01 16:04:49 +0000130
Chris Lattner5d112312006-06-02 17:43:38 +0000131<!-- *********************************************************************** -->
132<div class="doc_section">
133 <a name="internal">Internal Tools</a>
134</div>
135<!-- *********************************************************************** -->
136
137<div class="doc_text">
138<ul>
139
Reid Spencerade052e52007-08-05 23:43:44 +0000140<li><a href="/cmds/tblgen.html"><b>tblgen</b></a> -
Chris Lattner5d112312006-06-02 17:43:38 +0000141 target description reader and generator</li>
142
143</ul>
Misha Brukmanb4107632004-07-01 16:04:49 +0000144</div>
145
146<!-- *********************************************************************** -->
147
148<hr>
149<address>
150 <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
151 src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a>
152 <a href="http://validator.w3.org/check/referer"><img
153 src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
154
Reid Spencer85d182f2006-03-14 05:42:07 +0000155 <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br>
Misha Brukmanb4107632004-07-01 16:04:49 +0000156 Last modified: $Date$
157</address>
Chris Lattner46b359c2003-10-07 20:05:23 +0000158
Misha Brukman47e7fd22003-10-31 00:39:28 +0000159</body>
John Criswell408128d2003-09-11 19:58:03 +0000160</html>