blob: 61aca32610a0bd261a47a5b9acc27f1c3898c119 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3<html>
4<head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6 <link rel="stylesheet" href="llvm.css" type="text/css">
Dan Gohman5577c602010-05-03 23:51:05 +00007 <title>LLVM 2.8 Release Notes</title>
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008</head>
9<body>
10
Dan Gohman5577c602010-05-03 23:51:05 +000011<div class="doc_title">LLVM 2.8 Release Notes</div>
Mikhail Glushenkov808cd3e2008-10-13 02:08:34 +000012
Chris Lattnere5236102010-03-17 04:02:39 +000013<img align=right src="http://llvm.org/img/DragonSmall.png"
Gabor Greif92d28ea2010-04-22 10:21:43 +000014 width="136" height="136" alt="LLVM Dragon Logo">
Chris Lattnere5236102010-03-17 04:02:39 +000015
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016<ol>
17 <li><a href="#intro">Introduction</a></li>
Chris Lattner78a130b2008-10-13 18:01:01 +000018 <li><a href="#subproj">Sub-project Status Update</a></li>
Dan Gohman5577c602010-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>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021 <li><a href="GettingStarted.html">Installation Instructions</a></li>
22 <li><a href="#portability">Portability and Supported Platforms</a></li>
Dan Gohman0de549c2008-10-14 16:23:02 +000023 <li><a href="#knownproblems">Known Problems</a></li>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024 <li><a href="#additionalinfo">Additional Information</a></li>
25</ol>
26
27<div class="doc_author">
Dan Gohman0de549c2008-10-14 16:23:02 +000028 <p>Written by the <a href="http://llvm.org">LLVM Team</a></p>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029</div>
30
Chris Lattnerabfaf732010-04-22 05:41:35 +000031<h1 style="color:red">These are in-progress notes for the upcoming LLVM 2.8
Jeffrey Yasskin8ee1b0a2010-01-28 01:14:43 +000032release.<br>
33You may prefer the
Dan Gohman5577c602010-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 Yasskin8ee1b0a2010-01-28 01:14:43 +000036
Dan Gohmanf17a25c2007-07-18 16:29:46 +000037<!-- *********************************************************************** -->
38<div class="doc_section">
39 <a name="intro">Introduction</a>
40</div>
41<!-- *********************************************************************** -->
42
43<div class="doc_text">
44
Chris Lattner92eacf82008-10-13 17:57:36 +000045<p>This document contains the release notes for the LLVM Compiler
Dan Gohman7f6a6af2010-05-03 23:52:21 +000046Infrastructure, release 2.8. Here we describe the status of LLVM, including
Chris Lattner92eacf82008-10-13 17:57:36 +000047major improvements from the previous release and significant known problems.
Mikhail Glushenkovf61066a2009-03-01 18:09:47 +000048All LLVM releases may be downloaded from the <a
Chris Lattner92eacf82008-10-13 17:57:36 +000049href="http://llvm.org/releases/">LLVM releases web site</a>.</p>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000050
51<p>For more information about LLVM, including information about the latest
52release, please check out the <a href="http://llvm.org/">main LLVM
53web site</a>. If you have questions or comments, the <a
Chris Lattner58b1d0f2010-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>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000056
Mikhail Glushenkov808cd3e2008-10-13 02:08:34 +000057<p>Note that if you are reading this file from a Subversion checkout or the
Chris Lattnerb0d6c502007-09-21 03:54:09 +000058main LLVM web page, this document applies to the <i>next</i> release, not the
Gabor Greif7c65c4f2008-10-14 11:00:32 +000059current one. To see the release notes for a specific release, please see the
Chris Lattnerb0d6c502007-09-21 03:54:09 +000060<a href="http://llvm.org/releases/">releases page</a>.</p>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000061
62</div>
Chris Lattner0b6ea7a2009-10-13 17:48:04 +000063
Dan Gohmanf17a25c2007-07-18 16:29:46 +000064
Chris Lattner0b6ea7a2009-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 Lattner6ba1be32010-04-13 06:37:00 +000070 ABCD, GEPSplitterPass
Chris Lattner2bd5e652010-01-16 21:25:13 +000071 MSIL backend?
Chris Lattner2b656342010-03-17 06:41:58 +000072 lib/Transforms/Utils/SSI.cpp -> ABCD depends on it.
Chris Lattner0b6ea7a2009-10-13 17:48:04 +000073-->
74
75
Dan Gohman5577c602010-05-03 23:51:05 +000076<!-- Features that need text if they're finished for 2.8:
Chris Lattner8f33c262010-04-22 06:28:20 +000077 combiner-aa?
Chris Lattner0b6ea7a2009-10-13 17:48:04 +000078 strong phi elim
Chris Lattner6fd928d2010-04-21 05:17:40 +000079 llvm.dbg.value: variable debug info for optimized code
Chris Lattner0b6ea7a2009-10-13 17:48:04 +000080 loop dependence analysis
Chris Lattner8fda4952008-02-10 07:46:44 +000081 -->
Mikhail Glushenkov808cd3e2008-10-13 02:08:34 +000082
Chris Lattner4f076402008-10-12 19:47:48 +000083 <!-- for announcement email:
Chris Lattner0b6ea7a2009-10-13 17:48:04 +000084 Logo web page.
Chris Lattner0b6ea7a2009-10-13 17:48:04 +000085 Many new papers added to /pubs/
Chris Lattnera53f4972009-02-25 06:34:50 +000086 -->
Chris Lattner8fda4952008-02-10 07:46:44 +000087
Chris Lattner78a130b2008-10-13 18:01:01 +000088<!-- *********************************************************************** -->
89<div class="doc_section">
90 <a name="subproj">Sub-project Status Update</a>
Chris Lattnerf65224f2008-06-08 21:34:41 +000091</div>
Chris Lattner78a130b2008-10-13 18:01:01 +000092<!-- *********************************************************************** -->
Chris Lattnerf65224f2008-06-08 21:34:41 +000093
94<div class="doc_text">
Chris Lattnerf6a0d382008-06-08 21:58:17 +000095<p>
Dan Gohman5577c602010-05-03 23:51:05 +000096The LLVM 2.8 distribution currently consists of code from the core LLVM
Chris Lattner0b6ea7a2009-10-13 17:48:04 +000097repository (which roughly includes the LLVM optimizers, code generators
98and supporting tools), the Clang repository and the llvm-gcc repository. In
99addition to this code, the LLVM Project includes other sub-projects that are in
100development. Here we include updates on these subprojects.
Bill Wendlingdde41b82009-03-02 04:28:57 +0000101</p>
Chris Lattner78a130b2008-10-13 18:01:01 +0000102
Chris Lattnerf6a0d382008-06-08 21:58:17 +0000103</div>
104
Chris Lattner78a130b2008-10-13 18:01:01 +0000105
Chris Lattnerf6a0d382008-06-08 21:58:17 +0000106<!--=========================================================================-->
Chris Lattner78a130b2008-10-13 18:01:01 +0000107<div class="doc_subsection">
Chris Lattnera3c683b2008-10-13 18:11:54 +0000108<a name="clang">Clang: C/C++/Objective-C Frontend Toolkit</a>
Chris Lattnerf6a0d382008-06-08 21:58:17 +0000109</div>
110
111<div class="doc_text">
112
Chris Lattnerefdea452010-04-26 17:42:18 +0000113<p><a href="http://clang.llvm.org/">Clang</a> is an LLVM front end for the C,
114C++, and Objective-C languages. Clang aims to provide a better user experience
115through expressive diagnostics, a high level of conformance to language
116standards, fast compilation, and low memory use. Like LLVM, Clang provides a
117modular, library-based architecture that makes it suitable for creating or
118integrating with other development tools. Clang is considered a
119production-quality compiler for C and Objective-C on x86 (32- and 64-bit).</p>
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000120
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000121<p>In the LLVM 2.8 time-frame, the Clang team has made many improvements:</p>
Bill Wendling385b0d32008-10-27 09:27:33 +0000122
Daniel Dunbarf3e35782008-10-14 23:25:09 +0000123<ul>
David Chisnall25635df2010-04-25 19:13:33 +0000124
Bill Wendlinga8fb81d2009-03-02 04:28:18 +0000125</ul>
Chris Lattnera3c683b2008-10-13 18:11:54 +0000126</div>
127
128<!--=========================================================================-->
129<div class="doc_subsection">
130<a name="clangsa">Clang Static Analyzer</a>
131</div>
132
133<div class="doc_text">
134
Chris Lattnerfa63e262010-04-22 06:38:11 +0000135<p>The <a href="http://clang-analyzer.llvm.org/">Clang Static Analyzer</a>
136 project is an effort to use static source code analysis techniques to
137 automatically find bugs in C and Objective-C programs (and hopefully <a
138 href="http://clang-analyzer.llvm.org/dev_cxx.html">C++ in the
139 future</a>!). The tool is very good at finding bugs that occur on specific
140 paths through code, such as on error conditions.</p>
Chris Lattnerc2d84672008-10-14 00:52:49 +0000141
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000142<p>In the LLVM 2.8 time-frame,
Chris Lattnerfa63e262010-04-22 06:38:11 +0000143</p>
Chris Lattnerf6a0d382008-06-08 21:58:17 +0000144
145</div>
146
Chris Lattner78a130b2008-10-13 18:01:01 +0000147<!--=========================================================================-->
148<div class="doc_subsection">
Nicolas Geoffray2b139382008-10-14 19:23:04 +0000149<a name="vmkit">VMKit: JVM/CLI Virtual Machine Implementation</a>
Chris Lattner78a130b2008-10-13 18:01:01 +0000150</div>
151
152<div class="doc_text">
153<p>
Nicolas Geoffray2b139382008-10-14 19:23:04 +0000154The <a href="http://vmkit.llvm.org/">VMKit project</a> is an implementation of
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000155a JVM and a CLI Virtual Machine (Microsoft .NET is an
156implementation of the CLI) using LLVM for static and just-in-time
157compilation.</p>
Chris Lattner78a130b2008-10-13 18:01:01 +0000158
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000159<p>With the release of LLVM 2.8, ...</p>
Chris Lattner78a130b2008-10-13 18:01:01 +0000160
161</div>
162
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000163
164<!--=========================================================================-->
165<div class="doc_subsection">
166<a name="compiler-rt">compiler-rt: Compiler Runtime Library</a>
167</div>
168
169<div class="doc_text">
170<p>
171The new LLVM <a href="http://compiler-rt.llvm.org/">compiler-rt project</a>
172is a simple library that provides an implementation of the low-level
173target-specific hooks required by code generation and other runtime components.
174For example, when compiling for a 32-bit target, converting a double to a 64-bit
175unsigned integer is compiled into a runtime call to the "__fixunsdfdi"
176function. The compiler-rt library provides highly optimized implementations of
177this and other low-level routines (some are 3x faster than the equivalent
178libgcc routines).</p>
179
180<p>
181All of the code in the compiler-rt project is available under the standard LLVM
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000182License, a "BSD-style" license. New in LLVM 2.8:
183
184Soft float support
185</p>
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000186
187</div>
188
189<!--=========================================================================-->
190<div class="doc_subsection">
Duncan Sands2d9c3082010-04-02 09:23:15 +0000191<a name="dragonegg">DragonEgg: llvm-gcc ported to gcc-4.5</a>
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000192</div>
193
194<div class="doc_text">
195<p>
Duncan Sands2d9c3082010-04-02 09:23:15 +0000196<a href="http://dragonegg.llvm.org/">DragonEgg</a> is a port of llvm-gcc to
197gcc-4.5. Unlike llvm-gcc, which makes many intrusive changes to the underlying
198gcc-4.2 code, dragonegg in theory does not require any gcc-4.5 modifications
199whatsoever (currently one small patch is needed). This is thanks to the new
200<a href="http://gcc.gnu.org/wiki/plugins">gcc plugin architecture</a>, which
201makes it possible to modify the behaviour of gcc at runtime by loading a plugin,
202which is nothing more than a dynamic library which conforms to the gcc plugin
203interface. DragonEgg is a gcc plugin that causes the LLVM optimizers to be run
204instead of the gcc optimizers, and the LLVM code generators instead of the gcc
205code generators, just like llvm-gcc. To use it, you add
206"-fplugin=path/dragonegg.so" to the gcc-4.5 command line, and gcc-4.5 magically
207becomes llvm-gcc-4.5!
208</p>
209
210<p>
211DragonEgg is still a work in progress. Currently C works very well, while C++,
212Ada and Fortran work fairly well. All other languages either don't work at all,
213or only work poorly. For the moment only the x86-32 and x86-64 targets are
Duncan Sands566f40b2010-04-20 19:40:58 +0000214supported, and only on linux and darwin (darwin needs an additional gcc patch).
Duncan Sands2d9c3082010-04-02 09:23:15 +0000215</p>
216
217<p>
Chris Lattnerd3b0ca52010-07-21 15:57:40 +00002182.8 status here.
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000219</p>
220
221</div>
222
223
224<!--=========================================================================-->
225<div class="doc_subsection">
226<a name="mc">llvm-mc: Machine Code Toolkit</a>
227</div>
228
229<div class="doc_text">
230<p>
Chris Lattnerfa63e262010-04-22 06:38:11 +0000231The LLVM Machine Code (aka MC) sub-project of LLVM was created to solve a number
232of problems in the realm of assembly, disassembly, object file format handling,
233and a number of other related areas that CPU instruction-set level tools work
234in. It is a sub-project of LLVM which provides it with a number of advantages
235over other compilers that do not have tightly integrated assembly-level tools.
236For a gentle introduction, please see the <a
237href="http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html">Intro to the
238LLVM MC Project Blog Post</a>.
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000239</p>
240
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000241<p>2.8 status here</p>
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000242</div>
243
244
Chris Lattnerb2cc5022009-02-26 22:33:38 +0000245<!-- *********************************************************************** -->
246<div class="doc_section">
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000247 <a name="externalproj">External Open Source Projects Using LLVM 2.8</a>
Chris Lattnerb2cc5022009-02-26 22:33:38 +0000248</div>
249<!-- *********************************************************************** -->
250
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000251<div class="doc_text">
252
253<p>An exciting aspect of LLVM is that it is used as an enabling technology for
254 a lot of other language and tools projects. This section lists some of the
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000255 projects that have already been updated to work with LLVM 2.8.</p>
Chris Lattner745cf9f2010-04-26 17:38:10 +0000256</div>
257
Chris Lattner7a12c992010-04-22 21:34:16 +0000258
Chris Lattnerf6a0d382008-06-08 21:58:17 +0000259<!-- *********************************************************************** -->
260<div class="doc_section">
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000261 <a name="whatsnew">What's New in LLVM 2.8?</a>
Chris Lattnerf6a0d382008-06-08 21:58:17 +0000262</div>
263<!-- *********************************************************************** -->
264
Chris Lattner5cce7a52008-06-08 22:59:35 +0000265<div class="doc_text">
266
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000267<p>This release includes a huge number of bug fixes, performance tweaks and
Chris Lattner92eacf82008-10-13 17:57:36 +0000268minor improvements. Some of the major improvements and new features are listed
269in this section.
Chris Lattner5cce7a52008-06-08 22:59:35 +0000270</p>
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000271
Chris Lattner8f33c262010-04-22 06:28:20 +0000272</div>
273
274<!--=========================================================================-->
275<div class="doc_subsection">
276<a name="orgchanges">LLVM Community Changes</a>
277</div>
278
279<div class="doc_text">
280
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000281<p>In addition to changes to the code, between LLVM 2.7 and 2.8, a number of
Chris Lattner6fd928d2010-04-21 05:17:40 +0000282organization changes have happened:
283</p>
284
285<ul>
Chris Lattner6fd928d2010-04-21 05:17:40 +0000286</ul>
Chris Lattner5cce7a52008-06-08 22:59:35 +0000287</div>
288
Chris Lattnerf6a0d382008-06-08 21:58:17 +0000289<!--=========================================================================-->
Chris Lattnerf65224f2008-06-08 21:34:41 +0000290<div class="doc_subsection">
Chris Lattnere0798082008-02-06 18:00:06 +0000291<a name="majorfeatures">Major New Features</a>
292</div>
293
294<div class="doc_text">
295
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000296<p>LLVM 2.8 includes several major new capabilities:</p>
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000297
298<ul>
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000299<li>.</li>
Chris Lattner5ba16862008-02-10 08:18:42 +0000300</ul>
Chris Lattner2b656342010-03-17 06:41:58 +0000301
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000302</div>
303
Chris Lattnerb0d6c502007-09-21 03:54:09 +0000304<!--=========================================================================-->
305<div class="doc_subsection">
Chris Lattner47202c32009-03-02 02:37:32 +0000306<a name="coreimprovements">LLVM IR and Core Improvements</a>
Chris Lattnerc3649452008-02-10 08:17:19 +0000307</div>
308
309<div class="doc_text">
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000310<p>LLVM IR has several new features for better support of new targets and that
311expose new optimization opportunities:</p>
Chris Lattnerc3649452008-02-10 08:17:19 +0000312
Chris Lattnerc5a4e312008-06-05 06:25:56 +0000313<ul>
Gabor Greif42d1fa72010-07-21 10:20:08 +0000314
315<li>LLVM 2.8 changes the internal order of operands in <a
316 href="http://llvm.org/doxygen/classllvm_1_1InvokeInst.html"><tt>InvokeInst</tt></a>
317 and <a href="http://llvm.org/doxygen/classllvm_1_1CallInst.html"><tt>CallInst</tt></a>.
318 To be portable across releases, resort to <tt>CallSite</tt> and the
Gabor Greif0c6645b2010-07-21 10:22:41 +0000319 high-level accessors, such as <tt>getCalledValue</tt> and <tt>setUnwindDest</tt>.
Gabor Greif42d1fa72010-07-21 10:20:08 +0000320</li>
321
Chris Lattnerc3649452008-02-10 08:17:19 +0000322</ul>
Mikhail Glushenkov808cd3e2008-10-13 02:08:34 +0000323
Chris Lattnerc3649452008-02-10 08:17:19 +0000324</div>
325
326<!--=========================================================================-->
327<div class="doc_subsection">
Chris Lattner8fda4952008-02-10 07:46:44 +0000328<a name="optimizer">Optimizer Improvements</a>
329</div>
330
331<div class="doc_text">
332
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000333<p>In addition to a large array of minor performance tweaks and bug fixes, this
Chris Lattnerea9c2242008-10-13 21:50:36 +0000334release includes a few major enhancements and additions to the optimizers:</p>
Chris Lattner8fda4952008-02-10 07:46:44 +0000335
336<ul>
337
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000338<li></li>
Chris Lattner556aac32010-04-21 06:42:24 +0000339
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000340</ul>
Chris Lattner47202c32009-03-02 02:37:32 +0000341
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000342</div>
Chris Lattner47202c32009-03-02 02:37:32 +0000343
Chris Lattner47202c32009-03-02 02:37:32 +0000344
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000345<!--=========================================================================-->
346<div class="doc_subsection">
347<a name="executionengine">Interpreter and JIT Improvements</a>
348</div>
Chris Lattnerea9c2242008-10-13 21:50:36 +0000349
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000350<div class="doc_text">
351
352<ul>
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000353<li></li>
Chris Lattner6fd928d2010-04-21 05:17:40 +0000354
Chris Lattner0eef6e42008-06-08 02:45:07 +0000355</ul>
356
357</div>
358
359<!--=========================================================================-->
360<div class="doc_subsection">
Chris Lattner5f393542009-03-02 03:24:11 +0000361<a name="codegen">Target Independent Code Generator Improvements</a>
Chris Lattner0eef6e42008-06-08 02:45:07 +0000362</div>
363
364<div class="doc_text">
365
Mikhail Glushenkovf61066a2009-03-01 18:09:47 +0000366<p>We have put a significant amount of work into the code generator
367infrastructure, which allows us to implement more aggressive algorithms and make
368it run faster:</p>
Chris Lattner0eef6e42008-06-08 02:45:07 +0000369
370<ul>
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000371<li>MachO writer works.</li>
Chris Lattnerb0d6c502007-09-21 03:54:09 +0000372</ul>
Chris Lattnerb0d6c502007-09-21 03:54:09 +0000373</div>
374
Chris Lattner47202c32009-03-02 02:37:32 +0000375<!--=========================================================================-->
376<div class="doc_subsection">
377<a name="x86">X86-32 and X86-64 Target Improvements</a>
378</div>
379
380<div class="doc_text">
381<p>New features of the X86 target include:
382</p>
383
384<ul>
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000385<li>The X86 backend now supports holding X87 floating point stack values
386 in registers across basic blocks, dramatically improving performance of code
387 that uses long double, and when targetting CPUs that don't support SSE.</li>
Chris Lattner5f393542009-03-02 03:24:11 +0000388
Chris Lattner47202c32009-03-02 02:37:32 +0000389</ul>
390
Chris Lattner47202c32009-03-02 02:37:32 +0000391</div>
Chris Lattnerb0d6c502007-09-21 03:54:09 +0000392
393<!--=========================================================================-->
394<div class="doc_subsection">
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000395<a name="ARM">ARM Target Improvements</a>
Chris Lattner7ccc40d2009-03-01 02:30:21 +0000396</div>
397
398<div class="doc_text">
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000399<p>New features of the ARM target include:
400</p>
Chris Lattner7ccc40d2009-03-01 02:30:21 +0000401
402<ul>
Chris Lattner7ccc40d2009-03-01 02:30:21 +0000403
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000404<li></li>
Jim Grosbach95254a42010-04-22 18:33:31 +0000405
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000406</ul>
Chris Lattner7ccc40d2009-03-01 02:30:21 +0000407
Chris Lattner7ccc40d2009-03-01 02:30:21 +0000408
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000409</div>
Chris Lattner7ccc40d2009-03-01 02:30:21 +0000410
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000411<!--=========================================================================-->
412<div class="doc_subsection">
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000413<a name="newapis">New Useful APIs</a>
414</div>
415
416<div class="doc_text">
417
418<p>This release includes a number of new APIs that are used internally, which
419 may also be useful for external clients.
420</p>
421
422<ul>
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000423<li></li>
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000424</ul>
425
426
427</div>
428
429<!--=========================================================================-->
430<div class="doc_subsection">
431<a name="otherimprovements">Other Improvements and New Features</a>
432</div>
433
434<div class="doc_text">
435<p>Other miscellaneous features include:</p>
436
437<ul>
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000438<li></li>
Chris Lattner7ccc40d2009-03-01 02:30:21 +0000439</ul>
440
441</div>
442
Chris Lattnere45f18b2008-06-05 08:02:49 +0000443
444<!--=========================================================================-->
445<div class="doc_subsection">
Chris Lattner92eacf82008-10-13 17:57:36 +0000446<a name="changes">Major Changes and Removed Features</a>
447</div>
448
449<div class="doc_text">
450
Chris Lattnercc64a322008-10-13 22:06:31 +0000451<p>If you're already an LLVM user or developer with out-of-tree changes based
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000452on LLVM 2.7, this section lists some "gotchas" that you may run into upgrading
Chris Lattnercc64a322008-10-13 22:06:31 +0000453from the previous release.</p>
Chris Lattner92eacf82008-10-13 17:57:36 +0000454
455<ul>
Chris Lattner6fd928d2010-04-21 05:17:40 +0000456
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000457<li>.</li>
Chris Lattner6fd928d2010-04-21 05:17:40 +0000458</ul>
Chris Lattnercc64a322008-10-13 22:06:31 +0000459
460<p>In addition, many APIs have changed in this release. Some of the major LLVM
461API changes are:</p>
462
463<ul>
Devang Patel0e3da1a2008-10-14 20:03:43 +0000464</ul>
Chris Lattner92eacf82008-10-13 17:57:36 +0000465
Chris Lattner92eacf82008-10-13 17:57:36 +0000466</div>
467
468
469
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000470<!-- *********************************************************************** -->
471<div class="doc_section">
472 <a name="portability">Portability and Supported Platforms</a>
473</div>
474<!-- *********************************************************************** -->
475
476<div class="doc_text">
477
478<p>LLVM is known to work on the following platforms:</p>
479
480<ul>
Mikhail Glushenkovf61066a2009-03-01 18:09:47 +0000481<li>Intel and AMD machines (IA32, X86-64, AMD64, EMT-64) running Red Hat
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000482 Linux, Fedora Core, FreeBSD and AuroraUX (and probably other unix-like
483 systems).</li>
Chris Lattner8f33c262010-04-22 06:28:20 +0000484<li>PowerPC and X86-based Mac OS X systems, running 10.4 and above in 32-bit
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000485 and 64-bit modes.</li>
Chris Lattnere0798082008-02-06 18:00:06 +0000486<li>Intel and AMD machines running on Win32 using MinGW libraries (native).</li>
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000487<li>Intel and AMD machines running on Win32 with the Cygwin libraries (limited
488 support is available for native builds with Visual C++).</li>
Chris Lattner9235ce52009-10-16 16:30:58 +0000489<li>Sun x86 and AMD64 machines running Solaris 10, OpenSolaris 0906.</li>
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000490<li>Alpha-based machines running Debian GNU/Linux.</li>
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000491</ul>
492
Chris Lattnerba948522008-06-05 06:57:39 +0000493<p>The core LLVM infrastructure uses GNU autoconf to adapt itself
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000494to the machine and operating system on which it is built. However, minor
495porting may be required to get LLVM to work on new platforms. We welcome your
496portability patches and reports of successful builds or error messages.</p>
497
498</div>
499
500<!-- *********************************************************************** -->
501<div class="doc_section">
502 <a name="knownproblems">Known Problems</a>
503</div>
504<!-- *********************************************************************** -->
505
506<div class="doc_text">
507
Mikhail Glushenkovf61066a2009-03-01 18:09:47 +0000508<p>This section contains significant known problems with the LLVM system,
Chris Lattnerb1ad47c2008-11-10 05:40:34 +0000509listed by component. If you run into a problem, please check the <a
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000510href="http://llvm.org/bugs/">LLVM bug database</a> and submit a bug if
511there isn't already one.</p>
512
Chris Lattner1f8dc512010-03-17 17:25:49 +0000513<ul>
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000514<li>LLVM will not correctly compile on Solaris and/or OpenSolaris
515using the stock GCC 3.x.x series 'out the box',
Chris Lattnerc09ffd22009-11-03 21:50:09 +0000516See: <a href="GettingStarted.html#brokengcc">Broken versions of GCC and other tools</a>.
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000517However, A <a href="http://pkg.auroraux.org/GCC">Modern GCC Build</a>
518for x86/x86-64 has been made available from the third party AuroraUX Project
519that has been meticulously tested for bootstrapping LLVM &amp; Clang.</li>
520</ul>
521
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000522</div>
523
524<!-- ======================================================================= -->
525<div class="doc_subsection">
526 <a name="experimental">Experimental features included with this release</a>
527</div>
528
529<div class="doc_text">
530
531<p>The following components of this LLVM release are either untested, known to
532be broken or unreliable, or are in early development. These components should
533not be relied on, and bugs should not be filed against them, but they may be
534useful to some people. In particular, if you would like to work on one of these
Chris Lattnerdaeb3232008-02-12 06:29:45 +0000535components, please contact us on the <a
536href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">LLVMdev list</a>.</p>
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000537
538<ul>
Wesley Peckbe6dc822010-03-18 14:31:30 +0000539<li>The MSIL, Alpha, SPU, MIPS, PIC16, Blackfin, MSP430, SystemZ and MicroBlaze
540 backends are experimental.</li>
Chris Lattner8f33c262010-04-22 06:28:20 +0000541<li><tt>llc</tt> "<tt>-filetype=asm</tt>" (the default) is the only
Chris Lattnerd3b0ca52010-07-21 15:57:40 +0000542 supported value for this option. XXX Update me</li>
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000543</ul>
544
545</div>
546
547<!-- ======================================================================= -->
548<div class="doc_subsection">
549 <a name="x86-be">Known problems with the X86 back-end</a>
550</div>
551
552<div class="doc_text">
553
554<ul>
Anton Korobeynikov77d15e22008-06-08 10:24:13 +0000555 <li>The X86 backend does not yet support
556 all <a href="http://llvm.org/PR879">inline assembly that uses the X86
557 floating point stack</a>. It supports the 'f' and 't' constraints, but not
558 'u'.</li>
Duncan Sands8b4f3772008-06-08 19:38:43 +0000559 <li>Win64 code generation wasn't widely tested. Everything should work, but we
John Criswellaea8c752009-03-02 15:28:15 +0000560 expect small issues to happen. Also, llvm-gcc cannot build the mingw64
Chris Lattner8f33c262010-04-22 06:28:20 +0000561 runtime currently due to lack of support for the 'u' inline assembly
562 constraint and for X87 floating point inline assembly.</li>
Dan Gohman3882ecb2008-06-08 23:05:11 +0000563 <li>The X86-64 backend does not yet support the LLVM IR instruction
Chris Lattner8f33c262010-04-22 06:28:20 +0000564 <tt>va_arg</tt>. Currently, front-ends support variadic
Dan Gohman3882ecb2008-06-08 23:05:11 +0000565 argument constructs on X86-64 by lowering them manually.</li>
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000566</ul>
567
568</div>
569
570<!-- ======================================================================= -->
571<div class="doc_subsection">
572 <a name="ppc-be">Known problems with the PowerPC back-end</a>
573</div>
574
575<div class="doc_text">
576
577<ul>
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000578<li>The Linux PPC32/ABI support needs testing for the interpreter and static
579compilation, and lacks support for debug information.</li>
580</ul>
581
582</div>
583
584<!-- ======================================================================= -->
585<div class="doc_subsection">
586 <a name="arm-be">Known problems with the ARM back-end</a>
587</div>
588
589<div class="doc_text">
590
591<ul>
592<li>Thumb mode works only on ARMv6 or higher processors. On sub-ARMv6
Duncan Sands1827fa62007-09-26 15:59:54 +0000593processors, thumb programs can crash or produce wrong
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000594results (<a href="http://llvm.org/PR1388">PR1388</a>).</li>
John Criswellaea8c752009-03-02 15:28:15 +0000595<li>Compilation for ARM Linux OABI (old ABI) is supported but not fully tested.
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000596</li>
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000597</ul>
598
599</div>
600
601<!-- ======================================================================= -->
602<div class="doc_subsection">
603 <a name="sparc-be">Known problems with the SPARC back-end</a>
604</div>
605
606<div class="doc_text">
607
608<ul>
John Criswellaea8c752009-03-02 15:28:15 +0000609<li>The SPARC backend only supports the 32-bit SPARC ABI (-m32); it does not
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000610 support the 64-bit SPARC ABI (-m64).</li>
611</ul>
612
613</div>
614
615<!-- ======================================================================= -->
616<div class="doc_subsection">
Bruno Cardoso Lopes62d45d72008-10-25 14:56:26 +0000617 <a name="mips-be">Known problems with the MIPS back-end</a>
618</div>
619
620<div class="doc_text">
621
622<ul>
Bruno Cardoso Lopes62d45d72008-10-25 14:56:26 +0000623<li>64-bit MIPS targets are not supported yet.</li>
624</ul>
625
626</div>
627
628<!-- ======================================================================= -->
629<div class="doc_subsection">
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000630 <a name="alpha-be">Known problems with the Alpha back-end</a>
631</div>
632
633<div class="doc_text">
634
635<ul>
636
637<li>On 21164s, some rare FP arithmetic sequences which may trap do not have the
638appropriate nops inserted to ensure restartability.</li>
639
640</ul>
641</div>
642
643<!-- ======================================================================= -->
644<div class="doc_subsection">
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000645 <a name="c-be">Known problems with the C back-end</a>
646</div>
647
648<div class="doc_text">
649
650<ul>
Chris Lattner499c07c2008-06-05 06:35:40 +0000651<li><a href="http://llvm.org/PR802">The C backend has only basic support for
652 inline assembly code</a>.</li>
Chris Lattnere0194462007-09-26 06:01:35 +0000653<li><a href="http://llvm.org/PR1658">The C backend violates the ABI of common
654 C++ programs</a>, preventing intermixing between C++ compiled by the CBE and
Gabor Greife33c5322009-03-02 12:02:51 +0000655 C++ code compiled with <tt>llc</tt> or native compilers.</li>
Duncan Sandsbd0ad6e2008-02-10 13:40:55 +0000656<li>The C backend does not support all exception handling constructs.</li>
Duncan Sandse6e264c2009-02-25 11:51:54 +0000657<li>The C backend does not support arbitrary precision integers.</li>
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000658</ul>
659
660</div>
661
662
663<!-- ======================================================================= -->
664<div class="doc_subsection">
Chris Lattner58b1d0f2010-03-17 04:41:49 +0000665 <a name="c-fe">Known problems with the llvm-gcc C and C++ front-end</a>
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000666</div>
667
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000668<div class="doc_text">
669
Chris Lattner499c07c2008-06-05 06:35:40 +0000670<p>The only major language feature of GCC not supported by llvm-gcc is
671 the <tt>__builtin_apply</tt> family of builtins. However, some extensions
672 are only supported on some targets. For example, trampolines are only
Duncan Sandsa73561c2008-06-08 20:18:35 +0000673 supported on some targets (these are used when you take the address of a
674 nested function).</p>
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000675
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000676</div>
677
678<!-- ======================================================================= -->
679<div class="doc_subsection">
Chris Lattner6c8a1b82008-10-30 03:58:13 +0000680 <a name="fortran-fe">Known problems with the llvm-gcc Fortran front-end</a>
681</div>
682
683<div class="doc_text">
Gabor Greif1fc8fbc2008-11-04 21:50:59 +0000684<ul>
Chris Lattner6c8a1b82008-10-30 03:58:13 +0000685<li>Fortran support generally works, but there are still several unresolved bugs
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000686 in <a href="http://llvm.org/bugs/">Bugzilla</a>. Please see the
687 tools/gfortran component for details.</li>
Gabor Greif1fc8fbc2008-11-04 21:50:59 +0000688</ul>
Chris Lattner6c8a1b82008-10-30 03:58:13 +0000689</div>
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000690
Chris Lattnerdaeb3232008-02-12 06:29:45 +0000691<!-- ======================================================================= -->
692<div class="doc_subsection">
Chris Lattner499c07c2008-06-05 06:35:40 +0000693 <a name="ada-fe">Known problems with the llvm-gcc Ada front-end</a>
Chris Lattnerdaeb3232008-02-12 06:29:45 +0000694</div>
695
696<div class="doc_text">
John Criswellaea8c752009-03-02 15:28:15 +0000697The llvm-gcc 4.2 Ada compiler works fairly well; however, this is not a mature
698technology, and problems should be expected.
Chris Lattnerdaeb3232008-02-12 06:29:45 +0000699<ul>
Duncan Sandsa73561c2008-06-08 20:18:35 +0000700<li>The Ada front-end currently only builds on X86-32. This is mainly due
John Criswellaea8c752009-03-02 15:28:15 +0000701to lack of trampoline support (pointers to nested functions) on other platforms.
702However, it <a href="http://llvm.org/PR2006">also fails to build on X86-64</a>
Chris Lattnerdaeb3232008-02-12 06:29:45 +0000703which does support trampolines.</li>
704<li>The Ada front-end <a href="http://llvm.org/PR2007">fails to bootstrap</a>.
Duncan Sandsf73473e2009-02-25 11:59:06 +0000705This is due to lack of LLVM support for <tt>setjmp</tt>/<tt>longjmp</tt> style
706exception handling, which is used internally by the compiler.
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000707Workaround: configure with <tt>--disable-bootstrap</tt>.</li>
Duncan Sands2dbc2e82008-10-13 17:27:23 +0000708<li>The c380004, <a href="http://llvm.org/PR2010">c393010</a>
709and <a href="http://llvm.org/PR2421">cxg2021</a> ACATS tests fail
Duncan Sandsf73473e2009-02-25 11:59:06 +0000710(c380004 also fails with gcc-4.2 mainline).
711If the compiler is built with checks disabled then <a href="http://llvm.org/PR2010">c393010</a>
712causes the compiler to go into an infinite loop, using up all system memory.</li>
Duncan Sandsc2a29a02009-03-02 16:35:57 +0000713<li>Some GCC specific Ada tests continue to crash the compiler.</li>
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000714<li>The <tt>-E</tt> binder option (exception backtraces)
Chris Lattnerdaeb3232008-02-12 06:29:45 +0000715<a href="http://llvm.org/PR1982">does not work</a> and will result in programs
Chris Lattner0b6ea7a2009-10-13 17:48:04 +0000716crashing if an exception is raised. Workaround: do not use <tt>-E</tt>.</li>
Chris Lattnerdaeb3232008-02-12 06:29:45 +0000717<li>Only discrete types <a href="http://llvm.org/PR1981">are allowed to start
718or finish at a non-byte offset</a> in a record. Workaround: do not pack records
719or use representation clauses that result in a field of a non-discrete type
720starting or finishing in the middle of a byte.</li>
Chris Lattnerd95b5962008-06-08 21:19:07 +0000721<li>The <tt>lli</tt> interpreter <a href="http://llvm.org/PR2009">considers
722'main' as generated by the Ada binder to be invalid</a>.
723Workaround: hand edit the file to use pointers for <tt>argv</tt> and
724<tt>envp</tt> rather than integers.</li>
725<li>The <tt>-fstack-check</tt> option <a href="http://llvm.org/PR2008">is
726ignored</a>.</li>
Chris Lattnerdaeb3232008-02-12 06:29:45 +0000727</ul>
728</div>
729
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000730<!-- *********************************************************************** -->
731<div class="doc_section">
732 <a name="additionalinfo">Additional Information</a>
733</div>
734<!-- *********************************************************************** -->
735
736<div class="doc_text">
737
738<p>A wide variety of additional information is available on the <a
739href="http://llvm.org">LLVM web page</a>, in particular in the <a
740href="http://llvm.org/docs/">documentation</a> section. The web page also
741contains versions of the API documentation which is up-to-date with the
742Subversion version of the source code.
743You can access versions of these documents specific to this release by going
744into the "<tt>llvm/doc/</tt>" directory in the LLVM tree.</p>
745
746<p>If you have any questions or comments about LLVM, please feel free to contact
747us via the <a href="http://llvm.org/docs/#maillist"> mailing
748lists</a>.</p>
749
750</div>
751
752<!-- *********************************************************************** -->
753
754<hr>
755<address>
756 <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
Misha Brukman947321d2008-12-11 17:34:48 +0000757 src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS"></a>
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000758 <a href="http://validator.w3.org/check/referer"><img
Misha Brukman947321d2008-12-11 17:34:48 +0000759 src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a>
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000760
761 <a href="http://llvm.org/">LLVM Compiler Infrastructure</a><br>
762 Last modified: $Date$
763</address>
764
765</body>
766</html>