blob: 4e36182126cd11f8de48fe1daa05ad2277699a7c [file] [log] [blame]
Misha Brukman80731b92003-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 Spencere4190fa2004-11-18 18:38:58 +00005 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Misha Brukman80731b92003-11-22 00:38:41 +00006 <link rel="stylesheet" href="llvm.css" type="text/css">
Chad Rosier06da55e2011-05-27 22:50:46 +00007 <title>LLVM 3.0 Release Notes</title>
Misha Brukman80731b92003-11-22 00:38:41 +00008</head>
9<body>
Chris Lattner3d482502003-10-02 04:57:28 +000010
Chad Rosier06da55e2011-05-27 22:50:46 +000011<h1>LLVM 3.0 Release Notes</h1>
Mikhail Glushenkov024f7cf2008-10-13 02:08:34 +000012
Chris Lattnerc871bac2010-03-17 04:02:39 +000013<img align=right src="http://llvm.org/img/DragonSmall.png"
Gabor Greif27b166352010-04-22 10:21:43 +000014 width="136" height="136" alt="LLVM Dragon Logo">
Chris Lattnerc871bac2010-03-17 04:02:39 +000015
Chris Lattner3d482502003-10-02 04:57:28 +000016<ol>
Misha Brukman80731b92003-11-22 00:38:41 +000017 <li><a href="#intro">Introduction</a></li>
Chris Lattnerf5cd9862008-10-13 18:01:01 +000018 <li><a href="#subproj">Sub-project Status Update</a></li>
Chad Rosier06da55e2011-05-27 22:50:46 +000019 <li><a href="#externalproj">External Projects Using LLVM 3.0</a></li>
20 <li><a href="#whatsnew">What's New in LLVM 3.0?</a></li>
Chris Lattner77a51732004-04-30 22:17:12 +000021 <li><a href="GettingStarted.html">Installation Instructions</a></li>
Dan Gohmanad888912008-10-14 16:23:02 +000022 <li><a href="#knownproblems">Known Problems</a></li>
Misha Brukman80731b92003-11-22 00:38:41 +000023 <li><a href="#additionalinfo">Additional Information</a></li>
Chris Lattner3d482502003-10-02 04:57:28 +000024</ol>
25
Chris Lattner020e1fc2004-05-23 21:07:27 +000026<div class="doc_author">
NAKAMURA Takumica46f5a2011-04-09 02:13:37 +000027 <p>Written by the <a href="http://llvm.org/">LLVM Team</a></p>
Misha Brukman80731b92003-11-22 00:38:41 +000028</div>
Chris Lattner3d482502003-10-02 04:57:28 +000029
Chris Lattner17c170a2011-04-06 06:29:50 +000030<!--
Chad Rosier06da55e2011-05-27 22:50:46 +000031<h1 style="color:red">These are in-progress notes for the upcoming LLVM 3.0
Jeffrey Yasskin0830b972010-01-28 01:14:43 +000032release.<br>
33You may prefer the
Chad Rosier06da55e2011-05-27 22:50:46 +000034<a href="http://llvm.org/releases/2.9/docs/ReleaseNotes.html">LLVM 2.9
Dan Gohman62af9d22010-05-03 23:51:05 +000035Release Notes</a>.</h1>
Chris Lattner17c170a2011-04-06 06:29:50 +000036 -->
Jeffrey Yasskin0830b972010-01-28 01:14:43 +000037
Chris Lattner3d482502003-10-02 04:57:28 +000038<!-- *********************************************************************** -->
NAKAMURA Takumi64835132011-04-18 01:17:51 +000039<h2>
Misha Brukman80731b92003-11-22 00:38:41 +000040 <a name="intro">Introduction</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +000041</h2>
Chris Lattner3d482502003-10-02 04:57:28 +000042<!-- *********************************************************************** -->
43
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +000044<div>
Misha Brukman80731b92003-11-22 00:38:41 +000045
Chris Lattner1e4d5bc2008-10-13 17:57:36 +000046<p>This document contains the release notes for the LLVM Compiler
Chad Rosier06da55e2011-05-27 22:50:46 +000047Infrastructure, release 3.0. Here we describe the status of LLVM, including
Chris Lattner1e4d5bc2008-10-13 17:57:36 +000048major improvements from the previous release and significant known problems.
Mikhail Glushenkov25422542009-03-01 18:09:47 +000049All LLVM releases may be downloaded from the <a
Chris Lattner1e4d5bc2008-10-13 17:57:36 +000050href="http://llvm.org/releases/">LLVM releases web site</a>.</p>
Chris Lattner62495762003-10-02 16:38:05 +000051
Chris Lattnerb5bb5972004-12-07 08:04:13 +000052<p>For more information about LLVM, including information about the latest
Chris Lattnera69595e2005-10-29 07:07:09 +000053release, please check out the <a href="http://llvm.org/">main LLVM
Chris Lattnere7525b52003-10-07 21:38:31 +000054web site</a>. If you have questions or comments, the <a
Chris Lattner0b1c9a52010-03-17 04:41:49 +000055href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">LLVM Developer's
56Mailing List</a> is a good place to send them.</p>
Chris Lattner3d482502003-10-02 04:57:28 +000057
Mikhail Glushenkov024f7cf2008-10-13 02:08:34 +000058<p>Note that if you are reading this file from a Subversion checkout or the
Chris Lattner0a1fd102007-09-21 03:54:09 +000059main LLVM web page, this document applies to the <i>next</i> release, not the
Gabor Greif355f81c2008-10-14 11:00:32 +000060current one. To see the release notes for a specific release, please see the
Chris Lattner0a1fd102007-09-21 03:54:09 +000061<a href="http://llvm.org/releases/">releases page</a>.</p>
Misha Brukman80731b92003-11-22 00:38:41 +000062
63</div>
Chris Lattneraa61f412009-10-13 17:48:04 +000064
Chris Lattnerce6b0472011-04-05 23:22:33 +000065<!-- Features that need text if they're finished for 3.1:
66 ARM EHABI
Chris Lattnera67df2d2010-04-22 06:28:20 +000067 combiner-aa?
Chris Lattneraa61f412009-10-13 17:48:04 +000068 strong phi elim
Chris Lattneraa61f412009-10-13 17:48:04 +000069 loop dependence analysis
Chris Lattner342f9572010-09-29 05:30:03 +000070 CorrelatedValuePropagation
Chris Lattnerce6b0472011-04-05 23:22:33 +000071 lib/Transforms/IPO/MergeFunctions.cpp => consider for 3.1.
Chris Lattner2b8a52e2008-02-10 07:46:44 +000072 -->
Chris Lattner342f9572010-09-29 05:30:03 +000073
Chris Lattnerf5cd9862008-10-13 18:01:01 +000074<!-- *********************************************************************** -->
NAKAMURA Takumi64835132011-04-18 01:17:51 +000075<h2>
Chris Lattnerf5cd9862008-10-13 18:01:01 +000076 <a name="subproj">Sub-project Status Update</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +000077</h2>
Chris Lattnerf5cd9862008-10-13 18:01:01 +000078<!-- *********************************************************************** -->
Chris Lattner625a3d82008-06-08 21:34:41 +000079
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +000080<div>
Chris Lattnerc75fd522008-06-08 21:58:17 +000081<p>
Chad Rosier06da55e2011-05-27 22:50:46 +000082The LLVM 3.0 distribution currently consists of code from the core LLVM
Chris Lattneraa61f412009-10-13 17:48:04 +000083repository (which roughly includes the LLVM optimizers, code generators
84and supporting tools), the Clang repository and the llvm-gcc repository. In
85addition to this code, the LLVM Project includes other sub-projects that are in
86development. Here we include updates on these subprojects.
Bill Wendlingf170d2e2009-03-02 04:28:57 +000087</p>
Chris Lattnerf5cd9862008-10-13 18:01:01 +000088
Chris Lattnerc75fd522008-06-08 21:58:17 +000089<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +000090<h3>
Chris Lattner44c09cd2008-10-13 18:11:54 +000091<a name="clang">Clang: C/C++/Objective-C Frontend Toolkit</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +000092</h3>
Chris Lattnerc75fd522008-06-08 21:58:17 +000093
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +000094<div>
Chris Lattnerc75fd522008-06-08 21:58:17 +000095
Chris Lattner5de7f6e2010-04-26 17:42:18 +000096<p><a href="http://clang.llvm.org/">Clang</a> is an LLVM front end for the C,
97C++, and Objective-C languages. Clang aims to provide a better user experience
98through expressive diagnostics, a high level of conformance to language
99standards, fast compilation, and low memory use. Like LLVM, Clang provides a
100modular, library-based architecture that makes it suitable for creating or
101integrating with other development tools. Clang is considered a
Chris Lattner342f9572010-09-29 05:30:03 +0000102production-quality compiler for C, Objective-C, C++ and Objective-C++ on x86
Chris Lattnerc3a2c982011-04-06 00:45:11 +0000103(32- and 64-bit), and for darwin/arm targets.</p>
Chris Lattneraa61f412009-10-13 17:48:04 +0000104
Chad Rosier06da55e2011-05-27 22:50:46 +0000105<p>In the LLVM 3.0 time-frame, the Clang team has made many improvements:</p>
Douglas Gregor936c75b2011-10-15 00:48:01 +0000106
107<ul>
108 <li>Greatly improved support for building C++ applications, with greater stability and better diagnostics.</li>
109
110 <li><a href="http://clang.llvm.org/cxx_status.html">Improved support</a> for the <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=50372 ">C++ 2011</a> standard, including implementations of non-static data member initializers, alias templates, delegating constructors, the range-based for loop, and implicitly-generated move constructors and move assignment operators, among others.</li>
111
112 <li>Implemented support for some features of the upcoming C1x standard, including static assertions and generic selections.</li>
113
114 <li>Better detection of include and linking paths for system headers and libraries, especially for Linux distributions.</li>
115
116 <li>Implemented support for <a href="http://clang.llvm.org/docs/AutomaticReferenceCounting.html">Automatic Reference Counting</a> for Objective-C.</li>
117
118 <li>Implemented a number of optimizations in <tt>libclang</tt>, the Clang C interface, to improve the performance of code completion and the mapping from source locations to abstract syntax tree nodes.</li>
119</ul>
120
Chris Lattnerfd97b882011-04-05 07:19:28 +0000121
Duncan Sandsce5d9ae2011-04-06 08:07:40 +0000122<p>If Clang rejects your code but another compiler accepts it, please take a
Chris Lattnerfd97b882011-04-05 07:19:28 +0000123look at the <a href="http://clang.llvm.org/compatibility.html">language
Duncan Sandsce5d9ae2011-04-06 08:07:40 +0000124compatibility</a> guide to make sure this is not intentional or a known issue.
Chris Lattnerfd97b882011-04-05 07:19:28 +0000125</p>
Bill Wendlingef362462008-10-27 09:27:33 +0000126
Chris Lattner44c09cd2008-10-13 18:11:54 +0000127</div>
128
129<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000130<h3>
Duncan Sands1cd78982011-04-04 11:09:08 +0000131<a name="dragonegg">DragonEgg: GCC front-ends, LLVM back-end</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000132</h3>
Chris Lattneraa61f412009-10-13 17:48:04 +0000133
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000134<div>
Chris Lattneraa61f412009-10-13 17:48:04 +0000135<p>
Duncan Sands1cd78982011-04-04 11:09:08 +0000136<a href="http://dragonegg.llvm.org/">DragonEgg</a> is a
137<a href="http://gcc.gnu.org/wiki/plugins">gcc plugin</a> that replaces GCC's
138optimizers and code generators with LLVM's.
139Currently it requires a patched version of gcc-4.5.
140The plugin can target the x86-32 and x86-64 processor families and has been
141used successfully on the Darwin, FreeBSD and Linux platforms.
142The Ada, C, C++ and Fortran languages work well.
143The plugin is capable of compiling plenty of Obj-C, Obj-C++ and Java but it is
144not known whether the compiled code actually works or not!
Duncan Sands92452b92010-04-02 09:23:15 +0000145</p>
146
147<p>
Chad Rosier06da55e2011-05-27 22:50:46 +0000148The 3.0 release has the following notable changes:
Duncan Sands7f9a0dc2010-09-30 17:37:34 +0000149<ul>
Chad Rosier06da55e2011-05-27 22:50:46 +0000150<!--
151<li></li>
152-->
Duncan Sands7f9a0dc2010-09-30 17:37:34 +0000153</ul>
Chris Lattneraa61f412009-10-13 17:48:04 +0000154
155</div>
156
Chris Lattner120804a2010-10-03 23:49:06 +0000157<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000158<h3>
Chris Lattner120804a2010-10-03 23:49:06 +0000159<a name="compiler-rt">compiler-rt: Compiler Runtime Library</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000160</h3>
Chris Lattner120804a2010-10-03 23:49:06 +0000161
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000162<div>
Chris Lattner120804a2010-10-03 23:49:06 +0000163<p>
164The new LLVM <a href="http://compiler-rt.llvm.org/">compiler-rt project</a>
165is a simple library that provides an implementation of the low-level
166target-specific hooks required by code generation and other runtime components.
167For example, when compiling for a 32-bit target, converting a double to a 64-bit
168unsigned integer is compiled into a runtime call to the "__fixunsdfdi"
169function. The compiler-rt library provides highly optimized implementations of
170this and other low-level routines (some are 3x faster than the equivalent
171libgcc routines).</p>
172
Chad Rosier06da55e2011-05-27 22:50:46 +0000173<p>In the LLVM 3.0 timeframe,</p>
Chris Lattner120804a2010-10-03 23:49:06 +0000174
175</div>
Chris Lattneraa61f412009-10-13 17:48:04 +0000176
177<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000178<h3>
Chris Lattner342f9572010-09-29 05:30:03 +0000179<a name="lldb">LLDB: Low Level Debugger</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000180</h3>
Chris Lattner342f9572010-09-29 05:30:03 +0000181
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000182<div>
Chris Lattner342f9572010-09-29 05:30:03 +0000183<p>
Chris Lattner120804a2010-10-03 23:49:06 +0000184<a href="http://lldb.llvm.org/">LLDB</a> is a brand new member of the LLVM
185umbrella of projects. LLDB is a next generation, high-performance debugger. It
186is built as a set of reusable components which highly leverage existing
187libraries in the larger LLVM Project, such as the Clang expression parser, the
188LLVM disassembler and the LLVM JIT.</p>
Chris Lattner342f9572010-09-29 05:30:03 +0000189
190<p>
Chad Rosier06da55e2011-05-27 22:50:46 +0000191LLDB is has advanced by leaps and bounds in the 3.0 timeframe. It is
Chris Lattner9d5b3712011-04-06 00:56:12 +0000192dramatically more stable and useful, and includes both a new <a
193href="http://lldb.llvm.org/tutorial.html">tutorial</a> and a <a
194href="http://lldb.llvm.org/lldb-gdb.html">side-by-side comparison with
195GDB</a>.</p>
Chris Lattner342f9572010-09-29 05:30:03 +0000196
197</div>
198
199<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000200<h3>
Chris Lattner342f9572010-09-29 05:30:03 +0000201<a name="libc++">libc++: C++ Standard Library</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000202</h3>
Chris Lattner342f9572010-09-29 05:30:03 +0000203
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000204<div>
Chris Lattner342f9572010-09-29 05:30:03 +0000205<p>
Tobias Grosser436bc5f2010-10-06 21:07:30 +0000206<a href="http://libcxx.llvm.org/">libc++</a> is another new member of the LLVM
Chris Lattner120804a2010-10-03 23:49:06 +0000207family. It is an implementation of the C++ standard library, written from the
208ground up to specifically target the forthcoming C++'0X standard and focus on
209delivering great performance.</p>
Chris Lattner342f9572010-09-29 05:30:03 +0000210
211<p>
Chad Rosier06da55e2011-05-27 22:50:46 +0000212In the LLVM 3.0 timeframe,</p>
Chris Lattnerfd97b882011-04-05 07:19:28 +0000213
Chris Lattner14a33332011-04-06 00:59:18 +0000214<p>
215Like compiler_rt, libc++ is now <a href="DeveloperPolicy.html#license">dual
216 licensed</a> under the MIT and UIUC license, allowing it to be used more
217 permissively.
Chris Lattner342f9572010-09-29 05:30:03 +0000218</p>
219
220</div>
221
Chris Lattneraa61f412009-10-13 17:48:04 +0000222
Chris Lattnercaefe932011-04-07 03:08:22 +0000223<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000224<h3>
Chris Lattnercaefe932011-04-07 03:08:22 +0000225<a name="LLBrowse">LLBrowse: IR Browser</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000226</h3>
Daniel Dunbar8fbd8aa2010-10-04 17:39:47 +0000227
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000228<div>
Chris Lattnercaefe932011-04-07 03:08:22 +0000229<p>
230<a href="http://llvm.org/svn/llvm-project/llbrowse/trunk/doc/LLBrowse.html">
231 LLBrowse</a> is an interactive viewer for LLVM modules. It can load any LLVM
232 module and displays its contents as an expandable tree view, facilitating an
233 easy way to inspect types, functions, global variables, or metadata nodes. It
234 is fully cross-platform, being based on the popular wxWidgets GUI toolkit.
235</p>
236</div>
237
238<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000239<h3>
Chris Lattnercaefe932011-04-07 03:08:22 +0000240<a name="vmkit">VMKit</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000241</h3>
Chris Lattnercaefe932011-04-07 03:08:22 +0000242
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000243<div>
Chris Lattnercaefe932011-04-07 03:08:22 +0000244<p>The <a href="http://vmkit.llvm.org/">VMKit project</a> is an implementation
245 of a Java Virtual Machine (Java VM or JVM) that uses LLVM for static and
Chad Rosier06da55e2011-05-27 22:50:46 +0000246 just-in-time compilation. As of LLVM 3.0, VMKit now supports generational
Chris Lattnercaefe932011-04-07 03:08:22 +0000247 garbage collectors. The garbage collectors are provided by the MMTk framework,
248 and VMKit can be configured to use one of the numerous implemented collectors
249 of MMTk.
250</p>
251</div>
252
253
Daniel Dunbar8fbd8aa2010-10-04 17:39:47 +0000254<!--=========================================================================-->
Chris Lattner9ee0b012011-04-05 18:38:45 +0000255<!--
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000256<h3>
Daniel Dunbar8fbd8aa2010-10-04 17:39:47 +0000257<a name="klee">KLEE: A Symbolic Execution Virtual Machine</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000258</h3>
Daniel Dunbar8fbd8aa2010-10-04 17:39:47 +0000259
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000260<div>
Daniel Dunbar8fbd8aa2010-10-04 17:39:47 +0000261<p>
262<a href="http://klee.llvm.org/">KLEE</a> is a symbolic execution framework for
263programs in LLVM bitcode form. KLEE tries to symbolically evaluate "all" paths
264through the application and records state transitions that lead to fault
265states. This allows it to construct testcases that lead to faults and can even
266be used to verify some algorithms.
267</p>
268
Chris Lattner0d364302011-03-10 07:43:44 +0000269<p>UPDATE!</p>
Chris Lattner9ee0b012011-04-05 18:38:45 +0000270</div>-->
Daniel Dunbar8fbd8aa2010-10-04 17:39:47 +0000271
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000272</div>
Daniel Dunbar8fbd8aa2010-10-04 17:39:47 +0000273
Chris Lattner53e06f92009-02-26 22:33:38 +0000274<!-- *********************************************************************** -->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000275<h2>
Chad Rosier06da55e2011-05-27 22:50:46 +0000276 <a name="externalproj">External Open Source Projects Using LLVM 3.0</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000277</h2>
Chris Lattner53e06f92009-02-26 22:33:38 +0000278<!-- *********************************************************************** -->
279
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000280<div>
Chris Lattneraa61f412009-10-13 17:48:04 +0000281
282<p>An exciting aspect of LLVM is that it is used as an enabling technology for
283 a lot of other language and tools projects. This section lists some of the
Chad Rosier06da55e2011-05-27 22:50:46 +0000284 projects that have already been updated to work with LLVM 3.0.</p>
Chris Lattner120804a2010-10-03 23:49:06 +0000285
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000286<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000287<h3>Crack Programming Language</h3>
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000288
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000289<div>
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000290<p>
291<a href="http://code.google.com/p/crack-language/">Crack</a> aims to provide the
292ease of development of a scripting language with the performance of a compiled
293language. The language derives concepts from C++, Java and Python, incorporating
294object-oriented programming, operator overloading and strong typing.</p>
295</div>
296
297
298<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000299<h3>TTA-based Codesign Environment (TCE)</h3>
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000300
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000301<div>
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000302<p>TCE is a toolset for designing application-specific processors (ASP) based on
303the Transport triggered architecture (TTA). The toolset provides a complete
304co-design flow from C/C++ programs down to synthesizable VHDL and parallel
305program binaries. Processor customization points include the register files,
306function units, supported operations, and the interconnection network.</p>
307
308<p>TCE uses Clang and LLVM for C/C++ language support, target independent
309optimizations and also for parts of code generation. It generates new LLVM-based
310code generators "on the fly" for the designed TTA processors and loads them in
311to the compiler backend as runtime libraries to avoid per-target recompilation
312of larger parts of the compiler chain.</p>
313</div>
314
315
316
317<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000318<h3>PinaVM</h3>
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000319
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000320<div>
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000321<p><a href="http://gitorious.org/pinavm/pages/Home">PinaVM</a> is an open
322source, <a href="http://www.systemc.org/">SystemC</a> front-end. Unlike many
323other front-ends, PinaVM actually executes the elaboration of the
324program analyzed using LLVM's JIT infrastructure. It later enriches the
325bitcode with SystemC-specific information.</p>
326</div>
327
328<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000329<h3>Pure</h3>
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000330
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000331<div>
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000332<p><a href="http://pure-lang.googlecode.com/">Pure</a> is an
333 algebraic/functional
334 programming language based on term rewriting. Programs are collections
335 of equations which are used to evaluate expressions in a symbolic
336 fashion. The interpreter uses LLVM as a backend to JIT-compile Pure
337 programs to fast native code. Pure offers dynamic typing, eager and lazy
338 evaluation, lexical closures, a hygienic macro system (also based on
339 term rewriting), built-in list and matrix support (including list and
340 matrix comprehensions) and an easy-to-use interface to C and other
341 programming languages (including the ability to load LLVM bitcode
342 modules, and inline C, C++, Fortran and Faust code in Pure programs if
343 the corresponding LLVM-enabled compilers are installed).</p>
344
Chad Rosier06da55e2011-05-27 22:50:46 +0000345<p>Pure version 0.47 has been tested and is known to work with LLVM 3.0
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000346 (and continues to work with older LLVM releases &gt;= 2.5).</p>
347</div>
348
349<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000350<h3 id="icedtea">IcedTea Java Virtual Machine Implementation</h3>
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000351
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000352<div>
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000353<p>
354<a href="http://icedtea.classpath.org/wiki/Main_Page">IcedTea</a> provides a
355harness to build OpenJDK using only free software build tools and to provide
356replacements for the not-yet free parts of OpenJDK. One of the extensions that
357IcedTea provides is a new JIT compiler named <a
358href="http://icedtea.classpath.org/wiki/ZeroSharkFaq">Shark</a> which uses LLVM
359to provide native code generation without introducing processor-dependent
360code.
361</p>
362
363<p> OpenJDK 7 b112, IcedTea6 1.9 and IcedTea7 1.13 and later have been tested
Chad Rosier06da55e2011-05-27 22:50:46 +0000364and are known to work with LLVM 3.0 (and continue to work with older LLVM
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000365releases &gt;= 2.6 as well).</p>
366</div>
367
368<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000369<h3>Glasgow Haskell Compiler (GHC)</h3>
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000370
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000371<div>
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000372<p>GHC is an open source, state-of-the-art programming suite for Haskell,
373a standard lazy functional programming language. It includes an
374optimizing static compiler generating good code for a variety of
375platforms, together with an interactive system for convenient, quick
376development.</p>
377
378<p>In addition to the existing C and native code generators, GHC 7.0 now
379supports an LLVM code generator. GHC supports LLVM 2.7 and later.</p>
380</div>
381
382<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000383<h3>Polly - Polyhedral optimizations for LLVM</h3>
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000384
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000385<div>
Chris Lattnerae6a89a2011-04-06 01:13:49 +0000386<p>Polly is a project that aims to provide advanced memory access optimizations
387to better take advantage of SIMD units, cache hierarchies, multiple cores or
388even vector accelerators for LLVM. Built around an abstract mathematical
389description based on Z-polyhedra, it provides the infrastructure to develop
390advanced optimizations in LLVM and to connect complex external optimizers. In
391its first year of existence Polly already provides an exact value-based
392dependency analysis as well as basic SIMD and OpenMP code generation support.
393Furthermore, Polly can use PoCC(Pluto) an advanced optimizer for data-locality
394and parallelism.</p>
395</div>
Chris Lattner120804a2010-10-03 23:49:06 +0000396
Chris Lattner958d2992011-04-06 16:14:25 +0000397<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000398<h3>Rubinius</h3>
Chris Lattner958d2992011-04-06 16:14:25 +0000399
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000400<div>
Chris Lattner958d2992011-04-06 16:14:25 +0000401 <p><a href="http://github.com/evanphx/rubinius">Rubinius</a> is an environment
402 for running Ruby code which strives to write as much of the implementation in
403 Ruby as possible. Combined with a bytecode interpreting VM, it uses LLVM to
404 optimize and compile ruby code down to machine code. Techniques such as type
405 feedback, method inlining, and deoptimization are all used to remove dynamism
406 from ruby execution and increase performance.</p>
407</div>
408
409
Chris Lattner5ddaab12011-04-07 03:09:21 +0000410<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000411<h3>
Chris Lattner5ddaab12011-04-07 03:09:21 +0000412<a name="FAUST">FAUST Real-Time Audio Signal Processing Language</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000413</h3>
Chris Lattnerca7c8962010-10-01 06:34:49 +0000414
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000415<div>
Chris Lattner5ddaab12011-04-07 03:09:21 +0000416<p>
417<a href="http://faust.grame.fr">FAUST</a> is a compiled language for real-time
418audio signal processing. The name FAUST stands for Functional AUdio STream. Its
419programming model combines two approaches: functional programming and block
420diagram composition. In addition with the C, C++, JAVA output formats, the
Chad Rosier06da55e2011-05-27 22:50:46 +0000421Faust compiler can now generate LLVM bitcode, and works with LLVM 2.7-3.0.</p>
Chris Lattner5ddaab12011-04-07 03:09:21 +0000422
423</div>
424
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000425</div>
426
Chris Lattnerc75fd522008-06-08 21:58:17 +0000427<!-- *********************************************************************** -->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000428<h2>
Chad Rosier06da55e2011-05-27 22:50:46 +0000429 <a name="whatsnew">What's New in LLVM 3.0?</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000430</h2>
Chris Lattnerc75fd522008-06-08 21:58:17 +0000431<!-- *********************************************************************** -->
432
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000433<div>
Chris Lattnerb7bc2aa2008-06-08 22:59:35 +0000434
Chris Lattneraa61f412009-10-13 17:48:04 +0000435<p>This release includes a huge number of bug fixes, performance tweaks and
Chris Lattner1e4d5bc2008-10-13 17:57:36 +0000436minor improvements. Some of the major improvements and new features are listed
437in this section.
Chris Lattnerb7bc2aa2008-06-08 22:59:35 +0000438</p>
Chris Lattneraa61f412009-10-13 17:48:04 +0000439
Chris Lattnera67df2d2010-04-22 06:28:20 +0000440<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000441<h3>
Chris Lattnercdc44ed2008-02-06 18:00:06 +0000442<a name="majorfeatures">Major New Features</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000443</h3>
Chris Lattnercdc44ed2008-02-06 18:00:06 +0000444
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000445<div>
Chris Lattnercdc44ed2008-02-06 18:00:06 +0000446
Chad Rosier06da55e2011-05-27 22:50:46 +0000447<p>LLVM 3.0 includes several major new capabilities:</p>
Chris Lattner97beb512007-05-14 06:56:09 +0000448
449<ul>
Chris Lattnerc3a2c982011-04-06 00:45:11 +0000450
Chad Rosier06da55e2011-05-27 22:50:46 +0000451<!--
452<li></li>
453-->
Chris Lattner9ee0b012011-04-05 18:38:45 +0000454
Chris Lattner458e79f2008-02-10 08:18:42 +0000455</ul>
Chris Lattnerfd97b882011-04-05 07:19:28 +0000456
Chris Lattner97beb512007-05-14 06:56:09 +0000457</div>
458
Chris Lattner0a1fd102007-09-21 03:54:09 +0000459<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000460<h3>
Chris Lattnerd1094e02009-03-02 02:37:32 +0000461<a name="coreimprovements">LLVM IR and Core Improvements</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000462</h3>
Chris Lattnerdd6acc02008-02-10 08:17:19 +0000463
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000464<div>
Chris Lattneraa61f412009-10-13 17:48:04 +0000465<p>LLVM IR has several new features for better support of new targets and that
466expose new optimization opportunities:</p>
Chris Lattnerdd6acc02008-02-10 08:17:19 +0000467
Chris Lattnerb7112222008-06-05 06:25:56 +0000468<ul>
Chad Rosier06da55e2011-05-27 22:50:46 +0000469<!--
470<li></li>
471-->
Chris Lattnerdd6acc02008-02-10 08:17:19 +0000472</ul>
Mikhail Glushenkov024f7cf2008-10-13 02:08:34 +0000473
Chris Lattnerdd6acc02008-02-10 08:17:19 +0000474</div>
475
476<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000477<h3>
Chris Lattner2b8a52e2008-02-10 07:46:44 +0000478<a name="optimizer">Optimizer Improvements</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000479</h3>
Chris Lattner2b8a52e2008-02-10 07:46:44 +0000480
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000481<div>
Chris Lattner2b8a52e2008-02-10 07:46:44 +0000482
Chris Lattneraa61f412009-10-13 17:48:04 +0000483<p>In addition to a large array of minor performance tweaks and bug fixes, this
Chris Lattner25879d72008-10-13 21:50:36 +0000484release includes a few major enhancements and additions to the optimizers:</p>
Chris Lattner2b8a52e2008-02-10 07:46:44 +0000485
486<ul>
Chad Rosier06da55e2011-05-27 22:50:46 +0000487<!--
488<li></li>
489-->
Chris Lattner23e16b592011-04-06 05:50:04 +0000490</li>
Chris Lattnerc3a2c982011-04-06 00:45:11 +0000491
Chris Lattnerfcc65a72010-10-04 02:42:39 +0000492</ul>
493
Chris Lattneraa61f412009-10-13 17:48:04 +0000494</div>
Chris Lattnerd1094e02009-03-02 02:37:32 +0000495
Chris Lattner7795ea92008-06-08 02:45:07 +0000496<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000497<h3>
Chris Lattnerf25bc192010-09-30 16:31:33 +0000498<a name="mc">MC Level Improvements</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000499</h3>
Chris Lattnerf25bc192010-09-30 16:31:33 +0000500
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000501<div>
Chris Lattnerf25bc192010-09-30 16:31:33 +0000502<p>
Chris Lattnerbf1cf672010-10-02 21:59:30 +0000503The LLVM Machine Code (aka MC) subsystem was created to solve a number
Chris Lattnerf25bc192010-09-30 16:31:33 +0000504of problems in the realm of assembly, disassembly, object file format handling,
505and a number of other related areas that CPU instruction-set level tools work
Chris Lattnerbf1cf672010-10-02 21:59:30 +0000506in.</p>
507
Chris Lattnerbf1cf672010-10-02 21:59:30 +0000508<ul>
Chad Rosier06da55e2011-05-27 22:50:46 +0000509<!--
510<li></li>
511-->
Chris Lattnerbf1cf672010-10-02 21:59:30 +0000512</ul>
513
514<p>For more information, please see the <a
Chris Lattnerf25bc192010-09-30 16:31:33 +0000515href="http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html">Intro to the
516LLVM MC Project Blog Post</a>.
517</p>
518
NAKAMURA Takumi8d89b8e2011-04-05 08:24:22 +0000519</div>
Chris Lattnerf25bc192010-09-30 16:31:33 +0000520
Chris Lattnerf25bc192010-09-30 16:31:33 +0000521<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000522<h3>
Chris Lattnerd434bfb2009-03-02 03:24:11 +0000523<a name="codegen">Target Independent Code Generator Improvements</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000524</h3>
Chris Lattner7795ea92008-06-08 02:45:07 +0000525
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000526<div>
Chris Lattner7795ea92008-06-08 02:45:07 +0000527
Mikhail Glushenkov25422542009-03-01 18:09:47 +0000528<p>We have put a significant amount of work into the code generator
529infrastructure, which allows us to implement more aggressive algorithms and make
530it run faster:</p>
Chris Lattner7795ea92008-06-08 02:45:07 +0000531
532<ul>
Chad Rosier06da55e2011-05-27 22:50:46 +0000533<!--
534<li></li>
535-->
Chris Lattner0a1fd102007-09-21 03:54:09 +0000536</ul>
Chris Lattner0a1fd102007-09-21 03:54:09 +0000537</div>
538
Chris Lattnerd1094e02009-03-02 02:37:32 +0000539<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000540<h3>
Chris Lattnerd1094e02009-03-02 02:37:32 +0000541<a name="x86">X86-32 and X86-64 Target Improvements</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000542</h3>
Chris Lattnerd1094e02009-03-02 02:37:32 +0000543
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000544<div>
Chris Lattnerd3f45c82010-10-04 04:39:25 +0000545<p>New features and major changes in the X86 target include:
Chris Lattnerd1094e02009-03-02 02:37:32 +0000546</p>
547
548<ul>
Chad Rosierd1db4f82011-05-27 20:13:10 +0000549<li>The CRC32 intrinsics have been renamed. The intrinsics were previously
550 @llvm.x86.sse42.crc32.[8|16|32] and @llvm.x86.sse42.crc64.[8|64]. They have
551 been renamed to @llvm.x86.sse42.crc32.32.[8|16|32] and
552 @llvm.x86.sse42.crc32.64.[8|64].</li>
553
Chris Lattnerd1094e02009-03-02 02:37:32 +0000554</ul>
555
Chris Lattnerd1094e02009-03-02 02:37:32 +0000556</div>
Chris Lattner0a1fd102007-09-21 03:54:09 +0000557
558<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000559<h3>
Chris Lattneraa61f412009-10-13 17:48:04 +0000560<a name="ARM">ARM Target Improvements</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000561</h3>
Chris Lattnerc92d7692009-03-01 02:30:21 +0000562
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000563<div>
Chris Lattneraa61f412009-10-13 17:48:04 +0000564<p>New features of the ARM target include:
565</p>
Chris Lattnerc92d7692009-03-01 02:30:21 +0000566
567<ul>
Chad Rosier06da55e2011-05-27 22:50:46 +0000568<!--
569<li></li>
570-->
Bob Wilsone44f2982010-09-13 17:39:35 +0000571</ul>
Chris Lattneraa61f412009-10-13 17:48:04 +0000572</div>
Chris Lattnerc3a2c982011-04-06 00:45:11 +0000573
574<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000575<h3>
Chris Lattnerc3a2c982011-04-06 00:45:11 +0000576<a name="OtherTS">Other Target Specific Improvements</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000577</h3>
Chris Lattnerc92d7692009-03-01 02:30:21 +0000578
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000579<div>
Chris Lattnerc3a2c982011-04-06 00:45:11 +0000580<ul>
Chad Rosier06da55e2011-05-27 22:50:46 +0000581<!--
582<li></li>
583-->
Chris Lattnerc3a2c982011-04-06 00:45:11 +0000584</ul>
585</div>
Chris Lattner6cb64032008-06-05 08:02:49 +0000586
587<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000588<h3>
Chris Lattner1e4d5bc2008-10-13 17:57:36 +0000589<a name="changes">Major Changes and Removed Features</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000590</h3>
Chris Lattner1e4d5bc2008-10-13 17:57:36 +0000591
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000592<div>
Chris Lattner1e4d5bc2008-10-13 17:57:36 +0000593
Bill Wendling2d3138c2011-08-03 22:18:20 +0000594<p>If you're already an LLVM user or developer with out-of-tree changes based on
595 LLVM 2.9, this section lists some "gotchas" that you may run into upgrading
596 from the previous release.</p>
Chris Lattner1e4d5bc2008-10-13 17:57:36 +0000597
598<ul>
Eric Christopher508503b2011-09-28 19:47:28 +0000599 <li>The <code>LLVMC</code> front end code was removed while separating
600 out language independence.</li>
Jay Foad2755e072011-08-04 10:43:43 +0000601 <li>The <code>LowerSetJmp</code> pass wasn't used effectively by any
602 target and has been removed.</li>
Rafael Espindolaa45c20b2011-08-30 23:03:45 +0000603 <li>The old <code>TailDup</code> pass was not used in the standard pipeline
604 and was unable to update ssa form, so it has been removed.
Eli Friedman02e737b2011-08-12 22:50:01 +0000605 <li>The syntax of volatile loads and stores in IR has been changed to
606 "<code>load volatile</code>"/"<code>store volatile</code>". The old
607 syntax ("<code>volatile load</code>"/"<code>volatile store</code>")
608 is still accepted, but is now considered deprecated.</li>
Devang Pateldbf83832008-10-14 20:03:43 +0000609</ul>
Chris Lattner1e4d5bc2008-10-13 17:57:36 +0000610
NAKAMURA Takumi2b462b52011-08-22 23:22:05 +0000611<h4>Windows (32-bit)</h4>
612<div>
613<ul>
614 <li>On Win32(MinGW32 and MSVC), Windows 2000 will not be supported.
615 Windows XP or higher is required.</li>
616</ul>
617</div>
618
Chris Lattner1e4d5bc2008-10-13 17:57:36 +0000619</div>
620
Daniel Dunbarf70898a2010-10-04 20:11:41 +0000621<!--=========================================================================-->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000622<h3>
Chris Lattnerc3a2c982011-04-06 00:45:11 +0000623<a name="api_changes">Internal API Changes</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000624</h3>
Daniel Dunbarf70898a2010-10-04 20:11:41 +0000625
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000626<div>
Daniel Dunbarf70898a2010-10-04 20:11:41 +0000627
Chris Lattnerc3a2c982011-04-06 00:45:11 +0000628<p>In addition, many APIs have changed in this release. Some of the major
Bill Wendling46ffaa92011-08-02 06:20:17 +0000629 LLVM API changes are:</p>
Daniel Dunbarf70898a2010-10-04 20:11:41 +0000630
631<ul>
Chris Lattner14b3b4d2011-07-18 04:56:02 +0000632<li>The biggest and most pervasive change is that llvm::Type's are no longer
633 returned or accepted as 'const' values. Instead, just pass around non-const
634 Type's.</li>
635
Jay Foade03f15a2011-07-14 09:19:05 +0000636<li><code>PHINode::reserveOperandSpace</code> has been removed. Instead, you
637 must specify how many operands to reserve space for when you create the
638 PHINode, by passing an extra argument into <code>PHINode::Create</code>.</li>
639
640<li>PHINodes no longer store their incoming BasicBlocks as operands. Instead,
641 the list of incoming BasicBlocks is stored separately, and can be accessed
642 with new functions <code>PHINode::block_begin</code>
643 and <code>PHINode::block_end</code>.</li>
644
645<li>Various functions now take an <code>ArrayRef</code> instead of either a pair
646 of pointers (or iterators) to the beginning and end of a range, or a pointer
647 and a length. Others now return an <code>ArrayRef</code> instead of a
648 reference to a <code>SmallVector</code> or <code>std::vector</code>. These
649 include:
650<ul>
651<!-- Please keep this list sorted. -->
Jay Foad5bd375a2011-07-15 08:37:34 +0000652<li><code>CallInst::Create</code></li>
Jay Foade03f15a2011-07-14 09:19:05 +0000653<li><code>ComputeLinearIndex</code> (in <code>llvm/CodeGen/Analysis.h</code>)</li>
654<li><code>ConstantArray::get</code></li>
655<li><code>ConstantExpr::getExtractElement</code></li>
Jay Foaded8db7d2011-07-21 14:31:17 +0000656<li><code>ConstantExpr::getGetElementPtr</code></li>
657<li><code>ConstantExpr::getInBoundsGetElementPtr</code></li>
Jay Foade03f15a2011-07-14 09:19:05 +0000658<li><code>ConstantExpr::getIndices</code></li>
659<li><code>ConstantExpr::getInsertElement</code></li>
660<li><code>ConstantExpr::getWithOperands</code></li>
Jay Foadf4b14a22011-07-19 13:32:40 +0000661<li><code>ConstantFoldCall</code> (in <code>llvm/Analysis/ConstantFolding.h</code>)</li>
662<li><code>ConstantFoldInstOperands</code> (in <code>llvm/Analysis/ConstantFolding.h</code>)</li>
Jay Foade03f15a2011-07-14 09:19:05 +0000663<li><code>ConstantVector::get</code></li>
664<li><code>DIBuilder::createComplexVariable</code></li>
665<li><code>DIBuilder::getOrCreateArray</code></li>
666<li><code>ExtractValueInst::Create</code></li>
667<li><code>ExtractValueInst::getIndexedType</code></li>
668<li><code>ExtractValueInst::getIndices</code></li>
669<li><code>FindInsertedValue</code> (in <code>llvm/Analysis/ValueTracking.h</code>)</li>
Jay Foad528beda2011-07-19 14:42:50 +0000670<li><code>gep_type_begin</code> (in <code>llvm/Support/GetElementPtrTypeIterator.h</code>)</li>
671<li><code>gep_type_end</code> (in <code>llvm/Support/GetElementPtrTypeIterator.h</code>)</li>
Jay Foadd1b78492011-07-25 09:48:08 +0000672<li><code>GetElementPtrInst::Create</code></li>
673<li><code>GetElementPtrInst::CreateInBounds</code></li>
674<li><code>GetElementPtrInst::getIndexedType</code></li>
Jay Foad857a48a2011-07-21 14:42:51 +0000675<li><code>InsertValueInst::Create</code></li>
676<li><code>InsertValueInst::getIndices</code></li>
677<li><code>InvokeInst::Create</code></li>
Jay Foad5bd375a2011-07-15 08:37:34 +0000678<li><code>IRBuilder::CreateCall</code></li>
Jay Foade03f15a2011-07-14 09:19:05 +0000679<li><code>IRBuilder::CreateExtractValue</code></li>
Jay Foad040dd822011-07-22 08:16:57 +0000680<li><code>IRBuilder::CreateGEP</code></li>
681<li><code>IRBuilder::CreateInBoundsGEP</code></li>
Jay Foade03f15a2011-07-14 09:19:05 +0000682<li><code>IRBuilder::CreateInsertValue</code></li>
Jay Foad5bd375a2011-07-15 08:37:34 +0000683<li><code>IRBuilder::CreateInvoke</code></li>
Jay Foade03f15a2011-07-14 09:19:05 +0000684<li><code>MDNode::get</code></li>
685<li><code>MDNode::getIfExists</code></li>
686<li><code>MDNode::getTemporary</code></li>
687<li><code>MDNode::getWhenValsUnresolved</code></li>
Jay Foadb992a632011-07-19 15:07:52 +0000688<li><code>SimplifyGEPInst</code> (in <code>llvm/Analysis/InstructionSimplify.h</code>)</li>
Jay Foadbf904772011-07-19 14:01:37 +0000689<li><code>TargetData::getIndexedOffset</code></li>
Jay Foade03f15a2011-07-14 09:19:05 +0000690</ul></li>
691
692<li>All forms of <code>StringMap::getOrCreateValue</code> have been remove
693 except for the one which takes a <code>StringRef</code>.</li>
694
Bill Wendling46ffaa92011-08-02 06:20:17 +0000695<li>The <code>LLVMBuildUnwind</code> function from the C API was removed. The
696 LLVM <code>unwind</code> instruction has been deprecated for a long time and
Bill Wendling6bc7caa2011-08-02 06:39:13 +0000697 isn't used by the current front-ends. So this was removed during the
Bill Wendling46ffaa92011-08-02 06:20:17 +0000698 exception handling rewrite.</li>
699
Bill Wendling2d3138c2011-08-03 22:18:20 +0000700<li>The <code>LLVMAddLowerSetJmpPass</code> function from the C API was removed
701 because the <code>LowerSetJmp</code> pass was removed.</li>
702
Devang Patel2b8acaf2011-08-15 23:00:00 +0000703<li>The <code>DIBuilder</code> interface used by front ends to encode debugging
704 information in the LLVM IR now expects clients to use <code>DIBuilder::finalize()</code>
705 at the end of translation unit to complete debugging information encoding.</li>
706
Torok Edwin52cac092011-09-30 13:07:52 +0000707<li>The way the type system works has been rewritten: <code>PATypeHolder</code>
708and <code>OpaqueType</code> are gone, and all APIs deal with <code>Type*</code>
709instead of <code>const Type*</code>.
710If you need to create recursive structures, then create a named structure,
711and use <code>setBody()</code> when all its elements are built.
712Type merging and refining is gone too: named structures are not
713merged with other structures, even if their layout is identical.
714(of course anonymous structures are still uniqued by layout).
715</li>
716
717<li>TargetSelect.h moved to Support/ from Target/</li>
718
719<li>UpgradeIntrinsicCall no longer upgrades pre-2.9 intrinsic calls
720(for example <code>llvm.memset.i32</code>).</li>
721
722<li>It is mandatory to initialize all out-of-tree passes too and their dependencies now with
723<code>INITIALIZE_PASS{BEGIN,END,}</code> and <code>INITIALIZE_{PASS,AG}_DEPENDENCY</code>.</li>
724
Eli Friedmanc1702c82011-10-13 22:14:57 +0000725<li>The interface for MemDepResult in MemoryDependenceAnalysis has been enhanced
726 with new return types Unknown and NonFuncLocal, in addition to the existing
727 types Clobber, Def, and NonLocal.</li>
728
Daniel Dunbarf70898a2010-10-04 20:11:41 +0000729</ul>
730</div>
Chris Lattner1e4d5bc2008-10-13 17:57:36 +0000731
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000732</div>
733
Chris Lattner3d482502003-10-02 04:57:28 +0000734<!-- *********************************************************************** -->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000735<h2>
Misha Brukman80731b92003-11-22 00:38:41 +0000736 <a name="knownproblems">Known Problems</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000737</h2>
Chris Lattner3d482502003-10-02 04:57:28 +0000738<!-- *********************************************************************** -->
739
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000740<div>
Misha Brukman80731b92003-11-22 00:38:41 +0000741
Mikhail Glushenkov25422542009-03-01 18:09:47 +0000742<p>This section contains significant known problems with the LLVM system,
Chris Lattner2a092392008-11-10 05:40:34 +0000743listed by component. If you run into a problem, please check the <a
Chris Lattnera69595e2005-10-29 07:07:09 +0000744href="http://llvm.org/bugs/">LLVM bug database</a> and submit a bug if
Chris Lattnerb84f3322003-12-12 21:22:16 +0000745there isn't already one.</p>
Chris Lattner3d482502003-10-02 04:57:28 +0000746
Chris Lattnerb911de42004-03-14 02:03:02 +0000747<!-- ======================================================================= -->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000748<h3>
Chris Lattnerb911de42004-03-14 02:03:02 +0000749 <a name="experimental">Experimental features included with this release</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000750</h3>
Chris Lattner3d482502003-10-02 04:57:28 +0000751
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000752<div>
Chris Lattnerb911de42004-03-14 02:03:02 +0000753
Misha Brukmanfa50a222004-05-12 21:46:05 +0000754<p>The following components of this LLVM release are either untested, known to
755be broken or unreliable, or are in early development. These components should
756not be relied on, and bugs should not be filed against them, but they may be
757useful to some people. In particular, if you would like to work on one of these
Chris Lattnere38ac152008-02-12 06:29:45 +0000758components, please contact us on the <a
759href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">LLVMdev list</a>.</p>
Chris Lattnerb911de42004-03-14 02:03:02 +0000760
761<ul>
Chris Lattner0d364302011-03-10 07:43:44 +0000762<li>The Alpha, Blackfin, CellSPU, MicroBlaze, MSP430, MIPS, PTX, SystemZ
Chris Lattnera7f45cf2010-10-04 01:29:06 +0000763 and XCore backends are experimental.</li>
Chris Lattnerbf1cf672010-10-02 21:59:30 +0000764<li><tt>llc</tt> "<tt>-filetype=obj</tt>" is experimental on all targets
Chris Lattner17c170a2011-04-06 06:29:50 +0000765 other than darwin and ELF X86 systems.</li>
Chris Lattner0d364302011-03-10 07:43:44 +0000766
Chris Lattnerb911de42004-03-14 02:03:02 +0000767</ul>
768
769</div>
Chris Lattner3d482502003-10-02 04:57:28 +0000770
Misha Brukman80731b92003-11-22 00:38:41 +0000771<!-- ======================================================================= -->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000772<h3>
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000773 <a name="x86-be">Known problems with the X86 back-end</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000774</h3>
John Criswell3bdbd302005-11-08 21:11:33 +0000775
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000776<div>
John Criswell3bdbd302005-11-08 21:11:33 +0000777
778<ul>
Anton Korobeynikov486c7d32008-06-08 10:24:13 +0000779 <li>The X86 backend does not yet support
780 all <a href="http://llvm.org/PR879">inline assembly that uses the X86
781 floating point stack</a>. It supports the 'f' and 't' constraints, but not
782 'u'.</li>
Dan Gohman721b3722008-06-08 23:05:11 +0000783 <li>The X86-64 backend does not yet support the LLVM IR instruction
Chris Lattnera67df2d2010-04-22 06:28:20 +0000784 <tt>va_arg</tt>. Currently, front-ends support variadic
Dan Gohman721b3722008-06-08 23:05:11 +0000785 argument constructs on X86-64 by lowering them manually.</li>
NAKAMURA Takumi8d89b8e2011-04-05 08:24:22 +0000786 <li>Windows x64 (aka Win64) code generator has a few issues.
787 <ul>
788 <li>llvm-gcc cannot build the mingw-w64 runtime currently
789 due to lack of support for the 'u' inline assembly
790 constraint and for X87 floating point inline assembly.</li>
791 <li>On mingw-w64, you will see unresolved symbol <tt>__chkstk</tt>
792 due to <a href="http://llvm.org/bugs/show_bug.cgi?id=8919">Bug 8919</a>.
793 It is fixed in <a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110321/118499.html">r128206</a>.</li>
794 <li>Miss-aligned MOVDQA might crash your program. It is due to
795 <a href="http://llvm.org/bugs/show_bug.cgi?id=9483">Bug 9483</a>,
796 lack of handling aligned internal globals.</li>
797 </ul>
798 </li>
799
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000800</ul>
801
802</div>
803
804<!-- ======================================================================= -->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000805<h3>
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000806 <a name="ppc-be">Known problems with the PowerPC back-end</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000807</h3>
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000808
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000809<div>
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000810
811<ul>
Nicolas Geoffray77d99502007-05-15 09:21:28 +0000812<li>The Linux PPC32/ABI support needs testing for the interpreter and static
Chris Lattnerbee7b322007-05-23 04:39:32 +0000813compilation, and lacks support for debug information.</li>
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000814</ul>
815
816</div>
817
818<!-- ======================================================================= -->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000819<h3>
Chris Lattner97beb512007-05-14 06:56:09 +0000820 <a name="arm-be">Known problems with the ARM back-end</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000821</h3>
Chris Lattner97beb512007-05-14 06:56:09 +0000822
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000823<div>
Chris Lattner97beb512007-05-14 06:56:09 +0000824
825<ul>
Chris Lattnerbee7b322007-05-23 04:39:32 +0000826<li>Thumb mode works only on ARMv6 or higher processors. On sub-ARMv6
Duncan Sands47fc0a22007-09-26 15:59:54 +0000827processors, thumb programs can crash or produce wrong
Chris Lattnerbee7b322007-05-23 04:39:32 +0000828results (<a href="http://llvm.org/PR1388">PR1388</a>).</li>
John Criswellea03c9d2009-03-02 15:28:15 +0000829<li>Compilation for ARM Linux OABI (old ABI) is supported but not fully tested.
Chris Lattner97beb512007-05-14 06:56:09 +0000830</li>
Chris Lattner97beb512007-05-14 06:56:09 +0000831</ul>
832
833</div>
834
835<!-- ======================================================================= -->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000836<h3>
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000837 <a name="sparc-be">Known problems with the SPARC back-end</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000838</h3>
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000839
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000840<div>
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000841
842<ul>
John Criswellea03c9d2009-03-02 15:28:15 +0000843<li>The SPARC backend only supports the 32-bit SPARC ABI (-m32); it does not
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000844 support the 64-bit SPARC ABI (-m64).</li>
845</ul>
846
847</div>
848
849<!-- ======================================================================= -->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000850<h3>
Bruno Cardoso Lopes24eb3de2008-10-25 14:56:26 +0000851 <a name="mips-be">Known problems with the MIPS back-end</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000852</h3>
Bruno Cardoso Lopes24eb3de2008-10-25 14:56:26 +0000853
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000854<div>
Bruno Cardoso Lopes24eb3de2008-10-25 14:56:26 +0000855
856<ul>
Bruno Cardoso Lopes24eb3de2008-10-25 14:56:26 +0000857<li>64-bit MIPS targets are not supported yet.</li>
858</ul>
859
860</div>
861
862<!-- ======================================================================= -->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000863<h3>
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000864 <a name="alpha-be">Known problems with the Alpha back-end</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000865</h3>
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000866
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000867<div>
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000868
869<ul>
870
871<li>On 21164s, some rare FP arithmetic sequences which may trap do not have the
872appropriate nops inserted to ensure restartability.</li>
873
John Criswell3bdbd302005-11-08 21:11:33 +0000874</ul>
875</div>
876
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000877<!-- ======================================================================= -->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000878<h3>
Chris Lattner97beb512007-05-14 06:56:09 +0000879 <a name="c-be">Known problems with the C back-end</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000880</h3>
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000881
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000882<div>
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000883
Chris Lattner086d2692010-09-29 05:34:42 +0000884<p>The C backend has numerous problems and is not being actively maintained.
885Depending on it for anything serious is not advised.</p>
886
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000887<ul>
Chris Lattnera1a4c9a2008-06-05 06:35:40 +0000888<li><a href="http://llvm.org/PR802">The C backend has only basic support for
889 inline assembly code</a>.</li>
Chris Lattner8e061162007-09-26 06:01:35 +0000890<li><a href="http://llvm.org/PR1658">The C backend violates the ABI of common
891 C++ programs</a>, preventing intermixing between C++ compiled by the CBE and
Gabor Greif75b2f762009-03-02 12:02:51 +0000892 C++ code compiled with <tt>llc</tt> or native compilers.</li>
Duncan Sandse09506a2008-02-10 13:40:55 +0000893<li>The C backend does not support all exception handling constructs.</li>
Duncan Sands3aa36732009-02-25 11:51:54 +0000894<li>The C backend does not support arbitrary precision integers.</li>
Chris Lattnerb81f10e2006-11-18 07:51:14 +0000895</ul>
896
897</div>
John Criswell3bdbd302005-11-08 21:11:33 +0000898
Misha Brukman80731b92003-11-22 00:38:41 +0000899
900<!-- ======================================================================= -->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000901<h3>
Chris Lattner086d2692010-09-29 05:34:42 +0000902 <a name="llvm-gcc">Known problems with the llvm-gcc front-end</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000903</h3>
Chris Lattner178f3db2003-10-02 05:07:23 +0000904
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000905<div>
Chris Lattner72a269f2006-03-03 00:34:26 +0000906
Chad Rosier06da55e2011-05-27 22:50:46 +0000907<p><b>LLVM 3.0 will be the last release of llvm-gcc.</b></p>
Chris Lattner17c170a2011-04-06 06:29:50 +0000908
Chris Lattner086d2692010-09-29 05:34:42 +0000909<p>llvm-gcc is generally very stable for the C family of languages. The only
910 major language feature of GCC not supported by llvm-gcc is the
911 <tt>__builtin_apply</tt> family of builtins. However, some extensions
912 are only supported on some targets. For example, trampolines are only
913 supported on some targets (these are used when you take the address of a
914 nested function).</p>
Misha Brukman80731b92003-11-22 00:38:41 +0000915
Chris Lattner086d2692010-09-29 05:34:42 +0000916<p>Fortran support generally works, but there are still several unresolved bugs
917 in <a href="http://llvm.org/bugs/">Bugzilla</a>. Please see the
918 tools/gfortran component for details. Note that llvm-gcc is missing major
919 Fortran performance work in the frontend and library that went into GCC after
920 4.2. If you are interested in Fortran, we recommend that you consider using
921 <a href="#dragonegg">dragonegg</a> instead.</p>
Chris Lattner3d482502003-10-02 04:57:28 +0000922
Duncan Sandsd63e1c82010-10-04 10:06:56 +0000923<p>The llvm-gcc 4.2 Ada compiler has basic functionality, but is no longer being
924actively maintained. If you are interested in Ada, we recommend that you
925consider using <a href="#dragonegg">dragonegg</a> instead.</p>
Chris Lattnere38ac152008-02-12 06:29:45 +0000926</div>
927
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000928</div>
929
Chris Lattner3d482502003-10-02 04:57:28 +0000930<!-- *********************************************************************** -->
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000931<h2>
Misha Brukman80731b92003-11-22 00:38:41 +0000932 <a name="additionalinfo">Additional Information</a>
NAKAMURA Takumi64835132011-04-18 01:17:51 +0000933</h2>
Chris Lattner3d482502003-10-02 04:57:28 +0000934<!-- *********************************************************************** -->
935
NAKAMURA Takumi3ad28282011-04-21 01:52:00 +0000936<div>
Misha Brukman80731b92003-11-22 00:38:41 +0000937
Chris Lattnercb5596d2005-05-16 17:13:10 +0000938<p>A wide variety of additional information is available on the <a
NAKAMURA Takumica46f5a2011-04-09 02:13:37 +0000939href="http://llvm.org/">LLVM web page</a>, in particular in the <a
Chris Lattnere0c1df42007-05-18 00:44:29 +0000940href="http://llvm.org/docs/">documentation</a> section. The web page also
Reid Spencerc7f87f22007-07-09 08:04:31 +0000941contains versions of the API documentation which is up-to-date with the
942Subversion version of the source code.
Misha Brukman96158092005-03-30 19:14:24 +0000943You can access versions of these documents specific to this release by going
944into the "<tt>llvm/doc/</tt>" directory in the LLVM tree.</p>
Chris Lattner3d482502003-10-02 04:57:28 +0000945
Misha Brukman80731b92003-11-22 00:38:41 +0000946<p>If you have any questions or comments about LLVM, please feel free to contact
Chris Lattnera69595e2005-10-29 07:07:09 +0000947us via the <a href="http://llvm.org/docs/#maillist"> mailing
Chris Lattnerb84f3322003-12-12 21:22:16 +0000948lists</a>.</p>
Chris Lattner3d482502003-10-02 04:57:28 +0000949
Misha Brukman80731b92003-11-22 00:38:41 +0000950</div>
Chris Lattner3d482502003-10-02 04:57:28 +0000951
952<!-- *********************************************************************** -->
Chris Lattner3d482502003-10-02 04:57:28 +0000953
Misha Brukman80731b92003-11-22 00:38:41 +0000954<hr>
Misha Brukman68aab3b2003-11-22 01:23:39 +0000955<address>
Misha Brukman8834af92003-12-21 22:53:21 +0000956 <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
Misha Brukman86242e12008-12-11 17:34:48 +0000957 src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS"></a>
Misha Brukman68aab3b2003-11-22 01:23:39 +0000958 <a href="http://validator.w3.org/check/referer"><img
Misha Brukman86242e12008-12-11 17:34:48 +0000959 src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a>
Misha Brukman68aab3b2003-11-22 01:23:39 +0000960
Chris Lattnere0c1df42007-05-18 00:44:29 +0000961 <a href="http://llvm.org/">LLVM Compiler Infrastructure</a><br>
Misha Brukman80731b92003-11-22 00:38:41 +0000962 Last modified: $Date$
Misha Brukman68aab3b2003-11-22 01:23:39 +0000963</address>
Chris Lattner3d482502003-10-02 04:57:28 +0000964
Misha Brukman80731b92003-11-22 00:38:41 +0000965</body>
966</html>