blob: 0af273f40319ca813ddf77ca9ed5c3a8f268921e [file] [log] [blame]
Misha Brukman94082392003-10-31 18:37:20 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3<html>
4<head>
5 <title>How to submit an LLVM bug report</title>
6 <link rel="stylesheet" href="llvm.css" type="text/css">
7</head>
8<body>
Chris Lattner8b6be362003-05-21 22:21:07 +00009
NAKAMURA Takumi05d02652011-04-18 23:59:50 +000010<h1>
Misha Brukman94082392003-10-31 18:37:20 +000011 How to submit an LLVM bug report
NAKAMURA Takumi05d02652011-04-18 23:59:50 +000012</h1>
Chris Lattner8b6be362003-05-21 22:21:07 +000013
Reid Spencerd3f876c2004-11-01 08:19:36 +000014<table class="layout" style="width: 90%" >
15<tr class="layout">
16 <td class="left">
Chris Lattner8b6be362003-05-21 22:21:07 +000017<ol>
Misha Brukman94082392003-10-31 18:37:20 +000018 <li><a href="#introduction">Introduction - Got bugs?</a></li>
Chris Lattner8b6be362003-05-21 22:21:07 +000019 <li><a href="#crashers">Crashing Bugs</a>
20 <ul>
21 <li><a href="#front-end">Front-end bugs</a>
Chris Lattner1a5ed972007-02-25 01:11:36 +000022 <li><a href="#ct_optimizer">Compile-time optimization bugs</a>
23 <li><a href="#ct_codegen">Code generator bugs</a>
Misha Brukman94082392003-10-31 18:37:20 +000024 </ul></li>
25 <li><a href="#miscompilations">Miscompilations</a></li>
26 <li><a href="#codegen">Incorrect code generation (JIT and LLC)</a></li>
Misha Brukman94082392003-10-31 18:37:20 +000027</ol>
Chris Lattner4129b2a2004-05-23 21:05:39 +000028<div class="doc_author">
29 <p>Written by <a href="mailto:sabre@nondot.org">Chris Lattner</a> and
30 <a href="http://misha.brukman.net">Misha Brukman</a></p>
Reid Spencer97510e72004-11-01 08:24:13 +000031</div>
Misha Brukman94082392003-10-31 18:37:20 +000032</td>
Reid Spencerd3f876c2004-11-01 08:19:36 +000033<td class="right">
Misha Brukmane849a1a2004-05-12 21:26:16 +000034 <img src="img/Debugging.gif" alt="Debugging" width="444" height="314">
Misha Brukman94082392003-10-31 18:37:20 +000035</td>
36</tr>
Chris Lattner8b6be362003-05-21 22:21:07 +000037</table>
38
Chris Lattner8b6be362003-05-21 22:21:07 +000039<!-- *********************************************************************** -->
NAKAMURA Takumi05d02652011-04-18 23:59:50 +000040<h2>
Misha Brukman94082392003-10-31 18:37:20 +000041 <a name="introduction">Introduction - Got bugs?</a>
NAKAMURA Takumi05d02652011-04-18 23:59:50 +000042</h2>
Chris Lattner8b6be362003-05-21 22:21:07 +000043<!-- *********************************************************************** -->
44
NAKAMURA Takumif5af6ad2011-04-23 00:30:22 +000045<div>
Chris Lattner8b6be362003-05-21 22:21:07 +000046
Misha Brukman94082392003-10-31 18:37:20 +000047<p>If you're working with LLVM and run into a bug, we definitely want to know
48about it. This document describes what you can do to increase the odds of
49getting it fixed quickly.</p>
50
51<p>Basically you have to do two things at a minimum. First, decide whether the
52bug <a href="#crashers">crashes the compiler</a> (or an LLVM pass), or if the
Chris Lattner1a5ed972007-02-25 01:11:36 +000053compiler is <a href="#miscompilations">miscompiling</a> the program (i.e., the
54compiler successfully produces an executable, but it doesn't run right). Based
55on
Chris Lattner8b6be362003-05-21 22:21:07 +000056what type of bug it is, follow the instructions in the linked section to narrow
57down the bug so that the person who fixes it will be able to find the problem
Misha Brukman94082392003-10-31 18:37:20 +000058more easily.</p>
Chris Lattner8b6be362003-05-21 22:21:07 +000059
Misha Brukman94082392003-10-31 18:37:20 +000060<p>Once you have a reduced test-case, go to <a
Reid Spencer05fe4b02006-03-14 05:39:39 +000061href="http://llvm.org/bugs/enter_bug.cgi">the LLVM Bug Tracking
Chris Lattner1a5ed972007-02-25 01:11:36 +000062System</a> and fill out the form with the necessary details (note that you don't
Benjamin Kramer8040cd32009-10-12 14:46:08 +000063need to pick a category, just use the "new-bugs" category if you're not sure).
Chris Lattner1a5ed972007-02-25 01:11:36 +000064The bug description should contain the following
Misha Brukman94082392003-10-31 18:37:20 +000065information:</p>
66
John Criswell4d37c7b2003-10-22 15:06:11 +000067<ul>
Misha Brukmanafac73e2003-10-22 17:01:44 +000068 <li>All information necessary to reproduce the problem.</li>
69 <li>The reduced test-case that triggers the bug.</li>
Reid Spencer669ed452007-07-09 08:04:31 +000070 <li>The location where you obtained LLVM (if not from our Subversion
Misha Brukmanafac73e2003-10-22 17:01:44 +000071 repository).</li>
John Criswell4d37c7b2003-10-22 15:06:11 +000072</ul>
73
Misha Brukman94082392003-10-31 18:37:20 +000074<p>Thanks for helping us make LLVM better!</p>
Chris Lattner8b6be362003-05-21 22:21:07 +000075
Misha Brukman94082392003-10-31 18:37:20 +000076</div>
Chris Lattner8b6be362003-05-21 22:21:07 +000077
78<!-- *********************************************************************** -->
NAKAMURA Takumi05d02652011-04-18 23:59:50 +000079<h2>
Misha Brukman94082392003-10-31 18:37:20 +000080 <a name="crashers">Crashing Bugs</a>
NAKAMURA Takumi05d02652011-04-18 23:59:50 +000081</h2>
Chris Lattner8b6be362003-05-21 22:21:07 +000082<!-- *********************************************************************** -->
83
NAKAMURA Takumif5af6ad2011-04-23 00:30:22 +000084<div>
Misha Brukman94082392003-10-31 18:37:20 +000085
Chris Lattner1a5ed972007-02-25 01:11:36 +000086<p>More often than not, bugs in the compiler cause it to crash&mdash;often due
87to an assertion failure of some sort. The most important
88piece of the puzzle is to figure out if it is crashing in the GCC front-end
89or if it is one of the LLVM libraries (e.g. the optimizer or code generator)
90that has problems.</p>
Chris Lattner8b6be362003-05-21 22:21:07 +000091
Chris Lattner1a5ed972007-02-25 01:11:36 +000092<p>To figure out which component is crashing (the front-end,
93optimizer or code generator), run the
Misha Brukman94082392003-10-31 18:37:20 +000094<tt><b>llvm-gcc</b></tt> command line as you were when the crash occurred, but
Chris Lattner1a5ed972007-02-25 01:11:36 +000095with the following extra command line options:</p>
Chris Lattner8b6be362003-05-21 22:21:07 +000096
97<ul>
Chris Lattner1a5ed972007-02-25 01:11:36 +000098 <li><tt><b>-O0 -emit-llvm</b></tt>: If <tt>llvm-gcc</tt> still crashes when
99 passed these options (which disable the optimizer and code generator), then
100 the crash is in the front-end. Jump ahead to the section on <a
101 href="#front-end">front-end bugs</a>.</li>
Chris Lattner8b6be362003-05-21 22:21:07 +0000102
Chris Lattner1a5ed972007-02-25 01:11:36 +0000103 <li><tt><b>-emit-llvm</b></tt>: If <tt>llvm-gcc</tt> crashes with this option
104 (which disables the code generator), you found an optimizer bug. Jump ahead
105 to <a href="#ct_optimizer"> compile-time optimization bugs</a>.</li>
Misha Brukman94082392003-10-31 18:37:20 +0000106
Chris Lattner1a5ed972007-02-25 01:11:36 +0000107 <li>Otherwise, you have a code generator crash. Jump ahead to <a
108 href="#ct_codegen">code generator bugs</a>.</li>
Misha Brukman94082392003-10-31 18:37:20 +0000109
110</ul>
111
Chris Lattner8b6be362003-05-21 22:21:07 +0000112<!-- ======================================================================= -->
NAKAMURA Takumi05d02652011-04-18 23:59:50 +0000113<h3>
Misha Brukman94082392003-10-31 18:37:20 +0000114 <a name="front-end">Front-end bugs</a>
NAKAMURA Takumi05d02652011-04-18 23:59:50 +0000115</h3>
Chris Lattner8b6be362003-05-21 22:21:07 +0000116
NAKAMURA Takumif5af6ad2011-04-23 00:30:22 +0000117<div>
Misha Brukman94082392003-10-31 18:37:20 +0000118
119<p>If the problem is in the front-end, you should re-run the same
Brian Gaekeeefe9792003-05-23 21:03:50 +0000120<tt>llvm-gcc</tt> command that resulted in the crash, but add the
Misha Brukman94082392003-10-31 18:37:20 +0000121<tt>-save-temps</tt> option. The compiler will crash again, but it will leave
122behind a <tt><i>foo</i>.i</tt> file (containing preprocessed C source code) and
Chris Lattner1a5ed972007-02-25 01:11:36 +0000123possibly <tt><i>foo</i>.s</tt> for each
Misha Brukman94082392003-10-31 18:37:20 +0000124compiled <tt><i>foo</i>.c</tt> file. Send us the <tt><i>foo</i>.i</tt> file,
Chris Lattner1a5ed972007-02-25 01:11:36 +0000125along with the options you passed to llvm-gcc, and a brief description of the
126error it caused.</p>
Bill Wendlingfa8a0e52007-02-24 03:46:42 +0000127
128<p>The <a href="http://delta.tigris.org/">delta</a> tool helps to reduce the
129preprocessed file down to the smallest amount of code that still replicates the
130problem. You're encouraged to use delta to reduce the code to make the
131developers' lives easier. <a
132href="http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction">This website</a>
133has instructions on the best way to use delta.</p>
Misha Brukman94082392003-10-31 18:37:20 +0000134
135</div>
Chris Lattner8b6be362003-05-21 22:21:07 +0000136
137<!-- ======================================================================= -->
NAKAMURA Takumi05d02652011-04-18 23:59:50 +0000138<h3>
Chris Lattner1a5ed972007-02-25 01:11:36 +0000139 <a name="ct_optimizer">Compile-time optimization bugs</a>
NAKAMURA Takumi05d02652011-04-18 23:59:50 +0000140</h3>
Chris Lattner8b6be362003-05-21 22:21:07 +0000141
NAKAMURA Takumif5af6ad2011-04-23 00:30:22 +0000142<div>
Misha Brukman94082392003-10-31 18:37:20 +0000143
Chris Lattner1a5ed972007-02-25 01:11:36 +0000144<p>If you find that a bug crashes in the optimizer, compile your test-case to a
145<tt>.bc</tt> file by passing "<tt><b>-emit-llvm -O0 -c -o foo.bc</b></tt>".
146Then run:</p>
Chris Lattner8b6be362003-05-21 22:21:07 +0000147
Misha Brukmanf4e4feb2004-04-15 20:49:32 +0000148<div class="doc_code">
Chris Lattner1a5ed972007-02-25 01:11:36 +0000149<p><tt><b>opt</b> -std-compile-opts -debug-pass=Arguments foo.bc
150 -disable-output</tt></p>
Misha Brukmanf4e4feb2004-04-15 20:49:32 +0000151</div>
Chris Lattner8b6be362003-05-21 22:21:07 +0000152
Chris Lattner1a5ed972007-02-25 01:11:36 +0000153<p>This command should do two things: it should print out a list of passes, and
154then it should crash in the same was as llvm-gcc. If it doesn't crash, please
155follow the instructions for a <a href="#front-end">front-end bug</a>.</p>
156
157<p>If this does crash, then you should be able to debug this with the following
158bugpoint command:</p>
159
160<div class="doc_code">
161<p><tt><b>bugpoint</b> foo.bc &lt;list of passes printed by
162<b>opt</b>&gt;</tt></p>
163</div>
164
165<p>Please run this, then file a bug with the instructions and reduced .bc files
166that bugpoint emits. If something goes wrong with bugpoint, please submit the
167"foo.bc" file and the list of passes printed by <b>opt</b>.</p>
Chris Lattner8b6be362003-05-21 22:21:07 +0000168
Misha Brukman94082392003-10-31 18:37:20 +0000169</div>
Chris Lattner8b6be362003-05-21 22:21:07 +0000170
171<!-- ======================================================================= -->
NAKAMURA Takumi05d02652011-04-18 23:59:50 +0000172<h3>
Chris Lattner1a5ed972007-02-25 01:11:36 +0000173 <a name="ct_codegen">Code generator bugs</a>
NAKAMURA Takumi05d02652011-04-18 23:59:50 +0000174</h3>
Chris Lattner8b6be362003-05-21 22:21:07 +0000175
NAKAMURA Takumif5af6ad2011-04-23 00:30:22 +0000176<div>
Misha Brukman94082392003-10-31 18:37:20 +0000177
Chris Lattner1a5ed972007-02-25 01:11:36 +0000178<p>If you find a bug that crashes llvm-gcc in the code generator, compile your
179source file to a .bc file by passing "<tt><b>-emit-llvm -c -o foo.bc</b></tt>"
180to llvm-gcc (in addition to the options you already pass). Once your have
181foo.bc, one of the following commands should fail:</p>
Chris Lattner8b6be362003-05-21 22:21:07 +0000182
Chris Lattner1a5ed972007-02-25 01:11:36 +0000183<ol>
Dan Gohman0cabaa52009-08-25 15:54:01 +0000184<li><tt><b>llc</b> foo.bc</tt></li>
185<li><tt><b>llc</b> foo.bc -relocation-model=pic</tt></li>
186<li><tt><b>llc</b> foo.bc -relocation-model=static</tt></li>
Chris Lattner1a5ed972007-02-25 01:11:36 +0000187</ol>
Chris Lattner8b6be362003-05-21 22:21:07 +0000188
Chris Lattner1a5ed972007-02-25 01:11:36 +0000189<p>If none of these crash, please follow the instructions for a
190<a href="#front-end">front-end bug</a>. If one of these do crash, you should
191be able to reduce this with one of the following bugpoint command lines (use
192the one corresponding to the command above that failed):</p>
Misha Brukman94082392003-10-31 18:37:20 +0000193
Chris Lattner1a5ed972007-02-25 01:11:36 +0000194<ol>
Chris Lattnerc25904f2007-02-25 18:50:48 +0000195<li><tt><b>bugpoint</b> -run-llc foo.bc</tt></li>
Chris Lattner1a5ed972007-02-25 01:11:36 +0000196<li><tt><b>bugpoint</b> -run-llc foo.bc --tool-args
197 -relocation-model=pic</tt></li>
198<li><tt><b>bugpoint</b> -run-llc foo.bc --tool-args
199 -relocation-model=static</tt></li>
200</ol>
Chris Lattner8b6be362003-05-21 22:21:07 +0000201
Chris Lattner1a5ed972007-02-25 01:11:36 +0000202<p>Please run this, then file a bug with the instructions and reduced .bc file
203that bugpoint emits. If something goes wrong with bugpoint, please submit the
204"foo.bc" file and the option that llc crashes with.</p>
Chris Lattner8b6be362003-05-21 22:21:07 +0000205
Misha Brukman94082392003-10-31 18:37:20 +0000206</div>
Chris Lattner8b6be362003-05-21 22:21:07 +0000207
NAKAMURA Takumif5af6ad2011-04-23 00:30:22 +0000208</div>
209
Chris Lattner8b6be362003-05-21 22:21:07 +0000210<!-- *********************************************************************** -->
NAKAMURA Takumi05d02652011-04-18 23:59:50 +0000211<h2>
Misha Brukman94082392003-10-31 18:37:20 +0000212 <a name="miscompilations">Miscompilations</a>
NAKAMURA Takumi05d02652011-04-18 23:59:50 +0000213</h2>
Chris Lattner8b6be362003-05-21 22:21:07 +0000214<!-- *********************************************************************** -->
215
NAKAMURA Takumif5af6ad2011-04-23 00:30:22 +0000216<div>
Chris Lattner8b6be362003-05-21 22:21:07 +0000217
Chris Lattner1a5ed972007-02-25 01:11:36 +0000218<p>If llvm-gcc successfully produces an executable, but that executable doesn't
219run right, this is either a bug in the code or a bug in the
220compiler. The first thing to check is to make sure it is not using undefined
221behavior (e.g. reading a variable before it is defined). In particular, check
222to see if the program <a href="http://valgrind.org/">valgrind</a>s clean,
223passes purify, or some other memory checker tool. Many of the "LLVM bugs" that
224we have chased down ended up being bugs in the program being compiled, not
225 LLVM.</p>
Chris Lattner8436c212004-05-11 19:34:27 +0000226
227<p>Once you determine that the program itself is not buggy, you should choose
228which code generator you wish to compile the program with (e.g. C backend, the
229JIT, or LLC) and optionally a series of LLVM passes to run. For example:</p>
Misha Brukmanf1d01fb2003-09-17 18:51:47 +0000230
Misha Brukmanf4e4feb2004-04-15 20:49:32 +0000231<div class="doc_code">
Chris Lattner4129b2a2004-05-23 21:05:39 +0000232<p><tt>
233<b>bugpoint</b> -run-cbe [... optzn passes ...] file-to-test.bc --args -- [program arguments]</tt></p>
Misha Brukmanf4e4feb2004-04-15 20:49:32 +0000234</div>
Misha Brukmanf1d01fb2003-09-17 18:51:47 +0000235
Misha Brukman94082392003-10-31 18:37:20 +0000236<p><tt>bugpoint</tt> will try to narrow down your list of passes to the one pass
Gabor Greif04367bf2007-07-06 22:07:22 +0000237that causes an error, and simplify the bitcode file as much as it can to assist
Misha Brukmanf1d01fb2003-09-17 18:51:47 +0000238you. It will print a message letting you know how to reproduce the resulting
Misha Brukman94082392003-10-31 18:37:20 +0000239error.</p>
240
241</div>
Misha Brukmanf1d01fb2003-09-17 18:51:47 +0000242
243<!-- *********************************************************************** -->
NAKAMURA Takumi05d02652011-04-18 23:59:50 +0000244<h2>
Misha Brukman94082392003-10-31 18:37:20 +0000245 <a name="codegen">Incorrect code generation</a>
NAKAMURA Takumi05d02652011-04-18 23:59:50 +0000246</h2>
Misha Brukmanf1d01fb2003-09-17 18:51:47 +0000247<!-- *********************************************************************** -->
248
NAKAMURA Takumif5af6ad2011-04-23 00:30:22 +0000249<div>
Misha Brukman94082392003-10-31 18:37:20 +0000250
251<p>Similarly to debugging incorrect compilation by mis-behaving passes, you can
Misha Brukmanf1d01fb2003-09-17 18:51:47 +0000252debug incorrect code generation by either LLC or the JIT, using
253<tt>bugpoint</tt>. The process <tt>bugpoint</tt> follows in this case is to try
254to narrow the code down to a function that is miscompiled by one or the other
255method, but since for correctness, the entire program must be run,
256<tt>bugpoint</tt> will compile the code it deems to not be affected with the C
Misha Brukman94082392003-10-31 18:37:20 +0000257Backend, and then link in the shared object it generates.</p>
Misha Brukmanf1d01fb2003-09-17 18:51:47 +0000258
Misha Brukman94082392003-10-31 18:37:20 +0000259<p>To debug the JIT:</p>
260
Misha Brukmanf4e4feb2004-04-15 20:49:32 +0000261<div class="doc_code">
Misha Brukman1e4ae2b2004-05-14 18:57:24 +0000262<pre>
Gabor Greif04367bf2007-07-06 22:07:22 +0000263bugpoint -run-jit -output=[correct output file] [bitcode file] \
Bill Wendling4a2bca82009-04-05 00:41:19 +0000264 --tool-args -- [arguments to pass to lli] \
Misha Brukman1e4ae2b2004-05-14 18:57:24 +0000265 --args -- [program arguments]
266</pre>
Misha Brukmanf4e4feb2004-04-15 20:49:32 +0000267</div>
Misha Brukmanf1d01fb2003-09-17 18:51:47 +0000268
Misha Brukman94082392003-10-31 18:37:20 +0000269<p>Similarly, to debug the LLC, one would run:</p>
270
Misha Brukmanf4e4feb2004-04-15 20:49:32 +0000271<div class="doc_code">
Misha Brukman1e4ae2b2004-05-14 18:57:24 +0000272<pre>
Gabor Greif04367bf2007-07-06 22:07:22 +0000273bugpoint -run-llc -output=[correct output file] [bitcode file] \
Bill Wendling4a2bca82009-04-05 00:41:19 +0000274 --tool-args -- [arguments to pass to llc] \
Misha Brukman1e4ae2b2004-05-14 18:57:24 +0000275 --args -- [program arguments]
276</pre>
Misha Brukmanf4e4feb2004-04-15 20:49:32 +0000277</div>
Misha Brukmanf1d01fb2003-09-17 18:51:47 +0000278
Misha Brukman180e8af2004-04-15 21:01:21 +0000279<p><b>Special note:</b> if you are debugging MultiSource or SPEC tests that
280already exist in the <tt>llvm/test</tt> hierarchy, there is an easier way to
281debug the JIT, LLC, and CBE, using the pre-written Makefile targets, which
282will pass the program options specified in the Makefiles:</p>
283
284<div class="doc_code">
Chris Lattner4129b2a2004-05-23 21:05:39 +0000285<p><tt>
286cd llvm/test/../../program<br>
Misha Brukman3c687a02004-05-14 19:04:07 +0000287make bugpoint-jit
Chris Lattner4129b2a2004-05-23 21:05:39 +0000288</tt></p>
Misha Brukman180e8af2004-04-15 21:01:21 +0000289</div>
290
Misha Brukman94082392003-10-31 18:37:20 +0000291<p>At the end of a successful <tt>bugpoint</tt> run, you will be presented
Gabor Greif04367bf2007-07-06 22:07:22 +0000292with two bitcode files: a <em>safe</em> file which can be compiled with the C
Misha Brukmanf1d01fb2003-09-17 18:51:47 +0000293backend and the <em>test</em> file which either LLC or the JIT
Misha Brukman94082392003-10-31 18:37:20 +0000294mis-codegenerates, and thus causes the error.</p>
Misha Brukmanf1d01fb2003-09-17 18:51:47 +0000295
Misha Brukman94082392003-10-31 18:37:20 +0000296<p>To reproduce the error that <tt>bugpoint</tt> found, it is sufficient to do
297the following:</p>
Misha Brukmanf1d01fb2003-09-17 18:51:47 +0000298
299<ol>
Misha Brukman94082392003-10-31 18:37:20 +0000300
Gabor Greif04367bf2007-07-06 22:07:22 +0000301<li><p>Regenerate the shared object from the safe bitcode file:</p>
Misha Brukman94082392003-10-31 18:37:20 +0000302
Misha Brukman3c687a02004-05-14 19:04:07 +0000303<div class="doc_code">
Chris Lattner4129b2a2004-05-23 21:05:39 +0000304<p><tt>
305<b>llc</b> -march=c safe.bc -o safe.c<br>
Misha Brukman3c687a02004-05-14 19:04:07 +0000306<b>gcc</b> -shared safe.c -o safe.so
Chris Lattner4129b2a2004-05-23 21:05:39 +0000307</tt></p>
Misha Brukman3c687a02004-05-14 19:04:07 +0000308</div></li>
Misha Brukman94082392003-10-31 18:37:20 +0000309
Gabor Greif04367bf2007-07-06 22:07:22 +0000310<li><p>If debugging LLC, compile test bitcode native and link with the shared
Misha Brukman3c687a02004-05-14 19:04:07 +0000311 object:</p>
Misha Brukman94082392003-10-31 18:37:20 +0000312
Misha Brukman3c687a02004-05-14 19:04:07 +0000313<div class="doc_code">
Chris Lattner4129b2a2004-05-23 21:05:39 +0000314<p><tt>
Dan Gohman0cabaa52009-08-25 15:54:01 +0000315<b>llc</b> test.bc -o test.s<br>
Chris Lattner4129b2a2004-05-23 21:05:39 +0000316<b>gcc</b> test.s safe.so -o test.llc<br>
Misha Brukman3c687a02004-05-14 19:04:07 +0000317./test.llc [program options]
Chris Lattner4129b2a2004-05-23 21:05:39 +0000318</tt></p>
Misha Brukman3c687a02004-05-14 19:04:07 +0000319</div></li>
320
321<li><p>If debugging the JIT, load the shared object and supply the test
Gabor Greif04367bf2007-07-06 22:07:22 +0000322 bitcode:</p>
Misha Brukman94082392003-10-31 18:37:20 +0000323
Misha Brukman3c687a02004-05-14 19:04:07 +0000324<div class="doc_code">
Chris Lattner4129b2a2004-05-23 21:05:39 +0000325<p><tt><b>lli</b> -load=safe.so test.bc [program options]</tt></p>
Misha Brukman3c687a02004-05-14 19:04:07 +0000326</div></li>
Misha Brukman94082392003-10-31 18:37:20 +0000327
Misha Brukmanf1d01fb2003-09-17 18:51:47 +0000328</ol>
Chris Lattner8b6be362003-05-21 22:21:07 +0000329
Misha Brukman94082392003-10-31 18:37:20 +0000330</div>
331
Chris Lattner8b6be362003-05-21 22:21:07 +0000332<!-- *********************************************************************** -->
Misha Brukman94082392003-10-31 18:37:20 +0000333<hr>
Misha Brukman637cab02004-01-15 19:03:47 +0000334<address>
335 <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
Misha Brukman44408702008-12-11 17:34:48 +0000336 src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS"></a>
Misha Brukman637cab02004-01-15 19:03:47 +0000337 <a href="http://validator.w3.org/check/referer"><img
Misha Brukmanf00ddb02008-12-11 18:23:24 +0000338 src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a>
Misha Brukman637cab02004-01-15 19:03:47 +0000339
340 <a href="mailto:sabre@nondot.org">Chris Lattner</a><br>
NAKAMURA Takumib9a33632011-04-09 02:13:37 +0000341 <a href="http://llvm.org/">The LLVM Compiler Infrastructure</a>
Misha Brukman94082392003-10-31 18:37:20 +0000342 <br>
343 Last modified: $Date$
Misha Brukman637cab02004-01-15 19:03:47 +0000344</address>
Misha Brukman94082392003-10-31 18:37:20 +0000345
346</body>
347</html>