2003-11-22 08:38:41 +08:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
|
|
"http://www.w3.org/TR/html4/strict.dtd">
|
|
|
|
<html>
|
|
|
|
<head>
|
2004-11-19 02:38:58 +08:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
2003-11-22 08:38:41 +08:00
|
|
|
<link rel="stylesheet" href="llvm.css" type="text/css">
|
2011-12-14 01:55:30 +08:00
|
|
|
<title>LLVM 3.1 Release Notes</title>
|
2003-11-22 08:38:41 +08:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2011-12-14 01:55:30 +08:00
|
|
|
<h1>LLVM 3.1 Release Notes</h1>
|
2008-10-13 10:08:34 +08:00
|
|
|
|
2011-12-07 07:33:07 +08:00
|
|
|
<div>
|
|
|
|
<img style="float:right" src="http://llvm.org/img/DragonSmall.png"
|
|
|
|
width="136" height="136" alt="LLVM Dragon Logo">
|
|
|
|
</div>
|
2010-03-17 12:02:39 +08:00
|
|
|
|
2003-10-02 12:57:28 +08:00
|
|
|
<ol>
|
2003-11-22 08:38:41 +08:00
|
|
|
<li><a href="#intro">Introduction</a></li>
|
2008-10-14 02:01:01 +08:00
|
|
|
<li><a href="#subproj">Sub-project Status Update</a></li>
|
2011-12-14 01:55:30 +08:00
|
|
|
<li><a href="#externalproj">External Projects Using LLVM 3.1</a></li>
|
|
|
|
<li><a href="#whatsnew">What's New in LLVM?</a></li>
|
2004-05-01 06:17:12 +08:00
|
|
|
<li><a href="GettingStarted.html">Installation Instructions</a></li>
|
2008-10-15 00:23:02 +08:00
|
|
|
<li><a href="#knownproblems">Known Problems</a></li>
|
2003-11-22 08:38:41 +08:00
|
|
|
<li><a href="#additionalinfo">Additional Information</a></li>
|
2003-10-02 12:57:28 +08:00
|
|
|
</ol>
|
|
|
|
|
2004-05-24 05:07:27 +08:00
|
|
|
<div class="doc_author">
|
2011-04-09 10:13:37 +08:00
|
|
|
<p>Written by the <a href="http://llvm.org/">LLVM Team</a></p>
|
2003-11-22 08:38:41 +08:00
|
|
|
</div>
|
2003-10-02 12:57:28 +08:00
|
|
|
|
2011-12-14 01:55:30 +08:00
|
|
|
<h1 style="color:red">These are in-progress notes for the upcoming LLVM 3.1
|
2010-01-28 09:14:43 +08:00
|
|
|
release.<br>
|
|
|
|
You may prefer the
|
2011-12-14 01:55:30 +08:00
|
|
|
<a href="http://llvm.org/releases/3.0/docs/ReleaseNotes.html">LLVM 3.0
|
2010-05-04 07:51:05 +08:00
|
|
|
Release Notes</a>.</h1>
|
2010-01-28 09:14:43 +08:00
|
|
|
|
2003-10-02 12:57:28 +08:00
|
|
|
<!-- *********************************************************************** -->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h2>
|
2003-11-22 08:38:41 +08:00
|
|
|
<a name="intro">Introduction</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h2>
|
2003-10-02 12:57:28 +08:00
|
|
|
<!-- *********************************************************************** -->
|
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2003-11-22 08:38:41 +08:00
|
|
|
|
2008-10-14 01:57:36 +08:00
|
|
|
<p>This document contains the release notes for the LLVM Compiler
|
2011-12-14 01:55:30 +08:00
|
|
|
Infrastructure, release 3.1. Here we describe the status of LLVM, including
|
2011-11-28 02:47:37 +08:00
|
|
|
major improvements from the previous release, improvements in various
|
|
|
|
subprojects of LLVM, and some of the current users of the code.
|
2011-10-27 02:46:16 +08:00
|
|
|
All LLVM releases may be downloaded from
|
|
|
|
the <a href="http://llvm.org/releases/">LLVM releases web site</a>.</p>
|
2003-10-03 00:38:05 +08:00
|
|
|
|
2004-12-07 16:04:13 +08:00
|
|
|
<p>For more information about LLVM, including information about the latest
|
2011-10-27 02:46:16 +08:00
|
|
|
release, please check out the <a href="http://llvm.org/">main LLVM web
|
|
|
|
site</a>. If you have questions or comments,
|
|
|
|
the <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">LLVM
|
|
|
|
Developer's Mailing List</a> is a good place to send them.</p>
|
2003-10-02 12:57:28 +08:00
|
|
|
|
2011-10-27 02:46:16 +08:00
|
|
|
<p>Note that if you are reading this file from a Subversion checkout or the main
|
|
|
|
LLVM web page, this document applies to the <i>next</i> release, not the
|
|
|
|
current one. To see the release notes for a specific release, please see the
|
|
|
|
<a href="http://llvm.org/releases/">releases page</a>.</p>
|
2003-11-22 08:38:41 +08:00
|
|
|
|
|
|
|
</div>
|
2011-11-29 02:20:09 +08:00
|
|
|
|
|
|
|
|
2008-10-14 02:01:01 +08:00
|
|
|
<!-- *********************************************************************** -->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h2>
|
2008-10-14 02:01:01 +08:00
|
|
|
<a name="subproj">Sub-project Status Update</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h2>
|
2008-10-14 02:01:01 +08:00
|
|
|
<!-- *********************************************************************** -->
|
2006-04-18 14:18:36 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2011-10-27 02:46:16 +08:00
|
|
|
|
2011-12-14 01:55:30 +08:00
|
|
|
<p>The LLVM 3.1 distribution currently consists of code from the core LLVM
|
2011-10-27 02:46:16 +08:00
|
|
|
repository (which roughly includes the LLVM optimizers, code generators and
|
2011-11-11 04:15:40 +08:00
|
|
|
supporting tools), and the Clang repository. In
|
2011-10-27 02:46:16 +08:00
|
|
|
addition to this code, the LLVM Project includes other sub-projects that are
|
|
|
|
in development. Here we include updates on these subprojects.</p>
|
2008-06-05 14:57:39 +08:00
|
|
|
|
2008-06-09 05:58:17 +08:00
|
|
|
<!--=========================================================================-->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h3>
|
2008-10-14 02:11:54 +08:00
|
|
|
<a name="clang">Clang: C/C++/Objective-C Frontend Toolkit</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h3>
|
2008-06-09 05:58:17 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2008-06-09 05:58:17 +08:00
|
|
|
|
2010-04-27 01:42:18 +08:00
|
|
|
<p><a href="http://clang.llvm.org/">Clang</a> is an LLVM front end for the C,
|
2011-10-27 02:46:16 +08:00
|
|
|
C++, and Objective-C languages. Clang aims to provide a better user
|
|
|
|
experience through expressive diagnostics, a high level of conformance to
|
|
|
|
language standards, fast compilation, and low memory use. Like LLVM, Clang
|
|
|
|
provides a modular, library-based architecture that makes it suitable for
|
|
|
|
creating or integrating with other development tools. Clang is considered a
|
|
|
|
production-quality compiler for C, Objective-C, C++ and Objective-C++ on x86
|
2011-11-28 02:47:37 +08:00
|
|
|
(32- and 64-bit), and for Darwin/ARM targets.</p>
|
2010-01-28 09:14:43 +08:00
|
|
|
|
2011-12-14 01:55:30 +08:00
|
|
|
<p>In the LLVM 3.1 time-frame, the Clang team has made many improvements:</p>
|
2011-10-15 08:48:01 +08:00
|
|
|
<ul>
|
2011-12-14 01:55:30 +08:00
|
|
|
<li>...</li>
|
2011-10-15 08:48:01 +08:00
|
|
|
</ul>
|
2011-12-14 01:55:30 +08:00
|
|
|
|
|
|
|
<p>For more details about the changes to Clang since the 2.9 release, see the
|
2011-11-29 08:32:43 +08:00
|
|
|
<a href="http://clang.llvm.org/docs/ReleaseNotes.html">Clang release notes</a>
|
|
|
|
</p>
|
2011-10-15 08:48:01 +08:00
|
|
|
|
2011-11-29 02:20:09 +08:00
|
|
|
|
2011-04-06 16:07:40 +08:00
|
|
|
<p>If Clang rejects your code but another compiler accepts it, please take a
|
2011-10-27 02:46:16 +08:00
|
|
|
look at the <a href="http://clang.llvm.org/compatibility.html">language
|
|
|
|
compatibility</a> guide to make sure this is not intentional or a known
|
|
|
|
issue.</p>
|
2011-03-10 15:43:44 +08:00
|
|
|
|
2008-10-14 02:11:54 +08:00
|
|
|
</div>
|
|
|
|
|
2009-10-14 01:48:04 +08:00
|
|
|
<!--=========================================================================-->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h3>
|
2011-04-04 19:09:08 +08:00
|
|
|
<a name="dragonegg">DragonEgg: GCC front-ends, LLVM back-end</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h3>
|
2009-10-14 01:48:04 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2011-10-27 02:46:16 +08:00
|
|
|
<p><a href="http://dragonegg.llvm.org/">DragonEgg</a> is a
|
|
|
|
<a href="http://gcc.gnu.org/wiki/plugins">gcc plugin</a> that replaces GCC's
|
2011-11-11 02:44:29 +08:00
|
|
|
optimizers and code generators with LLVM's. It works with gcc-4.5 or gcc-4.6,
|
|
|
|
targets the x86-32 and x86-64 processor families, and has been successfully
|
|
|
|
used on the Darwin, FreeBSD, KFreeBSD, Linux and OpenBSD platforms. It fully
|
|
|
|
supports Ada, C, C++ and Fortran. It has partial support for Go, Java, Obj-C
|
|
|
|
and Obj-C++.</p>
|
2011-10-27 02:46:16 +08:00
|
|
|
|
2011-12-14 01:55:30 +08:00
|
|
|
<p>The 3.1 release has the following notable changes:</p>
|
2010-04-02 17:23:15 +08:00
|
|
|
|
2011-11-28 02:47:37 +08:00
|
|
|
<ul>
|
2011-11-11 02:44:29 +08:00
|
|
|
|
2011-12-14 01:55:30 +08:00
|
|
|
<li>...</li>
|
2011-11-11 02:44:29 +08:00
|
|
|
|
2010-10-01 01:37:34 +08:00
|
|
|
</ul>
|
2009-10-14 01:48:04 +08:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2010-10-04 07:49:06 +08:00
|
|
|
<!--=========================================================================-->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h3>
|
2010-10-04 07:49:06 +08:00
|
|
|
<a name="compiler-rt">compiler-rt: Compiler Runtime Library</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h3>
|
2010-09-29 13:30:03 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2011-10-27 02:46:16 +08:00
|
|
|
|
|
|
|
<p>The new LLVM <a href="http://compiler-rt.llvm.org/">compiler-rt project</a>
|
|
|
|
is a simple library that provides an implementation of the low-level
|
|
|
|
target-specific hooks required by code generation and other runtime
|
|
|
|
components. For example, when compiling for a 32-bit target, converting a
|
|
|
|
double to a 64-bit unsigned integer is compiled into a runtime call to the
|
|
|
|
"__fixunsdfdi" function. The compiler-rt library provides highly optimized
|
|
|
|
implementations of this and other low-level routines (some are 3x faster than
|
|
|
|
the equivalent libgcc routines).</p>
|
2010-09-29 13:30:03 +08:00
|
|
|
|
2011-12-14 01:55:30 +08:00
|
|
|
<p>....</p>
|
2010-09-29 13:30:03 +08:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!--=========================================================================-->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h3>
|
2010-10-04 07:49:06 +08:00
|
|
|
<a name="lldb">LLDB: Low Level Debugger</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h3>
|
2010-09-29 13:30:03 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2011-11-29 02:20:09 +08:00
|
|
|
|
2011-11-28 02:53:41 +08:00
|
|
|
<p>LLDB is a ground-up implementation of a command line debugger, as well as a
|
|
|
|
debugger API that can be used from other applications. LLDB makes use of the
|
|
|
|
Clang parser to provide high-fidelity expression parsing (particularly for
|
|
|
|
C++) and uses the LLVM JIT for target support.</p>
|
2010-09-29 13:30:03 +08:00
|
|
|
|
2011-12-14 01:55:30 +08:00
|
|
|
<p>...</p>
|
2010-09-29 13:30:03 +08:00
|
|
|
|
2010-10-04 07:49:06 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!--=========================================================================-->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h3>
|
2010-10-04 07:49:06 +08:00
|
|
|
<a name="libc++">libc++: C++ Standard Library</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h3>
|
2010-10-04 07:49:06 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2010-10-04 07:49:06 +08:00
|
|
|
|
2011-10-27 02:46:16 +08:00
|
|
|
<p>Like compiler_rt, libc++ is now <a href="DeveloperPolicy.html#license">dual
|
|
|
|
licensed</a> under the MIT and UIUC license, allowing it to be used more
|
|
|
|
permissively.</p>
|
2010-09-29 13:30:03 +08:00
|
|
|
|
2011-12-14 01:55:30 +08:00
|
|
|
<p>...</p>
|
2011-11-26 18:56:17 +08:00
|
|
|
|
2010-09-29 13:30:03 +08:00
|
|
|
</div>
|
|
|
|
|
2011-04-07 11:08:22 +08:00
|
|
|
<!--=========================================================================-->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h3>
|
2011-04-07 11:08:22 +08:00
|
|
|
<a name="vmkit">VMKit</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h3>
|
2011-04-07 11:08:22 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2011-10-27 02:46:16 +08:00
|
|
|
|
2011-11-11 07:37:56 +08:00
|
|
|
<p>The <a href="http://vmkit.llvm.org/">VMKit project</a> is an
|
|
|
|
implementation of a Java Virtual Machine (Java VM or JVM) that uses LLVM for
|
|
|
|
static and just-in-time compilation.
|
|
|
|
|
2011-12-14 01:55:30 +08:00
|
|
|
<p>In the LLVM 3.1 time-frame, VMKit has had significant improvements on both
|
2011-11-11 07:37:56 +08:00
|
|
|
runtime and startup performance:</p>
|
|
|
|
|
|
|
|
<ul>
|
2011-12-14 01:55:30 +08:00
|
|
|
<li>...</li>
|
2011-11-11 07:37:56 +08:00
|
|
|
</ul>
|
2011-10-27 02:46:16 +08:00
|
|
|
|
2011-04-07 11:08:22 +08:00
|
|
|
</div>
|
2011-11-29 02:20:09 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
</div>
|
2010-10-05 01:39:47 +08:00
|
|
|
|
2009-02-27 06:33:38 +08:00
|
|
|
<!-- *********************************************************************** -->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h2>
|
2011-12-14 01:55:30 +08:00
|
|
|
<a name="externalproj">External Open Source Projects Using LLVM 3.1</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h2>
|
2009-02-27 06:33:38 +08:00
|
|
|
<!-- *********************************************************************** -->
|
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2009-10-14 01:48:04 +08:00
|
|
|
|
|
|
|
<p>An exciting aspect of LLVM is that it is used as an enabling technology for
|
|
|
|
a lot of other language and tools projects. This section lists some of the
|
2011-12-14 01:55:30 +08:00
|
|
|
projects that have already been updated to work with LLVM 3.1.</p>
|
2011-11-01 12:08:23 +08:00
|
|
|
|
2011-12-14 01:55:30 +08:00
|
|
|
... to be filled in right before the release ...
|
2011-10-26 17:25:01 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
</div>
|
|
|
|
|
2009-10-14 01:48:04 +08:00
|
|
|
<!-- *********************************************************************** -->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h2>
|
2011-12-14 01:55:30 +08:00
|
|
|
<a name="whatsnew">What's New in LLVM 3.1?</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h2>
|
2009-10-14 01:48:04 +08:00
|
|
|
<!-- *********************************************************************** -->
|
2009-02-26 15:29:17 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2008-06-05 14:57:39 +08:00
|
|
|
|
2009-10-14 01:48:04 +08:00
|
|
|
<p>This release includes a huge number of bug fixes, performance tweaks and
|
2011-10-27 02:46:16 +08:00
|
|
|
minor improvements. Some of the major improvements and new features are
|
|
|
|
listed in this section.</p>
|
2008-02-07 02:00:06 +08:00
|
|
|
|
|
|
|
<!--=========================================================================-->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h3>
|
2009-10-14 01:48:04 +08:00
|
|
|
<a name="majorfeatures">Major New Features</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h3>
|
2008-02-07 02:00:06 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2008-02-07 02:00:06 +08:00
|
|
|
|
2011-11-28 02:47:37 +08:00
|
|
|
<!-- Features that need text if they're finished for 3.1:
|
|
|
|
ARM EHABI
|
|
|
|
combiner-aa?
|
|
|
|
strong phi elim
|
|
|
|
loop dependence analysis
|
|
|
|
CorrelatedValuePropagation
|
|
|
|
lib/Transforms/IPO/MergeFunctions.cpp => consider for 3.1.
|
2011-11-28 04:51:47 +08:00
|
|
|
Integrated assembler on by default for arm/thumb?
|
2011-11-28 02:47:37 +08:00
|
|
|
|
2011-11-28 04:51:47 +08:00
|
|
|
-->
|
2008-02-07 02:00:06 +08:00
|
|
|
|
2011-11-28 04:51:47 +08:00
|
|
|
<!-- Near dead:
|
2011-11-16 06:13:27 +08:00
|
|
|
Analysis/RegionInfo.h + Dom Frontiers
|
|
|
|
SparseBitVector: used in LiveVar.
|
2011-11-27 16:32:32 +08:00
|
|
|
llvm/lib/Archive - replace with lib object?
|
2011-11-28 04:51:47 +08:00
|
|
|
-->
|
2011-04-05 15:19:28 +08:00
|
|
|
|
2011-12-14 01:55:30 +08:00
|
|
|
<p>LLVM 3.1 includes several major changes and big features:</p>
|
2011-04-05 15:19:28 +08:00
|
|
|
|
2011-11-28 04:51:47 +08:00
|
|
|
<ul>
|
2011-12-15 06:57:45 +08:00
|
|
|
<li><a href="../tools/clang/docs/AddressSanitizer.html">AddressSanitizer</a>,
|
|
|
|
a fast memory error detector.</li>
|
|
|
|
<li><a href="CodeGenerator.html#machineinstrbundle">MachineInstr Bundles</a>,
|
|
|
|
Support to model instruction bundling / packing.</li>
|
2012-02-24 07:52:06 +08:00
|
|
|
<li><a href="#armintegratedassembler">ARM Integrated Assembler</a>,
|
|
|
|
A full featured assembler and direct-to-object support for ARM.</li>
|
2011-12-14 01:55:30 +08:00
|
|
|
<li>....</li>
|
2011-04-06 08:45:11 +08:00
|
|
|
</ul>
|
2011-04-06 05:37:08 +08:00
|
|
|
|
2011-10-27 02:33:01 +08:00
|
|
|
</div>
|
|
|
|
|
2011-11-29 02:20:09 +08:00
|
|
|
|
2011-11-28 03:26:30 +08:00
|
|
|
<!--=========================================================================-->
|
|
|
|
<h3>
|
|
|
|
<a name="coreimprovements">LLVM IR and Core Improvements</a>
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<p>LLVM IR has several new features for better support of new targets and that
|
|
|
|
expose new optimization opportunities:</p>
|
|
|
|
|
2011-11-28 05:30:28 +08:00
|
|
|
<ul>
|
2011-12-20 09:10:56 +08:00
|
|
|
<li>IR support for half float</li>
|
2012-02-07 05:59:44 +08:00
|
|
|
<li>IR support for vectors of pointers, including vector GEPs.</li>
|
2012-02-16 18:23:43 +08:00
|
|
|
<li>Module flags have been introduced. They convey information about the
|
|
|
|
module as a whole to LLVM subsystems.</li>
|
2012-03-25 19:14:35 +08:00
|
|
|
<li>Loads can now have range metadata attached to them to describe the
|
2012-03-25 03:02:32 +08:00
|
|
|
possible values being loaded.</li>
|
2011-12-14 01:55:30 +08:00
|
|
|
<li>....</li>
|
2011-11-28 05:30:28 +08:00
|
|
|
</ul>
|
2011-11-07 01:59:24 +08:00
|
|
|
</div>
|
|
|
|
|
2011-04-06 08:45:11 +08:00
|
|
|
<!--=========================================================================-->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h3>
|
2011-04-06 08:45:11 +08:00
|
|
|
<a name="optimizer">Optimizer Improvements</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h3>
|
2011-04-05 15:19:28 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2011-04-06 02:38:45 +08:00
|
|
|
|
2011-11-28 05:30:28 +08:00
|
|
|
<p>In addition to many minor performance tweaks and bug fixes, this
|
2011-10-27 02:46:16 +08:00
|
|
|
release includes a few major enhancements and additions to the
|
|
|
|
optimizers:</p>
|
2011-04-06 02:38:45 +08:00
|
|
|
|
2011-04-06 08:45:11 +08:00
|
|
|
<ul>
|
2011-12-14 01:55:30 +08:00
|
|
|
<li>....</li>
|
2010-10-04 10:42:39 +08:00
|
|
|
</ul>
|
2007-05-17 07:25:46 +08:00
|
|
|
|
2009-10-14 01:48:04 +08:00
|
|
|
</div>
|
2009-03-02 10:37:32 +08:00
|
|
|
|
2010-10-01 00:31:33 +08:00
|
|
|
<!--=========================================================================-->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h3>
|
2010-10-01 00:31:33 +08:00
|
|
|
<a name="mc">MC Level Improvements</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h3>
|
2010-10-01 00:31:33 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2011-10-27 02:46:16 +08:00
|
|
|
|
|
|
|
<p>The LLVM Machine Code (aka MC) subsystem was created to solve a number of
|
|
|
|
problems in the realm of assembly, disassembly, object file format handling,
|
|
|
|
and a number of other related areas that CPU instruction-set level tools work
|
2011-11-28 06:03:34 +08:00
|
|
|
in. For more information, please see
|
|
|
|
the <a href="http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html">Intro
|
|
|
|
to the LLVM MC Project Blog Post</a>.</p>
|
2010-10-03 05:59:30 +08:00
|
|
|
|
|
|
|
<ul>
|
2011-12-14 01:55:30 +08:00
|
|
|
<li>....</li>
|
2010-10-03 05:59:30 +08:00
|
|
|
</ul>
|
|
|
|
|
2011-04-05 16:24:22 +08:00
|
|
|
</div>
|
2010-10-01 00:31:33 +08:00
|
|
|
|
2008-06-08 10:45:07 +08:00
|
|
|
<!--=========================================================================-->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h3>
|
2009-03-02 11:24:11 +08:00
|
|
|
<a name="codegen">Target Independent Code Generator Improvements</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h3>
|
2008-06-08 10:45:07 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2008-06-08 10:45:07 +08:00
|
|
|
|
2012-02-16 18:23:43 +08:00
|
|
|
<p>We have changed the way that the Type Legalizer legalizes vectors. The type
|
|
|
|
legalizer now attempts to promote integer elements. This enabled the
|
|
|
|
implementation of vector-select. Additionally, we see a performance boost on
|
|
|
|
workloads which use vectors of chars and shorts, since they are now promoted
|
|
|
|
to 32-bit types, which are better supported by the SIMD instruction set.
|
|
|
|
Floating point types are still widened as before.</p>
|
2011-12-20 16:02:50 +08:00
|
|
|
|
|
|
|
|
2009-03-02 02:09:47 +08:00
|
|
|
<p>We have put a significant amount of work into the code generator
|
2011-10-27 02:46:16 +08:00
|
|
|
infrastructure, which allows us to implement more aggressive algorithms and
|
|
|
|
make it run faster:</p>
|
2008-06-08 10:45:07 +08:00
|
|
|
|
|
|
|
<ul>
|
2011-12-20 00:53:40 +08:00
|
|
|
<li>TableGen can now synthesize register classes that are only needed to
|
2012-02-16 18:23:43 +08:00
|
|
|
represent combinations of constraints from instructions and sub-registers.
|
|
|
|
The synthetic register classes inherit most of their properties form their
|
|
|
|
closest user-defined super-class.</li>
|
2012-01-05 08:26:49 +08:00
|
|
|
<li><code>MachineRegisterInfo</code> now allows the reserved registers to be
|
2012-02-16 18:23:43 +08:00
|
|
|
frozen when register allocation starts. Target hooks should use the
|
2012-02-26 16:35:53 +08:00
|
|
|
<code>MRI->canReserveReg(FramePtr)</code> method to avoid accidentally
|
2012-02-16 18:23:43 +08:00
|
|
|
disabling frame pointer elimination during register allocation.</li>
|
2012-01-17 03:22:00 +08:00
|
|
|
<li>A new kind of <code>MachineOperand</code> provides a compact
|
2012-02-16 18:23:43 +08:00
|
|
|
representation of large clobber lists on call instructions. The register
|
|
|
|
mask operand references a bit mask of preserved registers. Everything else
|
|
|
|
is clobbered.</li>
|
2009-03-02 10:37:32 +08:00
|
|
|
</ul>
|
2012-02-16 18:23:43 +08:00
|
|
|
|
2012-04-12 23:17:35 +08:00
|
|
|
<p> We added new TableGen infrastructure to support bundling for
|
|
|
|
Very Long Instruction Word (VLIW) architectures. TableGen can now
|
|
|
|
automatically generate a deterministic finite automaton from a VLIW
|
|
|
|
target's schedule description which can be queried to determine
|
|
|
|
legal groupings of instructions in a bundle.</p>
|
|
|
|
|
2009-03-02 10:37:32 +08:00
|
|
|
</div>
|
2007-09-21 11:54:09 +08:00
|
|
|
|
|
|
|
<!--=========================================================================-->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h3>
|
2010-04-21 13:17:40 +08:00
|
|
|
<a name="x86">X86-32 and X86-64 Target Improvements</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h3>
|
2009-02-26 15:32:11 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2011-10-27 02:46:16 +08:00
|
|
|
|
|
|
|
<p>New features and major changes in the X86 target include:</p>
|
2009-02-26 15:32:11 +08:00
|
|
|
|
|
|
|
<ul>
|
2011-12-20 16:02:50 +08:00
|
|
|
<li>Bug fixes and improved support for AVX1</li>
|
|
|
|
<li>Support for AVX2 (still incomplete at this point)</li>
|
2012-02-17 02:22:39 +08:00
|
|
|
<li>Call instructions use the new register mask operands for faster compile
|
|
|
|
times and better support for different calling conventions. The old WINCALL
|
|
|
|
instructions are no longer needed.</li>
|
2012-04-07 10:24:20 +08:00
|
|
|
<li>DW2 Exception Handling is enabled on Cygwin and MinGW.</li>
|
2009-02-26 15:32:11 +08:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2009-10-14 01:48:04 +08:00
|
|
|
<!--=========================================================================-->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h3>
|
2009-10-14 01:48:04 +08:00
|
|
|
<a name="ARM">ARM Target Improvements</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h3>
|
2009-10-14 01:48:04 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2011-10-27 02:46:16 +08:00
|
|
|
|
|
|
|
<p>New features of the ARM target include:</p>
|
2009-10-14 01:48:04 +08:00
|
|
|
|
|
|
|
<ul>
|
2011-12-17 00:07:41 +08:00
|
|
|
<li>The constant island pass now supports basic block and constant pool entry
|
2012-02-24 07:52:06 +08:00
|
|
|
alignments greater than 4 bytes.</li>
|
|
|
|
<li>On Darwin, the ARM target now has a full-featured integrated assembler.
|
|
|
|
</li>
|
|
|
|
</ul>
|
2011-11-16 06:23:46 +08:00
|
|
|
|
2012-02-24 07:52:06 +08:00
|
|
|
<h4>
|
|
|
|
<a name="armintegratedassembler">ARM Integrated Assembler</a>
|
|
|
|
</h4>
|
|
|
|
<div>
|
|
|
|
<p>The ARM target now includes a full featured macro assembler, including
|
|
|
|
direct-to-object module support for clang. The assembler is currently enabled
|
|
|
|
by default for Darwin only pending testing and any additional necessary
|
|
|
|
platform specific support for Linux.</p>
|
|
|
|
|
|
|
|
<p>Full support is included for Thumb1, Thumb2 and ARM modes, along with
|
|
|
|
subtarget and CPU specific extensions for VFP2, VFP3 and NEON.</p>
|
2011-11-29 02:20:09 +08:00
|
|
|
|
2012-02-24 07:52:06 +08:00
|
|
|
<p>The assembler is Unified Syntax only (see ARM Architecural Reference Manual
|
|
|
|
for details). While there is some, and growing, support for pre-unfied (divided)
|
|
|
|
syntax, there are still significant gaps in that support.</p>
|
2012-03-27 19:25:16 +08:00
|
|
|
</div>
|
|
|
|
|
2012-02-24 07:52:06 +08:00
|
|
|
</div>
|
2011-11-16 05:33:05 +08:00
|
|
|
<!--=========================================================================-->
|
|
|
|
<h3>
|
|
|
|
<a name="MIPS">MIPS Target Improvements</a>
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
2011-11-28 06:12:32 +08:00
|
|
|
<p>This release has seen major new work on just about every aspect of the MIPS
|
|
|
|
backend. Some of the major new features include:</p>
|
2011-11-16 05:33:05 +08:00
|
|
|
|
|
|
|
<ul>
|
2011-12-14 01:55:30 +08:00
|
|
|
<li>....</li>
|
2011-11-16 05:33:05 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
2011-11-16 06:23:46 +08:00
|
|
|
|
2011-04-06 08:45:11 +08:00
|
|
|
<!--=========================================================================-->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h3>
|
2011-04-06 08:45:11 +08:00
|
|
|
<a name="OtherTS">Other Target Specific Improvements</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h3>
|
2008-06-05 16:02:49 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2011-10-27 02:46:16 +08:00
|
|
|
|
2011-04-06 08:45:11 +08:00
|
|
|
<ul>
|
2011-12-14 01:55:30 +08:00
|
|
|
<li>....</li>
|
2011-11-29 02:20:09 +08:00
|
|
|
|
2011-11-28 06:36:22 +08:00
|
|
|
|
2011-04-06 08:45:11 +08:00
|
|
|
</ul>
|
2011-10-27 02:46:16 +08:00
|
|
|
|
2011-04-06 08:45:11 +08:00
|
|
|
</div>
|
2008-06-05 16:02:49 +08:00
|
|
|
|
2008-10-14 01:57:36 +08:00
|
|
|
<!--=========================================================================-->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h3>
|
2008-10-14 01:57:36 +08:00
|
|
|
<a name="changes">Major Changes and Removed Features</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h3>
|
2008-10-14 01:57:36 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2008-10-14 01:57:36 +08:00
|
|
|
|
2011-08-04 06:18:20 +08:00
|
|
|
<p>If you're already an LLVM user or developer with out-of-tree changes based on
|
2011-12-14 01:55:30 +08:00
|
|
|
LLVM 3.1, this section lists some "gotchas" that you may run into upgrading
|
2011-08-04 06:18:20 +08:00
|
|
|
from the previous release.</p>
|
2008-10-14 02:01:01 +08:00
|
|
|
|
2008-10-14 06:06:31 +08:00
|
|
|
<ul>
|
2012-02-16 18:23:43 +08:00
|
|
|
<li>LLVM 3.1 removes support for reading LLVM 2.9 bitcode files. Going
|
|
|
|
forward, we aim for all future versions of LLVM to read bitcode files and
|
|
|
|
<tt>.ll</tt> files produced by LLVM 3.0 and later.</li>
|
|
|
|
<li>The <tt>unwind</tt> instruction is now gone. With the introduction of the
|
|
|
|
new exception handling system in LLVM 3.0, the <tt>unwind</tt> instruction
|
|
|
|
became obsolete.</li>
|
2011-12-14 01:55:30 +08:00
|
|
|
<li>....</li>
|
2011-08-23 07:22:05 +08:00
|
|
|
</ul>
|
2011-10-27 02:46:16 +08:00
|
|
|
|
2011-08-23 07:22:05 +08:00
|
|
|
</div>
|
|
|
|
|
2010-10-05 04:11:41 +08:00
|
|
|
<!--=========================================================================-->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h3>
|
2011-04-06 08:45:11 +08:00
|
|
|
<a name="api_changes">Internal API Changes</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h3>
|
2010-10-05 04:11:41 +08:00
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2010-10-05 04:11:41 +08:00
|
|
|
|
2011-04-06 08:45:11 +08:00
|
|
|
<p>In addition, many APIs have changed in this release. Some of the major
|
2011-08-02 14:20:17 +08:00
|
|
|
LLVM API changes are:</p>
|
2010-10-05 04:11:41 +08:00
|
|
|
|
|
|
|
<ul>
|
2012-03-22 06:58:28 +08:00
|
|
|
<li>Target specific options have been moved from global variables to members
|
|
|
|
on the new <code>TargetOptions</code> class, which is local to each
|
|
|
|
<code>TargetMachine</code>. As a consequence, the associated flags will
|
|
|
|
no longer be accepted by <tt>clang -mllvm</tt>. This includes:
|
|
|
|
<ul>
|
2012-03-23 08:56:26 +08:00
|
|
|
<li><code>llvm::PrintMachineCode</code></li>
|
|
|
|
<li><code>llvm::NoFramePointerElim</code></li>
|
|
|
|
<li><code>llvm::NoFramePointerElimNonLeaf</code></li>
|
|
|
|
<li><code>llvm::DisableFramePointerElim(const MachineFunction &)</code></li>
|
|
|
|
<li><code>llvm::LessPreciseFPMADOption</code></li>
|
|
|
|
<li><code>llvm::LessPrecideFPMAD()</code></li>
|
|
|
|
<li><code>llvm::NoExcessFPPrecision</code></li>
|
|
|
|
<li><code>llvm::UnsafeFPMath</code></li>
|
|
|
|
<li><code>llvm::NoInfsFPMath</code></li>
|
|
|
|
<li><code>llvm::NoNaNsFPMath</code></li>
|
|
|
|
<li><code>llvm::HonorSignDependentRoundingFPMathOption</code></li>
|
|
|
|
<li><code>llvm::HonorSignDependentRoundingFPMath()</code></li>
|
|
|
|
<li><code>llvm::UseSoftFloat</code></li>
|
|
|
|
<li><code>llvm::FloatABIType</code></li>
|
|
|
|
<li><code>llvm::NoZerosInBSS</code></li>
|
|
|
|
<li><code>llvm::JITExceptionHandling</code></li>
|
|
|
|
<li><code>llvm::JITEmitDebugInfo</code></li>
|
|
|
|
<li><code>llvm::JITEmitDebugInfoToDisk</code></li>
|
|
|
|
<li><code>llvm::GuaranteedTailCallOpt</code></li>
|
|
|
|
<li><code>llvm::StackAlignmentOverride</code></li>
|
|
|
|
<li><code>llvm::RealignStack</code></li>
|
|
|
|
<li><code>llvm::DisableJumpTables</code></li>
|
|
|
|
<li><code>llvm::EnableFastISel</code></li>
|
|
|
|
<li><code>llvm::getTrapFunctionName()</code></li>
|
|
|
|
<li><code>llvm::EnableSegmentedStacks</code></li>
|
2012-03-22 06:58:28 +08:00
|
|
|
</ul></li>
|
2011-12-14 01:55:30 +08:00
|
|
|
<li>....</li>
|
2010-10-05 04:11:41 +08:00
|
|
|
</ul>
|
2011-10-27 02:46:16 +08:00
|
|
|
|
2010-10-05 04:11:41 +08:00
|
|
|
</div>
|
2008-10-14 01:57:36 +08:00
|
|
|
|
2012-02-26 16:35:53 +08:00
|
|
|
<!--=========================================================================-->
|
|
|
|
<h3>
|
|
|
|
<a name="tools_changes">Tools Changes</a>
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<p>In addition, some tools have changed in this release. Some of the changes
|
|
|
|
are:</p>
|
|
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>llvm-stress is a command line tool for generating random .ll files to fuzz
|
|
|
|
different LLVM components. </li>
|
|
|
|
<li>....</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>....</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2003-10-02 12:57:28 +08:00
|
|
|
<!-- *********************************************************************** -->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h2>
|
2003-11-22 08:38:41 +08:00
|
|
|
<a name="knownproblems">Known Problems</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h2>
|
2003-10-02 12:57:28 +08:00
|
|
|
<!-- *********************************************************************** -->
|
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2003-11-22 08:38:41 +08:00
|
|
|
|
2011-11-28 03:38:20 +08:00
|
|
|
<p>LLVM is generally a production quality compiler, and is used by a broad range
|
|
|
|
of applications and shipping in many products. That said, not every
|
|
|
|
subsystem is as mature as the aggregate, particularly the more obscure
|
|
|
|
targets. If you run into a problem, please check the <a
|
|
|
|
href="http://llvm.org/bugs/">LLVM bug database</a> and submit a bug if
|
|
|
|
there isn't already one or ask on the <a
|
|
|
|
href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">LLVMdev
|
|
|
|
list</a>.</p>
|
2011-11-29 02:20:09 +08:00
|
|
|
|
2011-11-28 03:38:20 +08:00
|
|
|
<p>Known problem areas include:</p>
|
2011-11-29 02:20:09 +08:00
|
|
|
|
2006-11-18 15:51:14 +08:00
|
|
|
<ul>
|
2011-11-28 03:38:20 +08:00
|
|
|
<li>The Alpha, Blackfin, CellSPU, MSP430, PTX, SystemZ and
|
2011-11-28 04:51:47 +08:00
|
|
|
XCore backends are experimental, and the Alpha, Blackfin and SystemZ
|
|
|
|
targets have already been removed from mainline.</li>
|
2011-11-28 03:38:20 +08:00
|
|
|
|
|
|
|
<li>The integrated assembler, disassembler, and JIT is not supported by
|
|
|
|
several targets. If an integrated assembler is not supported, then a
|
|
|
|
system assembler is required. For more details, see the <a
|
|
|
|
href="CodeGenerator.html#targetfeatures">Target Features Matrix</a>.
|
|
|
|
</li>
|
2011-11-29 02:20:09 +08:00
|
|
|
|
2011-11-28 03:38:20 +08:00
|
|
|
<li>The C backend has numerous problems and is not being actively maintained.
|
|
|
|
Depending on it for anything serious is not advised.</li>
|
2006-11-18 15:51:14 +08:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
2005-11-09 05:11:33 +08:00
|
|
|
|
2003-10-02 12:57:28 +08:00
|
|
|
<!-- *********************************************************************** -->
|
2011-04-18 09:17:51 +08:00
|
|
|
<h2>
|
2003-11-22 08:38:41 +08:00
|
|
|
<a name="additionalinfo">Additional Information</a>
|
2011-04-18 09:17:51 +08:00
|
|
|
</h2>
|
2003-10-02 12:57:28 +08:00
|
|
|
<!-- *********************************************************************** -->
|
|
|
|
|
2011-04-21 09:52:00 +08:00
|
|
|
<div>
|
2003-11-22 08:38:41 +08:00
|
|
|
|
2011-10-27 02:46:16 +08:00
|
|
|
<p>A wide variety of additional information is available on
|
|
|
|
the <a href="http://llvm.org/">LLVM web page</a>, in particular in
|
|
|
|
the <a href="http://llvm.org/docs/">documentation</a> section. The web page
|
|
|
|
also contains versions of the API documentation which is up-to-date with the
|
|
|
|
Subversion version of the source code. You can access versions of these
|
|
|
|
documents specific to this release by going into the "<tt>llvm/doc/</tt>"
|
|
|
|
directory in the LLVM tree.</p>
|
2003-10-02 12:57:28 +08:00
|
|
|
|
2003-11-22 08:38:41 +08:00
|
|
|
<p>If you have any questions or comments about LLVM, please feel free to contact
|
2011-10-27 02:46:16 +08:00
|
|
|
us via the <a href="http://llvm.org/docs/#maillist"> mailing lists</a>.</p>
|
2003-10-02 12:57:28 +08:00
|
|
|
|
2003-11-22 08:38:41 +08:00
|
|
|
</div>
|
2003-10-02 12:57:28 +08:00
|
|
|
|
|
|
|
<!-- *********************************************************************** -->
|
|
|
|
|
2003-11-22 08:38:41 +08:00
|
|
|
<hr>
|
2003-11-22 09:23:39 +08:00
|
|
|
<address>
|
2003-12-22 06:53:21 +08:00
|
|
|
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img
|
2008-12-12 01:34:48 +08:00
|
|
|
src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS"></a>
|
2003-11-22 09:23:39 +08:00
|
|
|
<a href="http://validator.w3.org/check/referer"><img
|
2008-12-12 01:34:48 +08:00
|
|
|
src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a>
|
2003-11-22 09:23:39 +08:00
|
|
|
|
2007-05-18 08:44:29 +08:00
|
|
|
<a href="http://llvm.org/">LLVM Compiler Infrastructure</a><br>
|
2003-11-22 08:38:41 +08:00
|
|
|
Last modified: $Date$
|
2003-11-22 09:23:39 +08:00
|
|
|
</address>
|
2003-10-02 12:57:28 +08:00
|
|
|
|
2003-11-22 08:38:41 +08:00
|
|
|
</body>
|
|
|
|
</html>
|