blob: 1ed21ce863c6ad54c0ed03b86df096e4107092dd [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 Brukman66a72ef2004-07-02 15:46:55 +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 Brukman66a72ef2004-07-02 15:46:55 +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 Brukman66a72ef2004-07-02 15:46:55 +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 Brukman66a72ef2004-07-02 15:46:55 +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 Brukman66a72ef2004-07-02 15:46:55 +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 Brukman66a72ef2004-07-02 15:46:55 +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
Chris Lattner1a5a79c2004-07-10 06:06:56 +000054<li><a href="html/analyze.html"><b>analyze</b></a> -
55 run LLVM analyses on a bytecode file and print the results</li>
56
Misha Brukman66a72ef2004-07-02 15:46:55 +000057<li><a href="html/llvm-nm.html"><b>llvm-nm</b></a>
Misha Brukman38ca9be2004-07-01 16:04:49 +000058 print out the names and types of symbols in a bytecode file</li>
John Criswell32003302003-09-11 20:23:52 +000059
Misha Brukman66a72ef2004-07-02 15:46:55 +000060<li><a href="html/llvm-prof.html"><b>llvm-prof</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000061 format raw `<tt>llvmprof.out</tt>' data into a human-readable report</li>
John Criswellaa5ff242003-10-03 13:48:27 +000062
Misha Brukman38ca9be2004-07-01 16:04:49 +000063</ul>
John Criswellaa5ff242003-10-03 13:48:27 +000064
Misha Brukman38ca9be2004-07-01 16:04:49 +000065</div>
John Criswell32003302003-09-11 20:23:52 +000066
Misha Brukman38ca9be2004-07-01 16:04:49 +000067<!-- *********************************************************************** -->
68<div class="doc_section">
69 <a name="frontend">C and C++ Front-end Commands</a>
70</div>
71<!-- *********************************************************************** -->
John Criswell32003302003-09-11 20:23:52 +000072
Misha Brukman38ca9be2004-07-01 16:04:49 +000073<div class="doc_text">
Chris Lattnerd053efd2003-10-07 20:05:23 +000074
Misha Brukman38ca9be2004-07-01 16:04:49 +000075<ul>
Chris Lattnerd053efd2003-10-07 20:05:23 +000076
Misha Brukman66a72ef2004-07-02 15:46:55 +000077<li><a href="html/llvmgcc.html"><b>llvmgcc</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000078 GCC-based C front-end for LLVM
Misha Brukman38ca9be2004-07-01 16:04:49 +000079
Misha Brukman66a72ef2004-07-02 15:46:55 +000080<li><a href="html/llvmgxx.html"><b>llvmg++</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000081 GCC-based C++ front-end for LLVM</li>
Misha Brukman38ca9be2004-07-01 16:04:49 +000082
Misha Brukman66a72ef2004-07-02 15:46:55 +000083<li><a href="html/gccas.html"><b>gccas</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000084 compile-time optimizer used by llvm-g++ and llvm-gcc</li>
Misha Brukman38ca9be2004-07-01 16:04:49 +000085
Misha Brukman66a72ef2004-07-02 15:46:55 +000086<li><a href="html/gccld.html"><b>gccld</b></a> -
Chris Lattner1a5a79c2004-07-10 06:06:56 +000087 linker and link-time optimizer used by llvm-g++ and llvm-gcc</li>
Misha Brukman38ca9be2004-07-01 16:04:49 +000088
89</ul>
90
91</div>
92
93<!-- *********************************************************************** -->
94<div class="doc_section">
95 <a name="debug">Debugging Tools</a>
96</div>
97<!-- *********************************************************************** -->
Chris Lattnerd053efd2003-10-07 20:05:23 +000098
99
Misha Brukman38ca9be2004-07-01 16:04:49 +0000100<div class="doc_text">
101
102<ul>
103
Misha Brukman66a72ef2004-07-02 15:46:55 +0000104<li><a href="html/bugpoint.html"><b>bugpoint</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +0000105 automatic test-case reducer</li>
106
Misha Brukman66a72ef2004-07-02 15:46:55 +0000107<li><a href="html/extract.html"><b>extract</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +0000108 extract a function from an LLVM bytecode file</li>
109
Misha Brukman66a72ef2004-07-02 15:46:55 +0000110<li><a href="html/llvm-bcanalyzer.html"><b>llvm-bcanalyzer</b></a> -
Misha Brukman95bba872004-07-01 16:59:05 +0000111 bytecode analyzer (analyzes the binary encoding itself, not the program it
112 represents)</li>
113
Misha Brukman38ca9be2004-07-01 16:04:49 +0000114</ul>
115
116</div>
117
118<!-- *********************************************************************** -->
119
120<hr>
121<address>
122 <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
123 src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a>
124 <a href="http://validator.w3.org/check/referer"><img
125 src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
126
Misha Brukman38ca9be2004-07-01 16:04:49 +0000127 <a href="http://llvm.cs.uiuc.edu">LLVM Compiler Infrastructure</a><br>
128 Last modified: $Date$
129</address>
Chris Lattnerd053efd2003-10-07 20:05:23 +0000130
Misha Brukmanc6ad94c2003-10-31 00:39:28 +0000131</body>
John Criswellecf32e52003-09-11 19:58:03 +0000132</html>