blob: 166cca1bade450ec61486276b4ad313a69fca81b [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>
NAKAMURA Takumiee699262011-04-11 03:27:38 +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
NAKAMURA Takumi05d02652011-04-18 23:59:50 +000010<h1>
Misha Brukman38ca9be2004-07-01 16:04:49 +000011 LLVM Command Guide
NAKAMURA Takumi05d02652011-04-18 23:59:50 +000012</h1>
John Criswellecf32e52003-09-11 19:58:03 +000013
NAKAMURA Takumif5af6ad2011-04-23 00:30:22 +000014<div>
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<!-- *********************************************************************** -->
NAKAMURA Takumi05d02652011-04-18 23:59:50 +000026<h2>
Misha Brukman38ca9be2004-07-01 16:04:49 +000027 <a name="basic">Basic Commands</a>
NAKAMURA Takumi05d02652011-04-18 23:59:50 +000028</h2>
Misha Brukman38ca9be2004-07-01 16:04:49 +000029<!-- *********************************************************************** -->
John Criswellecf32e52003-09-11 19:58:03 +000030
NAKAMURA Takumif5af6ad2011-04-23 00:30:22 +000031<div>
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
John McCall8c359362010-09-07 23:10:21 +000072<li><a href="/cmds/llvm-diff.html"><b>llvm-diff</b></a> -
73 structurally compare two modules</li>
74
Misha Brukman38ca9be2004-07-01 16:04:49 +000075</ul>
John Criswellaa5ff242003-10-03 13:48:27 +000076
Misha Brukman38ca9be2004-07-01 16:04:49 +000077</div>
John Criswell32003302003-09-11 20:23:52 +000078
Misha Brukman38ca9be2004-07-01 16:04:49 +000079<!-- *********************************************************************** -->
NAKAMURA Takumi05d02652011-04-18 23:59:50 +000080<h2>
Misha Brukman38ca9be2004-07-01 16:04:49 +000081 <a name="debug">Debugging Tools</a>
NAKAMURA Takumi05d02652011-04-18 23:59:50 +000082</h2>
Misha Brukman38ca9be2004-07-01 16:04:49 +000083<!-- *********************************************************************** -->
Chris Lattnerd053efd2003-10-07 20:05:23 +000084
85
NAKAMURA Takumif5af6ad2011-04-23 00:30:22 +000086<div>
Misha Brukman38ca9be2004-07-01 16:04:49 +000087
88<ul>
89
mike-me2c3a492010-05-07 00:28:04 +000090<li><a href="/cmds/bugpoint.html"><b>bugpoint</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +000091 automatic test-case reducer</li>
92
mike-me2c3a492010-05-07 00:28:04 +000093<li><a href="/cmds/llvm-extract.html"><b>llvm-extract</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +000094 extract a function from an LLVM bytecode file</li>
95
mike-me2c3a492010-05-07 00:28:04 +000096<li><a href="/cmds/llvm-bcanalyzer.html"><b>llvm-bcanalyzer</b></a> -
Misha Brukman95bba872004-07-01 16:59:05 +000097 bytecode analyzer (analyzes the binary encoding itself, not the program it
98 represents)</li>
99
Misha Brukman38ca9be2004-07-01 16:04:49 +0000100</ul>
Chris Lattnerc95cf1d2006-06-02 17:43:38 +0000101</div>
Misha Brukman38ca9be2004-07-01 16:04:49 +0000102
Chris Lattnerc95cf1d2006-06-02 17:43:38 +0000103<!-- *********************************************************************** -->
NAKAMURA Takumi05d02652011-04-18 23:59:50 +0000104<h2>
Chris Lattnerc95cf1d2006-06-02 17:43:38 +0000105 <a name="internal">Internal Tools</a>
NAKAMURA Takumi05d02652011-04-18 23:59:50 +0000106</h2>
Chris Lattnerc95cf1d2006-06-02 17:43:38 +0000107<!-- *********************************************************************** -->
108
NAKAMURA Takumif5af6ad2011-04-23 00:30:22 +0000109<div>
Chris Lattnerc95cf1d2006-06-02 17:43:38 +0000110<ul>
111
mike-me2c3a492010-05-07 00:28:04 +0000112<li><a href="/cmds/FileCheck.html"><b>FileCheck</b></a> -
Chris Lattner9d3787b2009-08-15 15:38:11 +0000113 Flexible file verifier used extensively by the testing harness</li>
mike-me2c3a492010-05-07 00:28:04 +0000114<li><a href="/cmds/tblgen.html"><b>tblgen</b></a> -
Chris Lattnerc95cf1d2006-06-02 17:43:38 +0000115 target description reader and generator</li>
mike-me2c3a492010-05-07 00:28:04 +0000116<li><a href="/cmds/lit.html"><b>lit</b></a> -
Daniel Dunbar8b828a82009-10-19 03:54:13 +0000117 LLVM Integrated Tester, for running tests</li>
Chris Lattnerc95cf1d2006-06-02 17:43:38 +0000118
119</ul>
Misha Brukman38ca9be2004-07-01 16:04:49 +0000120</div>
121
122<!-- *********************************************************************** -->
123
124<hr>
125<address>
126 <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
Misha Brukman39309df2008-12-11 17:12:52 +0000127 src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS"></a>
Misha Brukman38ca9be2004-07-01 16:04:49 +0000128 <a href="http://validator.w3.org/check/referer"><img
Misha Brukman39309df2008-12-11 17:12:52 +0000129 src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a>
Misha Brukman38ca9be2004-07-01 16:04:49 +0000130
NAKAMURA Takumib9a33632011-04-09 02:13:37 +0000131 <a href="http://llvm.org/">LLVM Compiler Infrastructure</a><br>
Misha Brukman38ca9be2004-07-01 16:04:49 +0000132 Last modified: $Date$
133</address>
Chris Lattnerd053efd2003-10-07 20:05:23 +0000134
Misha Brukmanc6ad94c2003-10-31 00:39:28 +0000135</body>
John Criswellecf32e52003-09-11 19:58:03 +0000136</html>