blob: 2c41d23b999bdbc7cba09e89af18167d3f373060 [file] [log] [blame]
Misha Brukman500bc302003-11-22 00:38:41 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3<html>
4<head>
Reid Spencer6454ed32004-11-18 18:38:58 +00005 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Misha Brukman500bc302003-11-22 00:38:41 +00006 <link rel="stylesheet" href="llvm.css" type="text/css">
Dan Gohmanb44f6c62010-05-03 23:51:05 +00007 <title>LLVM 2.8 Release Notes</title>
Misha Brukman500bc302003-11-22 00:38:41 +00008</head>
9<body>
Chris Lattner79c3fe12003-10-02 04:57:28 +000010
Dan Gohmanb44f6c62010-05-03 23:51:05 +000011<div class="doc_title">LLVM 2.8 Release Notes</div>
Mikhail Glushenkovea65d7d2008-10-13 02:08:34 +000012
Chris Lattner0e464a92010-03-17 04:02:39 +000013<img align=right src="http://llvm.org/img/DragonSmall.png"
Gabor Greifee2187a2010-04-22 10:21:43 +000014 width="136" height="136" alt="LLVM Dragon Logo">
Chris Lattner0e464a92010-03-17 04:02:39 +000015
Chris Lattner79c3fe12003-10-02 04:57:28 +000016<ol>
Misha Brukman500bc302003-11-22 00:38:41 +000017 <li><a href="#intro">Introduction</a></li>
Chris Lattner96a445e2008-10-13 18:01:01 +000018 <li><a href="#subproj">Sub-project Status Update</a></li>
Dan Gohmanb44f6c62010-05-03 23:51:05 +000019 <li><a href="#externalproj">External Projects Using LLVM 2.8</a></li>
20 <li><a href="#whatsnew">What's New in LLVM 2.8?</a></li>
Chris Lattner4b538b92004-04-30 22:17:12 +000021 <li><a href="GettingStarted.html">Installation Instructions</a></li>
Misha Brukman500bc302003-11-22 00:38:41 +000022 <li><a href="#portability">Portability and Supported Platforms</a></li>
Dan Gohman44aa9212008-10-14 16:23:02 +000023 <li><a href="#knownproblems">Known Problems</a></li>
Misha Brukman500bc302003-11-22 00:38:41 +000024 <li><a href="#additionalinfo">Additional Information</a></li>
Chris Lattner79c3fe12003-10-02 04:57:28 +000025</ol>
26
Chris Lattner7911ce22004-05-23 21:07:27 +000027<div class="doc_author">
Dan Gohman44aa9212008-10-14 16:23:02 +000028 <p>Written by the <a href="http://llvm.org">LLVM Team</a></p>
Misha Brukman500bc302003-11-22 00:38:41 +000029</div>
Chris Lattner79c3fe12003-10-02 04:57:28 +000030
Chris Lattner7b91eda2010-04-22 05:41:35 +000031<h1 style="color:red">These are in-progress notes for the upcoming LLVM 2.8
Jeffrey Yasskinbec48772010-01-28 01:14:43 +000032release.<br>
33You may prefer the
Dan Gohmanb44f6c62010-05-03 23:51:05 +000034<a href="http://llvm.org/releases/2.7/docs/ReleaseNotes.html">LLVM 2.7
35Release Notes</a>.</h1>
Jeffrey Yasskinbec48772010-01-28 01:14:43 +000036
Chris Lattner79c3fe12003-10-02 04:57:28 +000037<!-- *********************************************************************** -->
Misha Brukman500bc302003-11-22 00:38:41 +000038<div class="doc_section">
39 <a name="intro">Introduction</a>
40</div>
Chris Lattner79c3fe12003-10-02 04:57:28 +000041<!-- *********************************************************************** -->
42
Misha Brukman500bc302003-11-22 00:38:41 +000043<div class="doc_text">
44
Chris Lattnerf6662f92008-10-13 17:57:36 +000045<p>This document contains the release notes for the LLVM Compiler
Dan Gohman7ae3ac82010-05-03 23:52:21 +000046Infrastructure, release 2.8. Here we describe the status of LLVM, including
Chris Lattnerf6662f92008-10-13 17:57:36 +000047major improvements from the previous release and significant known problems.
Mikhail Glushenkovf795ef02009-03-01 18:09:47 +000048All LLVM releases may be downloaded from the <a
Chris Lattnerf6662f92008-10-13 17:57:36 +000049href="http://llvm.org/releases/">LLVM releases web site</a>.</p>
Chris Lattner19092612003-10-02 16:38:05 +000050
Chris Lattner7506b1d2004-12-07 08:04:13 +000051<p>For more information about LLVM, including information about the latest
Chris Lattnerc463b272005-10-29 07:07:09 +000052release, please check out the <a href="http://llvm.org/">main LLVM
Chris Lattner47ad72c2003-10-07 21:38:31 +000053web site</a>. If you have questions or comments, the <a
Chris Lattnerc66bfef2010-03-17 04:41:49 +000054href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">LLVM Developer's
55Mailing List</a> is a good place to send them.</p>
Chris Lattner79c3fe12003-10-02 04:57:28 +000056
Mikhail Glushenkovea65d7d2008-10-13 02:08:34 +000057<p>Note that if you are reading this file from a Subversion checkout or the
Chris Lattner84977642007-09-21 03:54:09 +000058main LLVM web page, this document applies to the <i>next</i> release, not the
Gabor Greiffa933f82008-10-14 11:00:32 +000059current one. To see the release notes for a specific release, please see the
Chris Lattner84977642007-09-21 03:54:09 +000060<a href="http://llvm.org/releases/">releases page</a>.</p>
Misha Brukman500bc302003-11-22 00:38:41 +000061
62</div>
Chris Lattner61358ab2009-10-13 17:48:04 +000063
Chris Lattner79c3fe12003-10-02 04:57:28 +000064
Chris Lattner61358ab2009-10-13 17:48:04 +000065<!--
66Almost dead code.
67 include/llvm/Analysis/LiveValues.h => Dan
68 lib/Transforms/IPO/MergeFunctions.cpp => consider for 2.8.
69 llvm/Analysis/PointerTracking.h => Edwin wants this, consider for 2.8.
Chris Lattner61c70e92010-08-28 04:09:24 +000070 GEPSplitterPass
Chris Lattner61358ab2009-10-13 17:48:04 +000071-->
72
73
Dan Gohmanb44f6c62010-05-03 23:51:05 +000074<!-- Features that need text if they're finished for 2.8:
Chris Lattner914ce462010-04-22 06:28:20 +000075 combiner-aa?
Chris Lattner61358ab2009-10-13 17:48:04 +000076 strong phi elim
Chris Lattnerb7c85b42010-04-21 05:17:40 +000077 llvm.dbg.value: variable debug info for optimized code
Chris Lattner61358ab2009-10-13 17:48:04 +000078 loop dependence analysis
Chris Lattner885b6612010-08-28 16:33:36 +000079 TBAA
Chris Lattneracce85d2008-02-10 07:46:44 +000080 -->
Mikhail Glushenkovea65d7d2008-10-13 02:08:34 +000081
Chris Lattner547a3912008-10-12 19:47:48 +000082 <!-- for announcement email:
Chris Lattner61358ab2009-10-13 17:48:04 +000083 Logo web page.
Chris Lattner61358ab2009-10-13 17:48:04 +000084 Many new papers added to /pubs/
Chris Lattner74c80df2009-02-25 06:34:50 +000085 -->
Chris Lattneracce85d2008-02-10 07:46:44 +000086
Chris Lattner96a445e2008-10-13 18:01:01 +000087<!-- *********************************************************************** -->
88<div class="doc_section">
89 <a name="subproj">Sub-project Status Update</a>
Chris Lattnerea34f642008-06-08 21:34:41 +000090</div>
Chris Lattner96a445e2008-10-13 18:01:01 +000091<!-- *********************************************************************** -->
Chris Lattnerea34f642008-06-08 21:34:41 +000092
93<div class="doc_text">
Chris Lattner8348b472008-06-08 21:58:17 +000094<p>
Dan Gohmanb44f6c62010-05-03 23:51:05 +000095The LLVM 2.8 distribution currently consists of code from the core LLVM
Chris Lattner61358ab2009-10-13 17:48:04 +000096repository (which roughly includes the LLVM optimizers, code generators
97and supporting tools), the Clang repository and the llvm-gcc repository. In
98addition to this code, the LLVM Project includes other sub-projects that are in
99development. Here we include updates on these subprojects.
Bill Wendling63d8c552009-03-02 04:28:57 +0000100</p>
Chris Lattner96a445e2008-10-13 18:01:01 +0000101
Chris Lattner8348b472008-06-08 21:58:17 +0000102</div>
103
Chris Lattner96a445e2008-10-13 18:01:01 +0000104
Chris Lattner8348b472008-06-08 21:58:17 +0000105<!--=========================================================================-->
Chris Lattner96a445e2008-10-13 18:01:01 +0000106<div class="doc_subsection">
Chris Lattnerfb97b2d2008-10-13 18:11:54 +0000107<a name="clang">Clang: C/C++/Objective-C Frontend Toolkit</a>
Chris Lattner8348b472008-06-08 21:58:17 +0000108</div>
109
110<div class="doc_text">
111
Chris Lattner095539f2010-04-26 17:42:18 +0000112<p><a href="http://clang.llvm.org/">Clang</a> is an LLVM front end for the C,
113C++, and Objective-C languages. Clang aims to provide a better user experience
114through expressive diagnostics, a high level of conformance to language
115standards, fast compilation, and low memory use. Like LLVM, Clang provides a
116modular, library-based architecture that makes it suitable for creating or
117integrating with other development tools. Clang is considered a
118production-quality compiler for C and Objective-C on x86 (32- and 64-bit).</p>
Chris Lattner61358ab2009-10-13 17:48:04 +0000119
Chris Lattner922d00f2010-07-21 15:57:40 +0000120<p>In the LLVM 2.8 time-frame, the Clang team has made many improvements:</p>
Bill Wendling741748a2008-10-27 09:27:33 +0000121
Daniel Dunbar13739432008-10-14 23:25:09 +0000122<ul>
David Chisnall8e0bd802010-04-25 19:13:33 +0000123
Bill Wendling6bc15282009-03-02 04:28:18 +0000124</ul>
Chris Lattnerfb97b2d2008-10-13 18:11:54 +0000125</div>
126
127<!--=========================================================================-->
128<div class="doc_subsection">
129<a name="clangsa">Clang Static Analyzer</a>
130</div>
131
132<div class="doc_text">
133
Chris Lattner8cdd7932010-04-22 06:38:11 +0000134<p>The <a href="http://clang-analyzer.llvm.org/">Clang Static Analyzer</a>
135 project is an effort to use static source code analysis techniques to
136 automatically find bugs in C and Objective-C programs (and hopefully <a
137 href="http://clang-analyzer.llvm.org/dev_cxx.html">C++ in the
138 future</a>!). The tool is very good at finding bugs that occur on specific
139 paths through code, such as on error conditions.</p>
Chris Lattnercc042612008-10-14 00:52:49 +0000140
Chris Lattner922d00f2010-07-21 15:57:40 +0000141<p>In the LLVM 2.8 time-frame,
Chris Lattner8cdd7932010-04-22 06:38:11 +0000142</p>
Chris Lattner8348b472008-06-08 21:58:17 +0000143
144</div>
145
Chris Lattner96a445e2008-10-13 18:01:01 +0000146<!--=========================================================================-->
147<div class="doc_subsection">
Nicolas Geoffray99a4d302008-10-14 19:23:04 +0000148<a name="vmkit">VMKit: JVM/CLI Virtual Machine Implementation</a>
Chris Lattner96a445e2008-10-13 18:01:01 +0000149</div>
150
151<div class="doc_text">
152<p>
Nicolas Geoffray99a4d302008-10-14 19:23:04 +0000153The <a href="http://vmkit.llvm.org/">VMKit project</a> is an implementation of
Chris Lattner61358ab2009-10-13 17:48:04 +0000154a JVM and a CLI Virtual Machine (Microsoft .NET is an
155implementation of the CLI) using LLVM for static and just-in-time
156compilation.</p>
Chris Lattner96a445e2008-10-13 18:01:01 +0000157
Chris Lattner922d00f2010-07-21 15:57:40 +0000158<p>With the release of LLVM 2.8, ...</p>
Chris Lattner96a445e2008-10-13 18:01:01 +0000159
160</div>
161
Chris Lattner61358ab2009-10-13 17:48:04 +0000162
163<!--=========================================================================-->
164<div class="doc_subsection">
165<a name="compiler-rt">compiler-rt: Compiler Runtime Library</a>
166</div>
167
168<div class="doc_text">
169<p>
170The new LLVM <a href="http://compiler-rt.llvm.org/">compiler-rt project</a>
171is a simple library that provides an implementation of the low-level
172target-specific hooks required by code generation and other runtime components.
173For example, when compiling for a 32-bit target, converting a double to a 64-bit
174unsigned integer is compiled into a runtime call to the "__fixunsdfdi"
175function. The compiler-rt library provides highly optimized implementations of
176this and other low-level routines (some are 3x faster than the equivalent
177libgcc routines).</p>
178
179<p>
180All of the code in the compiler-rt project is available under the standard LLVM
Chris Lattner922d00f2010-07-21 15:57:40 +0000181License, a "BSD-style" license. New in LLVM 2.8:
182
183Soft float support
184</p>
Chris Lattner61358ab2009-10-13 17:48:04 +0000185
186</div>
187
188<!--=========================================================================-->
189<div class="doc_subsection">
Duncan Sands749fd832010-04-02 09:23:15 +0000190<a name="dragonegg">DragonEgg: llvm-gcc ported to gcc-4.5</a>
Chris Lattner61358ab2009-10-13 17:48:04 +0000191</div>
192
193<div class="doc_text">
194<p>
Duncan Sands749fd832010-04-02 09:23:15 +0000195<a href="http://dragonegg.llvm.org/">DragonEgg</a> is a port of llvm-gcc to
196gcc-4.5. Unlike llvm-gcc, which makes many intrusive changes to the underlying
197gcc-4.2 code, dragonegg in theory does not require any gcc-4.5 modifications
198whatsoever (currently one small patch is needed). This is thanks to the new
199<a href="http://gcc.gnu.org/wiki/plugins">gcc plugin architecture</a>, which
200makes it possible to modify the behaviour of gcc at runtime by loading a plugin,
201which is nothing more than a dynamic library which conforms to the gcc plugin
202interface. DragonEgg is a gcc plugin that causes the LLVM optimizers to be run
203instead of the gcc optimizers, and the LLVM code generators instead of the gcc
204code generators, just like llvm-gcc. To use it, you add
205"-fplugin=path/dragonegg.so" to the gcc-4.5 command line, and gcc-4.5 magically
206becomes llvm-gcc-4.5!
207</p>
208
209<p>
210DragonEgg is still a work in progress. Currently C works very well, while C++,
211Ada and Fortran work fairly well. All other languages either don't work at all,
212or only work poorly. For the moment only the x86-32 and x86-64 targets are
Duncan Sands51a51742010-04-20 19:40:58 +0000213supported, and only on linux and darwin (darwin needs an additional gcc patch).
Duncan Sands749fd832010-04-02 09:23:15 +0000214</p>
215
216<p>
Chris Lattner922d00f2010-07-21 15:57:40 +00002172.8 status here.
Chris Lattner61358ab2009-10-13 17:48:04 +0000218</p>
219
220</div>
221
222
223<!--=========================================================================-->
224<div class="doc_subsection">
225<a name="mc">llvm-mc: Machine Code Toolkit</a>
226</div>
227
228<div class="doc_text">
229<p>
Chris Lattner8cdd7932010-04-22 06:38:11 +0000230The LLVM Machine Code (aka MC) sub-project of LLVM was created to solve a number
231of problems in the realm of assembly, disassembly, object file format handling,
232and a number of other related areas that CPU instruction-set level tools work
233in. It is a sub-project of LLVM which provides it with a number of advantages
234over other compilers that do not have tightly integrated assembly-level tools.
235For a gentle introduction, please see the <a
236href="http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html">Intro to the
237LLVM MC Project Blog Post</a>.
Chris Lattner61358ab2009-10-13 17:48:04 +0000238</p>
239
Chris Lattner922d00f2010-07-21 15:57:40 +0000240<p>2.8 status here</p>
Chris Lattner61358ab2009-10-13 17:48:04 +0000241</div>
242
243
Chris Lattnerab68e9e2009-02-26 22:33:38 +0000244<!-- *********************************************************************** -->
245<div class="doc_section">
Chris Lattner922d00f2010-07-21 15:57:40 +0000246 <a name="externalproj">External Open Source Projects Using LLVM 2.8</a>
Chris Lattnerab68e9e2009-02-26 22:33:38 +0000247</div>
248<!-- *********************************************************************** -->
249
Chris Lattner61358ab2009-10-13 17:48:04 +0000250<div class="doc_text">
251
252<p>An exciting aspect of LLVM is that it is used as an enabling technology for
253 a lot of other language and tools projects. This section lists some of the
Chris Lattner922d00f2010-07-21 15:57:40 +0000254 projects that have already been updated to work with LLVM 2.8.</p>
Chris Lattner7c8e7962010-04-26 17:38:10 +0000255</div>
256
Chris Lattner3a1d4cf2010-04-22 21:34:16 +0000257
Chris Lattner8348b472008-06-08 21:58:17 +0000258<!-- *********************************************************************** -->
259<div class="doc_section">
Chris Lattner922d00f2010-07-21 15:57:40 +0000260 <a name="whatsnew">What's New in LLVM 2.8?</a>
Chris Lattner8348b472008-06-08 21:58:17 +0000261</div>
262<!-- *********************************************************************** -->
263
Chris Lattnerf8e0b4e2008-06-08 22:59:35 +0000264<div class="doc_text">
265
Chris Lattner61358ab2009-10-13 17:48:04 +0000266<p>This release includes a huge number of bug fixes, performance tweaks and
Chris Lattnerf6662f92008-10-13 17:57:36 +0000267minor improvements. Some of the major improvements and new features are listed
268in this section.
Chris Lattnerf8e0b4e2008-06-08 22:59:35 +0000269</p>
Chris Lattner61358ab2009-10-13 17:48:04 +0000270
Chris Lattner914ce462010-04-22 06:28:20 +0000271</div>
272
273<!--=========================================================================-->
274<div class="doc_subsection">
275<a name="orgchanges">LLVM Community Changes</a>
276</div>
277
278<div class="doc_text">
279
Chris Lattner922d00f2010-07-21 15:57:40 +0000280<p>In addition to changes to the code, between LLVM 2.7 and 2.8, a number of
Chris Lattnerb7c85b42010-04-21 05:17:40 +0000281organization changes have happened:
282</p>
283
284<ul>
Chris Lattnerb7c85b42010-04-21 05:17:40 +0000285</ul>
Chris Lattnerf8e0b4e2008-06-08 22:59:35 +0000286</div>
287
Chris Lattner8348b472008-06-08 21:58:17 +0000288<!--=========================================================================-->
Chris Lattnerea34f642008-06-08 21:34:41 +0000289<div class="doc_subsection">
Chris Lattner252b83d2008-02-06 18:00:06 +0000290<a name="majorfeatures">Major New Features</a>
291</div>
292
293<div class="doc_text">
294
Chris Lattner922d00f2010-07-21 15:57:40 +0000295<p>LLVM 2.8 includes several major new capabilities:</p>
Chris Lattnerf3e5bc62007-05-14 06:56:09 +0000296
297<ul>
Chris Lattner8dc5faf2010-09-05 20:49:45 +0000298<li>atomic lowering pass.</li>
299<li>RegionInfo pass: opt -regions analyze" or "opt -view-regions".
300<!-- Tobias Grosser --></li>
301<li>ARMGlobalMerge: <!-- Anton --> </li>
Chris Lattner702f2d42010-09-06 19:14:40 +0000302<li>llvm-diff</li>
Chris Lattner8170c102008-02-10 08:18:42 +0000303</ul>
Chris Lattnerdc910082010-03-17 06:41:58 +0000304
Chris Lattnerf3e5bc62007-05-14 06:56:09 +0000305</div>
306
Chris Lattner84977642007-09-21 03:54:09 +0000307<!--=========================================================================-->
308<div class="doc_subsection">
Chris Lattner917cc712009-03-02 02:37:32 +0000309<a name="coreimprovements">LLVM IR and Core Improvements</a>
Chris Lattnerf304ffc2008-02-10 08:17:19 +0000310</div>
311
312<div class="doc_text">
Chris Lattner61358ab2009-10-13 17:48:04 +0000313<p>LLVM IR has several new features for better support of new targets and that
314expose new optimization opportunities:</p>
Chris Lattnerf304ffc2008-02-10 08:17:19 +0000315
Chris Lattner791f77b2008-06-05 06:25:56 +0000316<ul>
Gabor Greif17b59fe2010-07-21 10:20:08 +0000317
318<li>LLVM 2.8 changes the internal order of operands in <a
319 href="http://llvm.org/doxygen/classllvm_1_1InvokeInst.html"><tt>InvokeInst</tt></a>
320 and <a href="http://llvm.org/doxygen/classllvm_1_1CallInst.html"><tt>CallInst</tt></a>.
321 To be portable across releases, resort to <tt>CallSite</tt> and the
Gabor Greif50fb3302010-07-21 10:22:41 +0000322 high-level accessors, such as <tt>getCalledValue</tt> and <tt>setUnwindDest</tt>.
Gabor Greif17b59fe2010-07-21 10:20:08 +0000323</li>
Gabor Greif05006e22010-07-26 18:48:07 +0000324<li>
325 You can no longer pass use_iterators directly to cast<> (and similar), because
326 these routines tend to perform costly dereference operations more than once. You
327 have to dereference the iterators yourself and pass them in.
328</li>
Torok Edwin7c46cf02010-08-04 12:43:22 +0000329<li>
330 llvm.memcpy.*, llvm.memset.*, llvm.memmove.* (and possibly other?) intrinsics
331 take an extra parameter now (i1 isVolatile), totaling 5 parameters.
332 If you were creating these intrinsic calls and prototypes yourself (as opposed
333 to using Intrinsic::getDeclaration), you can use UpgradeIntrinsicFunction/UpgradeIntrinsicCall
334 to be portable accross releases.
335 Note that you cannot use Intrinsic::getDeclaration() in a backwards compatible
336 way (needs 2/3 types now, in 2.7 it needed just 1).
337</li>
338<li>
339 SetCurrentDebugLocation takes a DebugLoc now instead of a MDNode.
340 Change your code to use
341 SetCurrentDebugLocation(DebugLoc::getFromDILocation(...)).
342</li>
343<li>
344 VISIBILITY_HIDDEN is gone.
345</li>
346<li>
Owen Anderson87ebbc02010-08-04 18:27:08 +0000347 The <tt>RegisterPass</tt> and <tt>RegisterAnalysisGroup</tt> templates are
348 considered deprecated, but continue to function in LLVM 2.8. Clients are
349 strongly advised to use the upcoming <tt>INITIALIZE_PASS()</tt> and
350 <tt>INITIALIZE_AG_PASS()</tt> macros instead.
351<li>
Torok Edwin7c46cf02010-08-04 12:43:22 +0000352 SMDiagnostic takes different parameters now. //FIXME: how to upgrade?
353</li>
354<li>
Duncan Sands12881e72010-08-30 10:57:54 +0000355 The constructor for the Triple class no longer tries to understand odd triple
356 specifications. Frontends should ensure that they only pass valid triples to
357 LLVM. The Triple::normalize utility method has been added to help front-ends
358 deal with funky triples.
359<li>
Torok Edwin7c46cf02010-08-04 12:43:22 +0000360 Some APIs got renamed:
361 <ul>
362 <li>llvm_report_error -&gt; report_fatal_error</li>
363 <li>llvm_install_error_handler -&gt; install_fatal_error_handler</li>
364 <li>llvm::DwarfExceptionHandling -&gt; llvm::JITExceptionHandling</li>
365 </ul>
366</li>
Chris Lattnerf304ffc2008-02-10 08:17:19 +0000367</ul>
Mikhail Glushenkovea65d7d2008-10-13 02:08:34 +0000368
Chris Lattnerf304ffc2008-02-10 08:17:19 +0000369</div>
370
371<!--=========================================================================-->
372<div class="doc_subsection">
Chris Lattneracce85d2008-02-10 07:46:44 +0000373<a name="optimizer">Optimizer Improvements</a>
374</div>
375
376<div class="doc_text">
377
Chris Lattner61358ab2009-10-13 17:48:04 +0000378<p>In addition to a large array of minor performance tweaks and bug fixes, this
Chris Lattnerf3013872008-10-13 21:50:36 +0000379release includes a few major enhancements and additions to the optimizers:</p>
Chris Lattneracce85d2008-02-10 07:46:44 +0000380
381<ul>
382
Chris Lattner922d00f2010-07-21 15:57:40 +0000383<li></li>
Chris Lattnera54c1f72010-04-21 06:42:24 +0000384
Chris Lattner61358ab2009-10-13 17:48:04 +0000385</ul>
Chris Lattner917cc712009-03-02 02:37:32 +0000386
Chris Lattner61358ab2009-10-13 17:48:04 +0000387</div>
Chris Lattner917cc712009-03-02 02:37:32 +0000388
Chris Lattner917cc712009-03-02 02:37:32 +0000389
Chris Lattner61358ab2009-10-13 17:48:04 +0000390<!--=========================================================================-->
391<div class="doc_subsection">
392<a name="executionengine">Interpreter and JIT Improvements</a>
393</div>
Chris Lattnerf3013872008-10-13 21:50:36 +0000394
Chris Lattner61358ab2009-10-13 17:48:04 +0000395<div class="doc_text">
396
397<ul>
Chris Lattner922d00f2010-07-21 15:57:40 +0000398<li></li>
Chris Lattnerb7c85b42010-04-21 05:17:40 +0000399
Chris Lattner0b832202008-06-08 02:45:07 +0000400</ul>
401
402</div>
403
404<!--=========================================================================-->
405<div class="doc_subsection">
Chris Lattner511433e2009-03-02 03:24:11 +0000406<a name="codegen">Target Independent Code Generator Improvements</a>
Chris Lattner0b832202008-06-08 02:45:07 +0000407</div>
408
409<div class="doc_text">
410
Mikhail Glushenkovf795ef02009-03-01 18:09:47 +0000411<p>We have put a significant amount of work into the code generator
412infrastructure, which allows us to implement more aggressive algorithms and make
413it run faster:</p>
Chris Lattner0b832202008-06-08 02:45:07 +0000414
415<ul>
Chris Lattner922d00f2010-07-21 15:57:40 +0000416<li>MachO writer works.</li>
Chris Lattner84977642007-09-21 03:54:09 +0000417</ul>
Chris Lattner84977642007-09-21 03:54:09 +0000418</div>
419
Chris Lattner917cc712009-03-02 02:37:32 +0000420<!--=========================================================================-->
421<div class="doc_subsection">
422<a name="x86">X86-32 and X86-64 Target Improvements</a>
423</div>
424
425<div class="doc_text">
426<p>New features of the X86 target include:
427</p>
428
429<ul>
Chris Lattner922d00f2010-07-21 15:57:40 +0000430<li>The X86 backend now supports holding X87 floating point stack values
431 in registers across basic blocks, dramatically improving performance of code
432 that uses long double, and when targetting CPUs that don't support SSE.</li>
Chris Lattner511433e2009-03-02 03:24:11 +0000433
Chris Lattner917cc712009-03-02 02:37:32 +0000434</ul>
435
Chris Lattner917cc712009-03-02 02:37:32 +0000436</div>
Chris Lattner84977642007-09-21 03:54:09 +0000437
438<!--=========================================================================-->
439<div class="doc_subsection">
Chris Lattner61358ab2009-10-13 17:48:04 +0000440<a name="ARM">ARM Target Improvements</a>
Chris Lattnerc441fb82009-03-01 02:30:21 +0000441</div>
442
443<div class="doc_text">
Chris Lattner61358ab2009-10-13 17:48:04 +0000444<p>New features of the ARM target include:
445</p>
Chris Lattnerc441fb82009-03-01 02:30:21 +0000446
447<ul>
Chris Lattnerc441fb82009-03-01 02:30:21 +0000448
Bob Wilson5b2fb952010-09-13 17:37:55 +0000449<li>
450 All of the NEON load and store intrinsics (llvm.arm.neon.vld* and
451 llvm.arm.neon.vst*) take an extra parameter to specify the alignment in bytes
452 of the memory being accessed.
453</li>
454<li>
455 The llvm.arm.neon.vaba intrinsic (vector absolute difference and
456 accumulate) has been removed. This operation is now represented using
457 the llvm.arm.neon.vabd intrinsic (vector absolute difference) followed by a
458 vector add.
Bob Wilsone8472772010-09-13 17:39:35 +0000459</li>
Bob Wilson5b2fb952010-09-13 17:37:55 +0000460<li>
461 The llvm.arm.neon.vabdl and llvm.arm.neon.vabal intrinsics (lengthening
462 vector absolute difference with and without accumlation) have been removed.
463 They are represented using the llvm.arm.neon.vabd intrinsic (vector absolute
464 difference) followed by a vector zero-extend operation, and for vabal,
465 a vector add.
466</li>
467<li>
468 The llvm.arm.neon.vmovn intrinsic has been removed. Calls of this intrinsic
469 are now replaced by vector truncate operations.
470</li>
471<li>
472 The llvm.arm.neon.vmovls and llvm.arm.neon.vmovlu intrinsics have been
473 removed. They are now represented as vector sign-extend (vmovls) and
474 zero-extend (vmovlu) operations.
475</li>
476<li>
477 The llvm.arm.neon.vaddl*, llvm.arm.neon.vaddw*, llvm.arm.neon.vsubl*, and
478 llvm.arm.neon.vsubw* intrinsics (lengthening vector add and subtract) have
479 been removed. They are replaced by vector add and vector subtract operations
480 where one (vaddw, vsubw) or both (vaddl, vsubl) of the operands are either
481 sign-extended or zero-extended.
482</li>
483<li>
484 The llvm.arm.neon.vmulls, llvm.arm.neon.vmullu, llvm.arm.neon.vmlal*, and
485 llvm.arm.neon.vmlsl* intrinsics (lengthening vector multiply with and without
486 accumulation and subtraction) have been removed. These operations are now
487 represented as vector multiplications where the operands are either
488 sign-extended or zero-extended, followed by a vector add for vmlal or a
489 vector subtract for vmlsl. Note that the polynomial vector multiply
490 intrinsic, llvm.arm.neon.vmullp, remains unchanged.
491</li>
Bob Wilsone8472772010-09-13 17:39:35 +0000492
493</ul>
Chris Lattner61358ab2009-10-13 17:48:04 +0000494</div>
Chris Lattnerc441fb82009-03-01 02:30:21 +0000495
Chris Lattner61358ab2009-10-13 17:48:04 +0000496<!--=========================================================================-->
497<div class="doc_subsection">
Chris Lattner61358ab2009-10-13 17:48:04 +0000498<a name="newapis">New Useful APIs</a>
499</div>
500
501<div class="doc_text">
502
503<p>This release includes a number of new APIs that are used internally, which
504 may also be useful for external clients.
505</p>
506
507<ul>
Chris Lattner922d00f2010-07-21 15:57:40 +0000508<li></li>
Chris Lattner61358ab2009-10-13 17:48:04 +0000509</ul>
510
511
512</div>
513
514<!--=========================================================================-->
515<div class="doc_subsection">
516<a name="otherimprovements">Other Improvements and New Features</a>
517</div>
518
519<div class="doc_text">
520<p>Other miscellaneous features include:</p>
521
522<ul>
Chris Lattner922d00f2010-07-21 15:57:40 +0000523<li></li>
Chris Lattnerc441fb82009-03-01 02:30:21 +0000524</ul>
525
526</div>
527
Chris Lattner77d29b12008-06-05 08:02:49 +0000528
529<!--=========================================================================-->
530<div class="doc_subsection">
Chris Lattnerf6662f92008-10-13 17:57:36 +0000531<a name="changes">Major Changes and Removed Features</a>
532</div>
533
534<div class="doc_text">
535
Chris Lattnereeb4da02008-10-13 22:06:31 +0000536<p>If you're already an LLVM user or developer with out-of-tree changes based
Chris Lattner922d00f2010-07-21 15:57:40 +0000537on LLVM 2.7, this section lists some "gotchas" that you may run into upgrading
Chris Lattnereeb4da02008-10-13 22:06:31 +0000538from the previous release.</p>
Chris Lattnerf6662f92008-10-13 17:57:36 +0000539
540<ul>
Chris Lattner2295b5a2010-09-02 23:22:50 +0000541<li>.ll file doesn't produce #uses comments anymore, to get them, run a .bc file
542 through "llvm-dis --show-annotations".</li>
Chris Lattner885b6612010-08-28 16:33:36 +0000543<li>MSIL Backend removed.</li>
544<li>ABCD and SSI passes removed.</li>
545<li>'Union' LLVM IR feature removed.</li>
Chris Lattnerb7c85b42010-04-21 05:17:40 +0000546</ul>
Chris Lattnereeb4da02008-10-13 22:06:31 +0000547
548<p>In addition, many APIs have changed in this release. Some of the major LLVM
549API changes are:</p>
550
551<ul>
Devang Patelb34dd132008-10-14 20:03:43 +0000552</ul>
Chris Lattnerf6662f92008-10-13 17:57:36 +0000553
Chris Lattnerf6662f92008-10-13 17:57:36 +0000554</div>
555
556
557
Chris Lattner19092612003-10-02 16:38:05 +0000558<!-- *********************************************************************** -->
Misha Brukman500bc302003-11-22 00:38:41 +0000559<div class="doc_section">
560 <a name="portability">Portability and Supported Platforms</a>
561</div>
Chris Lattner19092612003-10-02 16:38:05 +0000562<!-- *********************************************************************** -->
563
Misha Brukman500bc302003-11-22 00:38:41 +0000564<div class="doc_text">
565
John Criswell0b5b5e92004-12-08 20:35:47 +0000566<p>LLVM is known to work on the following platforms:</p>
Chris Lattner4654bdb2004-06-01 18:22:41 +0000567
568<ul>
Mikhail Glushenkovf795ef02009-03-01 18:09:47 +0000569<li>Intel and AMD machines (IA32, X86-64, AMD64, EMT-64) running Red Hat
Chris Lattner61358ab2009-10-13 17:48:04 +0000570 Linux, Fedora Core, FreeBSD and AuroraUX (and probably other unix-like
571 systems).</li>
Chris Lattner914ce462010-04-22 06:28:20 +0000572<li>PowerPC and X86-based Mac OS X systems, running 10.4 and above in 32-bit
Chris Lattner61358ab2009-10-13 17:48:04 +0000573 and 64-bit modes.</li>
Chris Lattner252b83d2008-02-06 18:00:06 +0000574<li>Intel and AMD machines running on Win32 using MinGW libraries (native).</li>
Chris Lattner57a460e2007-05-23 04:39:32 +0000575<li>Intel and AMD machines running on Win32 with the Cygwin libraries (limited
576 support is available for native builds with Visual C++).</li>
Chris Lattner7e23d6e2009-10-16 16:30:58 +0000577<li>Sun x86 and AMD64 machines running Solaris 10, OpenSolaris 0906.</li>
John Criswell9321fa82005-05-13 20:28:15 +0000578<li>Alpha-based machines running Debian GNU/Linux.</li>
Chris Lattner4654bdb2004-06-01 18:22:41 +0000579</ul>
580
Chris Lattnerbc5786b2008-06-05 06:57:39 +0000581<p>The core LLVM infrastructure uses GNU autoconf to adapt itself
Brian Gaekeb0fd7612004-05-09 05:28:35 +0000582to the machine and operating system on which it is built. However, minor
583porting may be required to get LLVM to work on new platforms. We welcome your
584portability patches and reports of successful builds or error messages.</p>
Chris Lattner79c3fe12003-10-02 04:57:28 +0000585
Misha Brukman500bc302003-11-22 00:38:41 +0000586</div>
Chris Lattner79c3fe12003-10-02 04:57:28 +0000587
588<!-- *********************************************************************** -->
Misha Brukman500bc302003-11-22 00:38:41 +0000589<div class="doc_section">
590 <a name="knownproblems">Known Problems</a>
591</div>
Chris Lattner79c3fe12003-10-02 04:57:28 +0000592<!-- *********************************************************************** -->
593
Misha Brukman500bc302003-11-22 00:38:41 +0000594<div class="doc_text">
595
Mikhail Glushenkovf795ef02009-03-01 18:09:47 +0000596<p>This section contains significant known problems with the LLVM system,
Chris Lattnere18b32e2008-11-10 05:40:34 +0000597listed by component. If you run into a problem, please check the <a
Chris Lattnerc463b272005-10-29 07:07:09 +0000598href="http://llvm.org/bugs/">LLVM bug database</a> and submit a bug if
Chris Lattner5eccca42003-12-12 21:22:16 +0000599there isn't already one.</p>
Chris Lattner79c3fe12003-10-02 04:57:28 +0000600
Chris Lattner477a1fd2010-03-17 17:25:49 +0000601<ul>
Chris Lattner61358ab2009-10-13 17:48:04 +0000602<li>LLVM will not correctly compile on Solaris and/or OpenSolaris
603using the stock GCC 3.x.x series 'out the box',
Chris Lattner554ee4a2009-11-03 21:50:09 +0000604See: <a href="GettingStarted.html#brokengcc">Broken versions of GCC and other tools</a>.
Chris Lattner61358ab2009-10-13 17:48:04 +0000605However, A <a href="http://pkg.auroraux.org/GCC">Modern GCC Build</a>
606for x86/x86-64 has been made available from the third party AuroraUX Project
607that has been meticulously tested for bootstrapping LLVM &amp; Clang.</li>
Eric Christopher3aff6692010-08-05 20:38:39 +0000608<li>There have been reports of Solaris and/or OpenSolaris build failures due
609to an incompatibility in the nm program as well. The nm from binutils does seem
610to work.</li>
Chris Lattner61358ab2009-10-13 17:48:04 +0000611</ul>
612
Misha Brukman500bc302003-11-22 00:38:41 +0000613</div>
Chris Lattner79c3fe12003-10-02 04:57:28 +0000614
Chris Lattnerf5ee1702004-03-14 02:03:02 +0000615<!-- ======================================================================= -->
616<div class="doc_subsection">
617 <a name="experimental">Experimental features included with this release</a>
618</div>
Chris Lattner79c3fe12003-10-02 04:57:28 +0000619
Chris Lattnerf5ee1702004-03-14 02:03:02 +0000620<div class="doc_text">
621
Misha Brukman6df9e2c2004-05-12 21:46:05 +0000622<p>The following components of this LLVM release are either untested, known to
623be broken or unreliable, or are in early development. These components should
624not be relied on, and bugs should not be filed against them, but they may be
625useful to some people. In particular, if you would like to work on one of these
Chris Lattner2b659ef2008-02-12 06:29:45 +0000626components, please contact us on the <a
627href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">LLVMdev list</a>.</p>
Chris Lattnerf5ee1702004-03-14 02:03:02 +0000628
629<ul>
Chris Lattner885b6612010-08-28 16:33:36 +0000630<li>The Alpha, SPU, MIPS, PIC16, Blackfin, MSP430, SystemZ and MicroBlaze
Wesley Peck7c4a1212010-03-18 14:31:30 +0000631 backends are experimental.</li>
Chris Lattner914ce462010-04-22 06:28:20 +0000632<li><tt>llc</tt> "<tt>-filetype=asm</tt>" (the default) is the only
Chris Lattner922d00f2010-07-21 15:57:40 +0000633 supported value for this option. XXX Update me</li>
Chris Lattnerf5ee1702004-03-14 02:03:02 +0000634</ul>
635
636</div>
Chris Lattner79c3fe12003-10-02 04:57:28 +0000637
Misha Brukman500bc302003-11-22 00:38:41 +0000638<!-- ======================================================================= -->
639<div class="doc_subsection">
Chris Lattner26299222006-11-18 07:51:14 +0000640 <a name="x86-be">Known problems with the X86 back-end</a>
John Criswellc0c186d2005-11-08 21:11:33 +0000641</div>
642
643<div class="doc_text">
644
645<ul>
Anton Korobeynikova6094be2008-06-08 10:24:13 +0000646 <li>The X86 backend does not yet support
647 all <a href="http://llvm.org/PR879">inline assembly that uses the X86
648 floating point stack</a>. It supports the 'f' and 't' constraints, but not
649 'u'.</li>
Duncan Sands47eff2b2008-06-08 19:38:43 +0000650 <li>Win64 code generation wasn't widely tested. Everything should work, but we
John Criswell524a5dd2009-03-02 15:28:15 +0000651 expect small issues to happen. Also, llvm-gcc cannot build the mingw64
Chris Lattner914ce462010-04-22 06:28:20 +0000652 runtime currently due to lack of support for the 'u' inline assembly
653 constraint and for X87 floating point inline assembly.</li>
Dan Gohman8207ba92008-06-08 23:05:11 +0000654 <li>The X86-64 backend does not yet support the LLVM IR instruction
Chris Lattner914ce462010-04-22 06:28:20 +0000655 <tt>va_arg</tt>. Currently, front-ends support variadic
Dan Gohman8207ba92008-06-08 23:05:11 +0000656 argument constructs on X86-64 by lowering them manually.</li>
Chris Lattner26299222006-11-18 07:51:14 +0000657</ul>
658
659</div>
660
661<!-- ======================================================================= -->
662<div class="doc_subsection">
663 <a name="ppc-be">Known problems with the PowerPC back-end</a>
664</div>
665
666<div class="doc_text">
667
668<ul>
Nicolas Geoffraye4285dc2007-05-15 09:21:28 +0000669<li>The Linux PPC32/ABI support needs testing for the interpreter and static
Chris Lattner57a460e2007-05-23 04:39:32 +0000670compilation, and lacks support for debug information.</li>
Chris Lattner26299222006-11-18 07:51:14 +0000671</ul>
672
673</div>
674
675<!-- ======================================================================= -->
676<div class="doc_subsection">
Chris Lattnerf3e5bc62007-05-14 06:56:09 +0000677 <a name="arm-be">Known problems with the ARM back-end</a>
678</div>
679
680<div class="doc_text">
681
682<ul>
Chris Lattner57a460e2007-05-23 04:39:32 +0000683<li>Thumb mode works only on ARMv6 or higher processors. On sub-ARMv6
Duncan Sandsc90d68b2007-09-26 15:59:54 +0000684processors, thumb programs can crash or produce wrong
Chris Lattner57a460e2007-05-23 04:39:32 +0000685results (<a href="http://llvm.org/PR1388">PR1388</a>).</li>
John Criswell524a5dd2009-03-02 15:28:15 +0000686<li>Compilation for ARM Linux OABI (old ABI) is supported but not fully tested.
Chris Lattnerf3e5bc62007-05-14 06:56:09 +0000687</li>
Chris Lattnerf3e5bc62007-05-14 06:56:09 +0000688</ul>
689
690</div>
691
692<!-- ======================================================================= -->
693<div class="doc_subsection">
Chris Lattner26299222006-11-18 07:51:14 +0000694 <a name="sparc-be">Known problems with the SPARC back-end</a>
695</div>
696
697<div class="doc_text">
698
699<ul>
John Criswell524a5dd2009-03-02 15:28:15 +0000700<li>The SPARC backend only supports the 32-bit SPARC ABI (-m32); it does not
Chris Lattner26299222006-11-18 07:51:14 +0000701 support the 64-bit SPARC ABI (-m64).</li>
702</ul>
703
704</div>
705
706<!-- ======================================================================= -->
707<div class="doc_subsection">
Bruno Cardoso Lopesb7e1a4f2008-10-25 14:56:26 +0000708 <a name="mips-be">Known problems with the MIPS back-end</a>
709</div>
710
711<div class="doc_text">
712
713<ul>
Bruno Cardoso Lopesb7e1a4f2008-10-25 14:56:26 +0000714<li>64-bit MIPS targets are not supported yet.</li>
715</ul>
716
717</div>
718
719<!-- ======================================================================= -->
720<div class="doc_subsection">
Chris Lattner26299222006-11-18 07:51:14 +0000721 <a name="alpha-be">Known problems with the Alpha back-end</a>
722</div>
723
724<div class="doc_text">
725
726<ul>
727
728<li>On 21164s, some rare FP arithmetic sequences which may trap do not have the
729appropriate nops inserted to ensure restartability.</li>
730
John Criswellc0c186d2005-11-08 21:11:33 +0000731</ul>
732</div>
733
Chris Lattner26299222006-11-18 07:51:14 +0000734<!-- ======================================================================= -->
735<div class="doc_subsection">
Chris Lattnerf3e5bc62007-05-14 06:56:09 +0000736 <a name="c-be">Known problems with the C back-end</a>
Chris Lattner26299222006-11-18 07:51:14 +0000737</div>
738
739<div class="doc_text">
740
741<ul>
Chris Lattner5733b272008-06-05 06:35:40 +0000742<li><a href="http://llvm.org/PR802">The C backend has only basic support for
743 inline assembly code</a>.</li>
Chris Lattner725a0d82007-09-26 06:01:35 +0000744<li><a href="http://llvm.org/PR1658">The C backend violates the ABI of common
745 C++ programs</a>, preventing intermixing between C++ compiled by the CBE and
Gabor Greif4906abe2009-03-02 12:02:51 +0000746 C++ code compiled with <tt>llc</tt> or native compilers.</li>
Duncan Sandsf74c0cc2008-02-10 13:40:55 +0000747<li>The C backend does not support all exception handling constructs.</li>
Duncan Sands50723a92009-02-25 11:51:54 +0000748<li>The C backend does not support arbitrary precision integers.</li>
Chris Lattner26299222006-11-18 07:51:14 +0000749</ul>
750
751</div>
John Criswellc0c186d2005-11-08 21:11:33 +0000752
Misha Brukman500bc302003-11-22 00:38:41 +0000753
754<!-- ======================================================================= -->
755<div class="doc_subsection">
Chris Lattnerc66bfef2010-03-17 04:41:49 +0000756 <a name="c-fe">Known problems with the llvm-gcc C and C++ front-end</a>
Misha Brukman500bc302003-11-22 00:38:41 +0000757</div>
Chris Lattner47588f92003-10-02 05:07:23 +0000758
Misha Brukman500bc302003-11-22 00:38:41 +0000759<div class="doc_text">
Chris Lattnerc5d658a2006-03-03 00:34:26 +0000760
Chris Lattner5733b272008-06-05 06:35:40 +0000761<p>The only major language feature of GCC not supported by llvm-gcc is
762 the <tt>__builtin_apply</tt> family of builtins. However, some extensions
763 are only supported on some targets. For example, trampolines are only
Duncan Sands27aff872008-06-08 20:18:35 +0000764 supported on some targets (these are used when you take the address of a
765 nested function).</p>
Misha Brukman500bc302003-11-22 00:38:41 +0000766
Misha Brukman500bc302003-11-22 00:38:41 +0000767</div>
Chris Lattner79c3fe12003-10-02 04:57:28 +0000768
Misha Brukman500bc302003-11-22 00:38:41 +0000769<!-- ======================================================================= -->
770<div class="doc_subsection">
Chris Lattner1eb4df62008-10-30 03:58:13 +0000771 <a name="fortran-fe">Known problems with the llvm-gcc Fortran front-end</a>
772</div>
773
774<div class="doc_text">
Gabor Greifba10fe02008-11-04 21:50:59 +0000775<ul>
Chris Lattner1eb4df62008-10-30 03:58:13 +0000776<li>Fortran support generally works, but there are still several unresolved bugs
Chris Lattner61358ab2009-10-13 17:48:04 +0000777 in <a href="http://llvm.org/bugs/">Bugzilla</a>. Please see the
778 tools/gfortran component for details.</li>
Gabor Greifba10fe02008-11-04 21:50:59 +0000779</ul>
Chris Lattner1eb4df62008-10-30 03:58:13 +0000780</div>
Misha Brukman500bc302003-11-22 00:38:41 +0000781
Chris Lattner2b659ef2008-02-12 06:29:45 +0000782<!-- ======================================================================= -->
783<div class="doc_subsection">
Chris Lattner5733b272008-06-05 06:35:40 +0000784 <a name="ada-fe">Known problems with the llvm-gcc Ada front-end</a>
Chris Lattner2b659ef2008-02-12 06:29:45 +0000785</div>
786
787<div class="doc_text">
John Criswell524a5dd2009-03-02 15:28:15 +0000788The llvm-gcc 4.2 Ada compiler works fairly well; however, this is not a mature
789technology, and problems should be expected.
Chris Lattner2b659ef2008-02-12 06:29:45 +0000790<ul>
Duncan Sands27aff872008-06-08 20:18:35 +0000791<li>The Ada front-end currently only builds on X86-32. This is mainly due
John Criswell524a5dd2009-03-02 15:28:15 +0000792to lack of trampoline support (pointers to nested functions) on other platforms.
793However, it <a href="http://llvm.org/PR2006">also fails to build on X86-64</a>
Chris Lattner2b659ef2008-02-12 06:29:45 +0000794which does support trampolines.</li>
795<li>The Ada front-end <a href="http://llvm.org/PR2007">fails to bootstrap</a>.
Duncan Sands326a4982009-02-25 11:59:06 +0000796This is due to lack of LLVM support for <tt>setjmp</tt>/<tt>longjmp</tt> style
797exception handling, which is used internally by the compiler.
Chris Lattner61358ab2009-10-13 17:48:04 +0000798Workaround: configure with <tt>--disable-bootstrap</tt>.</li>
Duncan Sands978bcee2008-10-13 17:27:23 +0000799<li>The c380004, <a href="http://llvm.org/PR2010">c393010</a>
800and <a href="http://llvm.org/PR2421">cxg2021</a> ACATS tests fail
Duncan Sands326a4982009-02-25 11:59:06 +0000801(c380004 also fails with gcc-4.2 mainline).
802If the compiler is built with checks disabled then <a href="http://llvm.org/PR2010">c393010</a>
803causes the compiler to go into an infinite loop, using up all system memory.</li>
Duncan Sandsdd3e6722009-03-02 16:35:57 +0000804<li>Some GCC specific Ada tests continue to crash the compiler.</li>
Chris Lattner61358ab2009-10-13 17:48:04 +0000805<li>The <tt>-E</tt> binder option (exception backtraces)
Chris Lattner2b659ef2008-02-12 06:29:45 +0000806<a href="http://llvm.org/PR1982">does not work</a> and will result in programs
Chris Lattner61358ab2009-10-13 17:48:04 +0000807crashing if an exception is raised. Workaround: do not use <tt>-E</tt>.</li>
Chris Lattner2b659ef2008-02-12 06:29:45 +0000808<li>Only discrete types <a href="http://llvm.org/PR1981">are allowed to start
809or finish at a non-byte offset</a> in a record. Workaround: do not pack records
810or use representation clauses that result in a field of a non-discrete type
811starting or finishing in the middle of a byte.</li>
Chris Lattnere6e1b352008-06-08 21:19:07 +0000812<li>The <tt>lli</tt> interpreter <a href="http://llvm.org/PR2009">considers
813'main' as generated by the Ada binder to be invalid</a>.
814Workaround: hand edit the file to use pointers for <tt>argv</tt> and
815<tt>envp</tt> rather than integers.</li>
816<li>The <tt>-fstack-check</tt> option <a href="http://llvm.org/PR2008">is
817ignored</a>.</li>
Chris Lattner2b659ef2008-02-12 06:29:45 +0000818</ul>
819</div>
820
Chris Lattner79c3fe12003-10-02 04:57:28 +0000821<!-- *********************************************************************** -->
Misha Brukman500bc302003-11-22 00:38:41 +0000822<div class="doc_section">
823 <a name="additionalinfo">Additional Information</a>
824</div>
Chris Lattner79c3fe12003-10-02 04:57:28 +0000825<!-- *********************************************************************** -->
826
Misha Brukman500bc302003-11-22 00:38:41 +0000827<div class="doc_text">
828
Chris Lattner416db102005-05-16 17:13:10 +0000829<p>A wide variety of additional information is available on the <a
Chris Lattnerb4b0ce72007-05-18 00:44:29 +0000830href="http://llvm.org">LLVM web page</a>, in particular in the <a
831href="http://llvm.org/docs/">documentation</a> section. The web page also
Reid Spencer669ed452007-07-09 08:04:31 +0000832contains versions of the API documentation which is up-to-date with the
833Subversion version of the source code.
Misha Brukman109d9e82005-03-30 19:14:24 +0000834You can access versions of these documents specific to this release by going
835into the "<tt>llvm/doc/</tt>" directory in the LLVM tree.</p>
Chris Lattner79c3fe12003-10-02 04:57:28 +0000836
Misha Brukman500bc302003-11-22 00:38:41 +0000837<p>If you have any questions or comments about LLVM, please feel free to contact
Chris Lattnerc463b272005-10-29 07:07:09 +0000838us via the <a href="http://llvm.org/docs/#maillist"> mailing
Chris Lattner5eccca42003-12-12 21:22:16 +0000839lists</a>.</p>
Chris Lattner79c3fe12003-10-02 04:57:28 +0000840
Misha Brukman500bc302003-11-22 00:38:41 +0000841</div>
Chris Lattner79c3fe12003-10-02 04:57:28 +0000842
843<!-- *********************************************************************** -->
Chris Lattner79c3fe12003-10-02 04:57:28 +0000844
Misha Brukman500bc302003-11-22 00:38:41 +0000845<hr>
Misha Brukman2061e892003-11-22 01:23:39 +0000846<address>
Misha Brukman38847d52003-12-21 22:53:21 +0000847 <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
Misha Brukman44408702008-12-11 17:34:48 +0000848 src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS"></a>
Misha Brukman2061e892003-11-22 01:23:39 +0000849 <a href="http://validator.w3.org/check/referer"><img
Misha Brukman44408702008-12-11 17:34:48 +0000850 src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a>
Misha Brukman2061e892003-11-22 01:23:39 +0000851
Chris Lattnerb4b0ce72007-05-18 00:44:29 +0000852 <a href="http://llvm.org/">LLVM Compiler Infrastructure</a><br>
Misha Brukman500bc302003-11-22 00:38:41 +0000853 Last modified: $Date$
Misha Brukman2061e892003-11-22 01:23:39 +0000854</address>
Chris Lattner79c3fe12003-10-02 04:57:28 +0000855
Misha Brukman500bc302003-11-22 00:38:41 +0000856</body>
857</html>