blob: d549d3a22adae1377ed078c357d27cb0bf29ba21 [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
Misha Brukman38ca9be2004-07-01 16:04:49 +000016<p>This document is the reference manual for the LLVM utilities. It will
17show you how to use the LLVM commands and what their options are. Note that in
18the descriptions below, `bytecode' and `program' refer to LLVM bytecode files
19and assembly programs, respectively.</p>
Chris Lattnerd053efd2003-10-07 20:05:23 +000020
Misha Brukman38ca9be2004-07-01 16:04:49 +000021<ul>
22 <li><a href="#basic">Basic Commands</a></li>
23 <li><a href="#frontend">C and C++ Frond-end Commands</a></li>
24 <li><a href="#debug">Debugging commands</a></li>
25</ul>
Chris Lattnerd053efd2003-10-07 20:05:23 +000026
Misha Brukman38ca9be2004-07-01 16:04:49 +000027</div>
John Criswellecf32e52003-09-11 19:58:03 +000028
Misha Brukman38ca9be2004-07-01 16:04:49 +000029<!-- *********************************************************************** -->
30<div class="doc_section">
31 <a name="basic">Basic Commands</a>
32</div>
33<!-- *********************************************************************** -->
John Criswellecf32e52003-09-11 19:58:03 +000034
Misha Brukman38ca9be2004-07-01 16:04:49 +000035<div class="doc_text">
John Criswellecf32e52003-09-11 19:58:03 +000036
Misha Brukman38ca9be2004-07-01 16:04:49 +000037<ul>
John Criswellecf32e52003-09-11 19:58:03 +000038
Misha Brukman66a72ef2004-07-02 15:46:55 +000039<li><a href="html/llvm-as.html"><b>llvm-as</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +000040 assemble a human-readable program into bytecode</li>
John Criswellecf32e52003-09-11 19:58:03 +000041
Misha Brukman66a72ef2004-07-02 15:46:55 +000042<li><a href="html/llvm-dis.html"><b>llvm-dis</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +000043 disassemble a bytecode file into human-readable form</li>
John Criswellecf32e52003-09-11 19:58:03 +000044
Misha Brukman66a72ef2004-07-02 15:46:55 +000045<li><a href="html/analyze.html"><b>analyze</b></a> -
Misha Brukman95bba872004-07-01 16:59:05 +000046 analyze a program compiled to bytecode</li>
Chris Lattnere66e73a2003-11-02 02:10:54 +000047
Misha Brukman66a72ef2004-07-02 15:46:55 +000048<li><a href="html/opt.html"><b>opt</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +000049 optimize a bytecode file</li>
Chris Lattnere66e73a2003-11-02 02:10:54 +000050
Misha Brukman66a72ef2004-07-02 15:46:55 +000051<li><a href="html/llc.html"><b>llc</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +000052 compile a bytecode program into native machine code</li>
Chris Lattnere66e73a2003-11-02 02:10:54 +000053
Misha Brukman66a72ef2004-07-02 15:46:55 +000054<li><a href="html/lli.html"><b>lli</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +000055 run a bytecode program using either an interpreter or a JIT compiler</li>
John Criswellecf32e52003-09-11 19:58:03 +000056
Misha Brukman66a72ef2004-07-02 15:46:55 +000057<li><a href="html/llvm-link.html"><b>llvm-link</b></A>
Misha Brukman38ca9be2004-07-01 16:04:49 +000058 link several bytecode files into one</li>
John Criswell32003302003-09-11 20:23:52 +000059
Misha Brukman66a72ef2004-07-02 15:46:55 +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 Brukman66a72ef2004-07-02 15:46:55 +000063<li><a href="html/llvm-prof.html"><b>llvm-prof</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +000064 transform raw `<tt>llvmprof.out</tt>' data into a human-readable report</li>
John Criswellaa5ff242003-10-03 13:48:27 +000065
Misha Brukman38ca9be2004-07-01 16:04:49 +000066</ul>
John Criswellaa5ff242003-10-03 13:48:27 +000067
Misha Brukman38ca9be2004-07-01 16:04:49 +000068</div>
John Criswell32003302003-09-11 20:23:52 +000069
Misha Brukman38ca9be2004-07-01 16:04:49 +000070<!-- *********************************************************************** -->
71<div class="doc_section">
72 <a name="frontend">C and C++ Front-end Commands</a>
73</div>
74<!-- *********************************************************************** -->
John Criswell32003302003-09-11 20:23:52 +000075
Misha Brukman38ca9be2004-07-01 16:04:49 +000076<div class="doc_text">
Chris Lattnerd053efd2003-10-07 20:05:23 +000077
Misha Brukman38ca9be2004-07-01 16:04:49 +000078<ul>
Chris Lattnerd053efd2003-10-07 20:05:23 +000079
Misha Brukman66a72ef2004-07-02 15:46:55 +000080<li><a href="html/llvmgcc.html"><b>llvmgcc</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +000081 GCC-based C front end for LLVM
82
Misha Brukman66a72ef2004-07-02 15:46:55 +000083<li><a href="html/llvmgxx.html"><b>llvmg++</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +000084 GCC-based C++ front end for LLVM</li>
85
Misha Brukman66a72ef2004-07-02 15:46:55 +000086<li><a href="html/gccas.html"><b>gccas</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +000087 optimizing assembler used by llvm-g++ and llvm-gcc</li>
88
Misha Brukman66a72ef2004-07-02 15:46:55 +000089<li><a href="html/gccld.html"><b>gccld</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +000090 optimizing linker used by llvm-g++ and llvm-gcc</li>
91
92</ul>
93
94</div>
95
96<!-- *********************************************************************** -->
97<div class="doc_section">
98 <a name="debug">Debugging Tools</a>
99</div>
100<!-- *********************************************************************** -->
Chris Lattnerd053efd2003-10-07 20:05:23 +0000101
102
Misha Brukman38ca9be2004-07-01 16:04:49 +0000103<div class="doc_text">
104
105<ul>
106
Misha Brukman66a72ef2004-07-02 15:46:55 +0000107<li><a href="html/bugpoint.html"><b>bugpoint</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +0000108 automatic test-case reducer</li>
109
Misha Brukman66a72ef2004-07-02 15:46:55 +0000110<li><a href="html/extract.html"><b>extract</b></a> -
Misha Brukman38ca9be2004-07-01 16:04:49 +0000111 extract a function from an LLVM bytecode file</li>
112
Misha Brukman66a72ef2004-07-02 15:46:55 +0000113<li><a href="html/llvm-bcanalyzer.html"><b>llvm-bcanalyzer</b></a> -
Misha Brukman95bba872004-07-01 16:59:05 +0000114 bytecode analyzer (analyzes the binary encoding itself, not the program it
115 represents)</li>
116
Misha Brukman38ca9be2004-07-01 16:04:49 +0000117</ul>
118
119</div>
120
121<!-- *********************************************************************** -->
122
123<hr>
124<address>
125 <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
126 src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a>
127 <a href="http://validator.w3.org/check/referer"><img
128 src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
129
Misha Brukman38ca9be2004-07-01 16:04:49 +0000130 <a href="http://llvm.cs.uiuc.edu">LLVM Compiler Infrastructure</a><br>
131 Last modified: $Date$
132</address>
Chris Lattnerd053efd2003-10-07 20:05:23 +0000133
Misha Brukmanc6ad94c2003-10-31 00:39:28 +0000134</body>
John Criswellecf32e52003-09-11 19:58:03 +0000135</html>