2003-10-31 19:37:20 +01:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
|
|
"http://www.w3.org/TR/html4/strict.dtd">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>How to submit an LLVM bug report</title>
|
|
|
|
<link rel="stylesheet" href="llvm.css" type="text/css">
|
|
|
|
</head>
|
|
|
|
<body>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2003-10-31 19:37:20 +01:00
|
|
|
<div class="doc_title">
|
|
|
|
How to submit an LLVM bug report
|
|
|
|
</div>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2004-11-01 09:19:36 +01:00
|
|
|
<table class="layout" style="width: 90%" >
|
|
|
|
<tr class="layout">
|
|
|
|
<td class="left">
|
2003-05-22 00:21:07 +02:00
|
|
|
<ol>
|
2003-10-31 19:37:20 +01:00
|
|
|
<li><a href="#introduction">Introduction - Got bugs?</a></li>
|
2003-05-22 00:21:07 +02:00
|
|
|
<li><a href="#crashers">Crashing Bugs</a>
|
|
|
|
<ul>
|
|
|
|
<li><a href="#front-end">Front-end bugs</a>
|
2007-02-25 02:11:36 +01:00
|
|
|
<li><a href="#ct_optimizer">Compile-time optimization bugs</a>
|
|
|
|
<li><a href="#ct_codegen">Code generator bugs</a>
|
2003-10-31 19:37:20 +01:00
|
|
|
</ul></li>
|
|
|
|
<li><a href="#miscompilations">Miscompilations</a></li>
|
|
|
|
<li><a href="#codegen">Incorrect code generation (JIT and LLC)</a></li>
|
|
|
|
</ol>
|
2004-05-23 23:05:39 +02:00
|
|
|
<div class="doc_author">
|
|
|
|
<p>Written by <a href="mailto:sabre@nondot.org">Chris Lattner</a> and
|
|
|
|
<a href="http://misha.brukman.net">Misha Brukman</a></p>
|
2004-11-01 09:24:13 +01:00
|
|
|
</div>
|
2003-10-31 19:37:20 +01:00
|
|
|
</td>
|
2004-11-01 09:19:36 +01:00
|
|
|
<td class="right">
|
2004-05-12 23:26:16 +02:00
|
|
|
<img src="img/Debugging.gif" alt="Debugging" width="444" height="314">
|
2003-10-31 19:37:20 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
|
|
|
<!-- *********************************************************************** -->
|
2003-10-31 19:37:20 +01:00
|
|
|
<div class="doc_section">
|
|
|
|
<a name="introduction">Introduction - Got bugs?</a>
|
|
|
|
</div>
|
2003-05-22 00:21:07 +02:00
|
|
|
<!-- *********************************************************************** -->
|
|
|
|
|
2003-10-31 19:37:20 +01:00
|
|
|
<div class="doc_text">
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2003-10-31 19:37:20 +01:00
|
|
|
<p>If you're working with LLVM and run into a bug, we definitely want to know
|
|
|
|
about it. This document describes what you can do to increase the odds of
|
|
|
|
getting it fixed quickly.</p>
|
|
|
|
|
|
|
|
<p>Basically you have to do two things at a minimum. First, decide whether the
|
|
|
|
bug <a href="#crashers">crashes the compiler</a> (or an LLVM pass), or if the
|
2007-02-25 02:11:36 +01:00
|
|
|
compiler is <a href="#miscompilations">miscompiling</a> the program (i.e., the
|
|
|
|
compiler successfully produces an executable, but it doesn't run right). Based
|
|
|
|
on
|
2003-05-22 00:21:07 +02:00
|
|
|
what type of bug it is, follow the instructions in the linked section to narrow
|
|
|
|
down the bug so that the person who fixes it will be able to find the problem
|
2003-10-31 19:37:20 +01:00
|
|
|
more easily.</p>
|
|
|
|
|
|
|
|
<p>Once you have a reduced test-case, go to <a
|
2006-03-14 06:39:39 +01:00
|
|
|
href="http://llvm.org/bugs/enter_bug.cgi">the LLVM Bug Tracking
|
2007-02-25 02:11:36 +01:00
|
|
|
System</a> and fill out the form with the necessary details (note that you don't
|
2009-10-12 16:46:08 +02:00
|
|
|
need to pick a category, just use the "new-bugs" category if you're not sure).
|
2007-02-25 02:11:36 +01:00
|
|
|
The bug description should contain the following
|
2003-10-31 19:37:20 +01:00
|
|
|
information:</p>
|
|
|
|
|
2003-10-22 17:06:11 +02:00
|
|
|
<ul>
|
2003-10-22 19:01:44 +02:00
|
|
|
<li>All information necessary to reproduce the problem.</li>
|
|
|
|
<li>The reduced test-case that triggers the bug.</li>
|
2007-07-09 10:04:31 +02:00
|
|
|
<li>The location where you obtained LLVM (if not from our Subversion
|
2003-10-22 19:01:44 +02:00
|
|
|
repository).</li>
|
2003-10-22 17:06:11 +02:00
|
|
|
</ul>
|
|
|
|
|
2003-10-31 19:37:20 +01:00
|
|
|
<p>Thanks for helping us make LLVM better!</p>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2003-10-31 19:37:20 +01:00
|
|
|
</div>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
|
|
|
<!-- *********************************************************************** -->
|
2003-10-31 19:37:20 +01:00
|
|
|
<div class="doc_section">
|
|
|
|
<a name="crashers">Crashing Bugs</a>
|
|
|
|
</div>
|
2003-05-22 00:21:07 +02:00
|
|
|
<!-- *********************************************************************** -->
|
|
|
|
|
2003-10-31 19:37:20 +01:00
|
|
|
<div class="doc_text">
|
|
|
|
|
2007-02-25 02:11:36 +01:00
|
|
|
<p>More often than not, bugs in the compiler cause it to crash—often due
|
|
|
|
to an assertion failure of some sort. The most important
|
|
|
|
piece of the puzzle is to figure out if it is crashing in the GCC front-end
|
|
|
|
or if it is one of the LLVM libraries (e.g. the optimizer or code generator)
|
|
|
|
that has problems.</p>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2007-02-25 02:11:36 +01:00
|
|
|
<p>To figure out which component is crashing (the front-end,
|
|
|
|
optimizer or code generator), run the
|
2003-10-31 19:37:20 +01:00
|
|
|
<tt><b>llvm-gcc</b></tt> command line as you were when the crash occurred, but
|
2007-02-25 02:11:36 +01:00
|
|
|
with the following extra command line options:</p>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
|
|
|
<ul>
|
2007-02-25 02:11:36 +01:00
|
|
|
<li><tt><b>-O0 -emit-llvm</b></tt>: If <tt>llvm-gcc</tt> still crashes when
|
|
|
|
passed these options (which disable the optimizer and code generator), then
|
|
|
|
the crash is in the front-end. Jump ahead to the section on <a
|
|
|
|
href="#front-end">front-end bugs</a>.</li>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2007-02-25 02:11:36 +01:00
|
|
|
<li><tt><b>-emit-llvm</b></tt>: If <tt>llvm-gcc</tt> crashes with this option
|
|
|
|
(which disables the code generator), you found an optimizer bug. Jump ahead
|
|
|
|
to <a href="#ct_optimizer"> compile-time optimization bugs</a>.</li>
|
2003-10-31 19:37:20 +01:00
|
|
|
|
2007-02-25 02:11:36 +01:00
|
|
|
<li>Otherwise, you have a code generator crash. Jump ahead to <a
|
|
|
|
href="#ct_codegen">code generator bugs</a>.</li>
|
2003-10-31 19:37:20 +01:00
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
|
|
|
<!-- ======================================================================= -->
|
2003-10-31 19:37:20 +01:00
|
|
|
<div class="doc_subsection">
|
|
|
|
<a name="front-end">Front-end bugs</a>
|
|
|
|
</div>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2003-10-31 19:37:20 +01:00
|
|
|
<div class="doc_text">
|
|
|
|
|
|
|
|
<p>If the problem is in the front-end, you should re-run the same
|
2003-05-23 23:03:50 +02:00
|
|
|
<tt>llvm-gcc</tt> command that resulted in the crash, but add the
|
2003-10-31 19:37:20 +01:00
|
|
|
<tt>-save-temps</tt> option. The compiler will crash again, but it will leave
|
|
|
|
behind a <tt><i>foo</i>.i</tt> file (containing preprocessed C source code) and
|
2007-02-25 02:11:36 +01:00
|
|
|
possibly <tt><i>foo</i>.s</tt> for each
|
2003-10-31 19:37:20 +01:00
|
|
|
compiled <tt><i>foo</i>.c</tt> file. Send us the <tt><i>foo</i>.i</tt> file,
|
2007-02-25 02:11:36 +01:00
|
|
|
along with the options you passed to llvm-gcc, and a brief description of the
|
|
|
|
error it caused.</p>
|
2007-02-24 04:46:42 +01:00
|
|
|
|
|
|
|
<p>The <a href="http://delta.tigris.org/">delta</a> tool helps to reduce the
|
|
|
|
preprocessed file down to the smallest amount of code that still replicates the
|
|
|
|
problem. You're encouraged to use delta to reduce the code to make the
|
|
|
|
developers' lives easier. <a
|
|
|
|
href="http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction">This website</a>
|
|
|
|
has instructions on the best way to use delta.</p>
|
2003-10-31 19:37:20 +01:00
|
|
|
|
|
|
|
</div>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
|
|
|
<!-- ======================================================================= -->
|
2003-10-31 19:37:20 +01:00
|
|
|
<div class="doc_subsection">
|
2007-02-25 02:11:36 +01:00
|
|
|
<a name="ct_optimizer">Compile-time optimization bugs</a>
|
2003-10-31 19:37:20 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="doc_text">
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2007-02-25 02:11:36 +01:00
|
|
|
<p>If you find that a bug crashes in the optimizer, compile your test-case to a
|
|
|
|
<tt>.bc</tt> file by passing "<tt><b>-emit-llvm -O0 -c -o foo.bc</b></tt>".
|
|
|
|
Then run:</p>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2004-04-15 22:49:32 +02:00
|
|
|
<div class="doc_code">
|
2007-02-25 02:11:36 +01:00
|
|
|
<p><tt><b>opt</b> -std-compile-opts -debug-pass=Arguments foo.bc
|
|
|
|
-disable-output</tt></p>
|
2003-10-31 19:37:20 +01:00
|
|
|
</div>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2007-02-25 02:11:36 +01:00
|
|
|
<p>This command should do two things: it should print out a list of passes, and
|
|
|
|
then it should crash in the same was as llvm-gcc. If it doesn't crash, please
|
|
|
|
follow the instructions for a <a href="#front-end">front-end bug</a>.</p>
|
2003-10-31 19:37:20 +01:00
|
|
|
|
2007-02-25 02:11:36 +01:00
|
|
|
<p>If this does crash, then you should be able to debug this with the following
|
|
|
|
bugpoint command:</p>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2004-04-15 22:49:32 +02:00
|
|
|
<div class="doc_code">
|
2007-02-25 02:11:36 +01:00
|
|
|
<p><tt><b>bugpoint</b> foo.bc <list of passes printed by
|
|
|
|
<b>opt</b>></tt></p>
|
2004-04-15 22:49:32 +02:00
|
|
|
</div>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2007-02-25 02:11:36 +01:00
|
|
|
<p>Please run this, then file a bug with the instructions and reduced .bc files
|
|
|
|
that bugpoint emits. If something goes wrong with bugpoint, please submit the
|
|
|
|
"foo.bc" file and the list of passes printed by <b>opt</b>.</p>
|
2003-10-31 19:37:20 +01:00
|
|
|
|
|
|
|
</div>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
|
|
|
<!-- ======================================================================= -->
|
2003-10-31 19:37:20 +01:00
|
|
|
<div class="doc_subsection">
|
2007-02-25 02:11:36 +01:00
|
|
|
<a name="ct_codegen">Code generator bugs</a>
|
2003-10-31 19:37:20 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="doc_text">
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2007-02-25 02:11:36 +01:00
|
|
|
<p>If you find a bug that crashes llvm-gcc in the code generator, compile your
|
|
|
|
source file to a .bc file by passing "<tt><b>-emit-llvm -c -o foo.bc</b></tt>"
|
|
|
|
to llvm-gcc (in addition to the options you already pass). Once your have
|
|
|
|
foo.bc, one of the following commands should fail:</p>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2007-02-25 02:11:36 +01:00
|
|
|
<ol>
|
2009-08-25 17:54:01 +02:00
|
|
|
<li><tt><b>llc</b> foo.bc</tt></li>
|
|
|
|
<li><tt><b>llc</b> foo.bc -relocation-model=pic</tt></li>
|
|
|
|
<li><tt><b>llc</b> foo.bc -relocation-model=static</tt></li>
|
2007-02-25 02:11:36 +01:00
|
|
|
</ol>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2007-02-25 02:11:36 +01:00
|
|
|
<p>If none of these crash, please follow the instructions for a
|
|
|
|
<a href="#front-end">front-end bug</a>. If one of these do crash, you should
|
|
|
|
be able to reduce this with one of the following bugpoint command lines (use
|
|
|
|
the one corresponding to the command above that failed):</p>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2007-02-25 02:11:36 +01:00
|
|
|
<ol>
|
2007-02-25 19:50:48 +01:00
|
|
|
<li><tt><b>bugpoint</b> -run-llc foo.bc</tt></li>
|
2007-02-25 02:11:36 +01:00
|
|
|
<li><tt><b>bugpoint</b> -run-llc foo.bc --tool-args
|
|
|
|
-relocation-model=pic</tt></li>
|
|
|
|
<li><tt><b>bugpoint</b> -run-llc foo.bc --tool-args
|
|
|
|
-relocation-model=static</tt></li>
|
|
|
|
</ol>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2007-02-25 02:11:36 +01:00
|
|
|
<p>Please run this, then file a bug with the instructions and reduced .bc file
|
|
|
|
that bugpoint emits. If something goes wrong with bugpoint, please submit the
|
|
|
|
"foo.bc" file and the option that llc crashes with.</p>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2003-10-31 19:37:20 +01:00
|
|
|
</div>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
|
|
|
<!-- *********************************************************************** -->
|
2003-10-31 19:37:20 +01:00
|
|
|
<div class="doc_section">
|
|
|
|
<a name="miscompilations">Miscompilations</a>
|
|
|
|
</div>
|
2003-05-22 00:21:07 +02:00
|
|
|
<!-- *********************************************************************** -->
|
|
|
|
|
2003-10-31 19:37:20 +01:00
|
|
|
<div class="doc_text">
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2007-02-25 02:11:36 +01:00
|
|
|
<p>If llvm-gcc successfully produces an executable, but that executable doesn't
|
|
|
|
run right, this is either a bug in the code or a bug in the
|
|
|
|
compiler. The first thing to check is to make sure it is not using undefined
|
|
|
|
behavior (e.g. reading a variable before it is defined). In particular, check
|
|
|
|
to see if the program <a href="http://valgrind.org/">valgrind</a>s clean,
|
|
|
|
passes purify, or some other memory checker tool. Many of the "LLVM bugs" that
|
|
|
|
we have chased down ended up being bugs in the program being compiled, not
|
|
|
|
LLVM.</p>
|
2004-05-11 21:34:27 +02:00
|
|
|
|
|
|
|
<p>Once you determine that the program itself is not buggy, you should choose
|
|
|
|
which code generator you wish to compile the program with (e.g. C backend, the
|
|
|
|
JIT, or LLC) and optionally a series of LLVM passes to run. For example:</p>
|
2003-09-17 20:51:47 +02:00
|
|
|
|
2004-04-15 22:49:32 +02:00
|
|
|
<div class="doc_code">
|
2004-05-23 23:05:39 +02:00
|
|
|
<p><tt>
|
|
|
|
<b>bugpoint</b> -run-cbe [... optzn passes ...] file-to-test.bc --args -- [program arguments]</tt></p>
|
2004-04-15 22:49:32 +02:00
|
|
|
</div>
|
2003-09-17 20:51:47 +02:00
|
|
|
|
2003-10-31 19:37:20 +01:00
|
|
|
<p><tt>bugpoint</tt> will try to narrow down your list of passes to the one pass
|
2007-07-07 00:07:22 +02:00
|
|
|
that causes an error, and simplify the bitcode file as much as it can to assist
|
2003-09-17 20:51:47 +02:00
|
|
|
you. It will print a message letting you know how to reproduce the resulting
|
2003-10-31 19:37:20 +01:00
|
|
|
error.</p>
|
|
|
|
|
|
|
|
</div>
|
2003-09-17 20:51:47 +02:00
|
|
|
|
|
|
|
<!-- *********************************************************************** -->
|
2003-10-31 19:37:20 +01:00
|
|
|
<div class="doc_section">
|
|
|
|
<a name="codegen">Incorrect code generation</a>
|
|
|
|
</div>
|
2003-09-17 20:51:47 +02:00
|
|
|
<!-- *********************************************************************** -->
|
|
|
|
|
2003-10-31 19:37:20 +01:00
|
|
|
<div class="doc_text">
|
|
|
|
|
|
|
|
<p>Similarly to debugging incorrect compilation by mis-behaving passes, you can
|
2003-09-17 20:51:47 +02:00
|
|
|
debug incorrect code generation by either LLC or the JIT, using
|
|
|
|
<tt>bugpoint</tt>. The process <tt>bugpoint</tt> follows in this case is to try
|
|
|
|
to narrow the code down to a function that is miscompiled by one or the other
|
|
|
|
method, but since for correctness, the entire program must be run,
|
|
|
|
<tt>bugpoint</tt> will compile the code it deems to not be affected with the C
|
2003-10-31 19:37:20 +01:00
|
|
|
Backend, and then link in the shared object it generates.</p>
|
|
|
|
|
|
|
|
<p>To debug the JIT:</p>
|
2003-09-17 20:51:47 +02:00
|
|
|
|
2004-04-15 22:49:32 +02:00
|
|
|
<div class="doc_code">
|
2004-05-14 20:57:24 +02:00
|
|
|
<pre>
|
2007-07-07 00:07:22 +02:00
|
|
|
bugpoint -run-jit -output=[correct output file] [bitcode file] \
|
2009-04-05 02:41:19 +02:00
|
|
|
--tool-args -- [arguments to pass to lli] \
|
2004-05-14 20:57:24 +02:00
|
|
|
--args -- [program arguments]
|
|
|
|
</pre>
|
2004-04-15 22:49:32 +02:00
|
|
|
</div>
|
2003-09-17 20:51:47 +02:00
|
|
|
|
2003-10-31 19:37:20 +01:00
|
|
|
<p>Similarly, to debug the LLC, one would run:</p>
|
|
|
|
|
2004-04-15 22:49:32 +02:00
|
|
|
<div class="doc_code">
|
2004-05-14 20:57:24 +02:00
|
|
|
<pre>
|
2007-07-07 00:07:22 +02:00
|
|
|
bugpoint -run-llc -output=[correct output file] [bitcode file] \
|
2009-04-05 02:41:19 +02:00
|
|
|
--tool-args -- [arguments to pass to llc] \
|
2004-05-14 20:57:24 +02:00
|
|
|
--args -- [program arguments]
|
|
|
|
</pre>
|
2004-04-15 22:49:32 +02:00
|
|
|
</div>
|
2003-09-17 20:51:47 +02:00
|
|
|
|
2004-04-15 23:01:21 +02:00
|
|
|
<p><b>Special note:</b> if you are debugging MultiSource or SPEC tests that
|
|
|
|
already exist in the <tt>llvm/test</tt> hierarchy, there is an easier way to
|
|
|
|
debug the JIT, LLC, and CBE, using the pre-written Makefile targets, which
|
|
|
|
will pass the program options specified in the Makefiles:</p>
|
|
|
|
|
|
|
|
<div class="doc_code">
|
2004-05-23 23:05:39 +02:00
|
|
|
<p><tt>
|
|
|
|
cd llvm/test/../../program<br>
|
2004-05-14 21:04:07 +02:00
|
|
|
make bugpoint-jit
|
2004-05-23 23:05:39 +02:00
|
|
|
</tt></p>
|
2004-04-15 23:01:21 +02:00
|
|
|
</div>
|
|
|
|
|
2003-10-31 19:37:20 +01:00
|
|
|
<p>At the end of a successful <tt>bugpoint</tt> run, you will be presented
|
2007-07-07 00:07:22 +02:00
|
|
|
with two bitcode files: a <em>safe</em> file which can be compiled with the C
|
2003-09-17 20:51:47 +02:00
|
|
|
backend and the <em>test</em> file which either LLC or the JIT
|
2003-10-31 19:37:20 +01:00
|
|
|
mis-codegenerates, and thus causes the error.</p>
|
2003-09-17 20:51:47 +02:00
|
|
|
|
2003-10-31 19:37:20 +01:00
|
|
|
<p>To reproduce the error that <tt>bugpoint</tt> found, it is sufficient to do
|
|
|
|
the following:</p>
|
2003-09-17 20:51:47 +02:00
|
|
|
|
|
|
|
<ol>
|
2003-10-31 19:37:20 +01:00
|
|
|
|
2007-07-07 00:07:22 +02:00
|
|
|
<li><p>Regenerate the shared object from the safe bitcode file:</p>
|
2003-10-31 19:37:20 +01:00
|
|
|
|
2004-05-14 21:04:07 +02:00
|
|
|
<div class="doc_code">
|
2004-05-23 23:05:39 +02:00
|
|
|
<p><tt>
|
|
|
|
<b>llc</b> -march=c safe.bc -o safe.c<br>
|
2004-05-14 21:04:07 +02:00
|
|
|
<b>gcc</b> -shared safe.c -o safe.so
|
2004-05-23 23:05:39 +02:00
|
|
|
</tt></p>
|
2004-05-14 21:04:07 +02:00
|
|
|
</div></li>
|
2003-10-31 19:37:20 +01:00
|
|
|
|
2007-07-07 00:07:22 +02:00
|
|
|
<li><p>If debugging LLC, compile test bitcode native and link with the shared
|
2004-05-14 21:04:07 +02:00
|
|
|
object:</p>
|
2003-10-31 19:37:20 +01:00
|
|
|
|
2004-05-14 21:04:07 +02:00
|
|
|
<div class="doc_code">
|
2004-05-23 23:05:39 +02:00
|
|
|
<p><tt>
|
2009-08-25 17:54:01 +02:00
|
|
|
<b>llc</b> test.bc -o test.s<br>
|
2004-05-23 23:05:39 +02:00
|
|
|
<b>gcc</b> test.s safe.so -o test.llc<br>
|
2004-05-14 21:04:07 +02:00
|
|
|
./test.llc [program options]
|
2004-05-23 23:05:39 +02:00
|
|
|
</tt></p>
|
2004-05-14 21:04:07 +02:00
|
|
|
</div></li>
|
|
|
|
|
|
|
|
<li><p>If debugging the JIT, load the shared object and supply the test
|
2007-07-07 00:07:22 +02:00
|
|
|
bitcode:</p>
|
2003-10-31 19:37:20 +01:00
|
|
|
|
2004-05-14 21:04:07 +02:00
|
|
|
<div class="doc_code">
|
2004-05-23 23:05:39 +02:00
|
|
|
<p><tt><b>lli</b> -load=safe.so test.bc [program options]</tt></p>
|
2004-05-14 21:04:07 +02:00
|
|
|
</div></li>
|
2003-10-31 19:37:20 +01:00
|
|
|
|
2003-09-17 20:51:47 +02:00
|
|
|
</ol>
|
2003-05-22 00:21:07 +02:00
|
|
|
|
2003-10-31 19:37:20 +01:00
|
|
|
</div>
|
|
|
|
|
2003-05-22 00:21:07 +02:00
|
|
|
<!-- *********************************************************************** -->
|
2003-10-31 19:37:20 +01:00
|
|
|
<hr>
|
2004-01-15 20:03:47 +01:00
|
|
|
<address>
|
|
|
|
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img
|
2008-12-11 18:34:48 +01:00
|
|
|
src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS"></a>
|
2004-01-15 20:03:47 +01:00
|
|
|
<a href="http://validator.w3.org/check/referer"><img
|
2008-12-11 19:23:24 +01:00
|
|
|
src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a>
|
2004-01-15 20:03:47 +01:00
|
|
|
|
|
|
|
<a href="mailto:sabre@nondot.org">Chris Lattner</a><br>
|
2006-03-14 06:39:39 +01:00
|
|
|
<a href="http://llvm.org">The LLVM Compiler Infrastructure</a>
|
2003-10-31 19:37:20 +01:00
|
|
|
<br>
|
|
|
|
Last modified: $Date$
|
2004-01-15 20:03:47 +01:00
|
|
|
</address>
|
2003-10-31 19:37:20 +01:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|