Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 2 | "http://www.w3.org/TR/html4/strict.dtd"> |
| 3 | <html> |
| 4 | <head> |
Reid Spencer | 6454ed3 | 2004-11-18 18:38:58 +0000 | [diff] [blame] | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 6 | <link rel="stylesheet" href="llvm.css" type="text/css"> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 7 | <title>LLVM 3.1 Release Notes</title> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 8 | </head> |
| 9 | <body> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 10 | |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 11 | <h1>LLVM 3.1 Release Notes</h1> |
Mikhail Glushenkov | ea65d7d | 2008-10-13 02:08:34 +0000 | [diff] [blame] | 12 | |
Jakub Staszak | f8de54f | 2011-12-06 23:33:07 +0000 | [diff] [blame] | 13 | <div> |
| 14 | <img style="float:right" src="http://llvm.org/img/DragonSmall.png" |
| 15 | width="136" height="136" alt="LLVM Dragon Logo"> |
| 16 | </div> |
Chris Lattner | 0e464a9 | 2010-03-17 04:02:39 +0000 | [diff] [blame] | 17 | |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 18 | <ol> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 19 | <li><a href="#intro">Introduction</a></li> |
Chris Lattner | 96a445e | 2008-10-13 18:01:01 +0000 | [diff] [blame] | 20 | <li><a href="#subproj">Sub-project Status Update</a></li> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 21 | <li><a href="#externalproj">External Projects Using LLVM 3.1</a></li> |
| 22 | <li><a href="#whatsnew">What's New in LLVM?</a></li> |
Chris Lattner | 4b538b9 | 2004-04-30 22:17:12 +0000 | [diff] [blame] | 23 | <li><a href="GettingStarted.html">Installation Instructions</a></li> |
Dan Gohman | 44aa921 | 2008-10-14 16:23:02 +0000 | [diff] [blame] | 24 | <li><a href="#knownproblems">Known Problems</a></li> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 25 | <li><a href="#additionalinfo">Additional Information</a></li> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 26 | </ol> |
| 27 | |
Chris Lattner | 7911ce2 | 2004-05-23 21:07:27 +0000 | [diff] [blame] | 28 | <div class="doc_author"> |
NAKAMURA Takumi | b9a3363 | 2011-04-09 02:13:37 +0000 | [diff] [blame] | 29 | <p>Written by the <a href="http://llvm.org/">LLVM Team</a></p> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 30 | </div> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 31 | |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 32 | <h1 style="color:red">These are in-progress notes for the upcoming LLVM 3.1 |
Jeffrey Yasskin | bec4877 | 2010-01-28 01:14:43 +0000 | [diff] [blame] | 33 | release.<br> |
| 34 | You may prefer the |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 35 | <a href="http://llvm.org/releases/3.0/docs/ReleaseNotes.html">LLVM 3.0 |
Dan Gohman | b44f6c6 | 2010-05-03 23:51:05 +0000 | [diff] [blame] | 36 | Release Notes</a>.</h1> |
Jeffrey Yasskin | bec4877 | 2010-01-28 01:14:43 +0000 | [diff] [blame] | 37 | |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 38 | <!-- *********************************************************************** --> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 39 | <h2> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 40 | <a name="intro">Introduction</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 41 | </h2> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 42 | <!-- *********************************************************************** --> |
| 43 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 44 | <div> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 45 | |
Chris Lattner | f6662f9 | 2008-10-13 17:57:36 +0000 | [diff] [blame] | 46 | <p>This document contains the release notes for the LLVM Compiler |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 47 | Infrastructure, release 3.1. Here we describe the status of LLVM, including |
Chris Lattner | 1ab8ce9 | 2011-11-27 18:47:37 +0000 | [diff] [blame] | 48 | major improvements from the previous release, improvements in various |
| 49 | subprojects of LLVM, and some of the current users of the code. |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 50 | All LLVM releases may be downloaded from |
| 51 | the <a href="http://llvm.org/releases/">LLVM releases web site</a>.</p> |
Chris Lattner | 1909261 | 2003-10-02 16:38:05 +0000 | [diff] [blame] | 52 | |
Chris Lattner | 7506b1d | 2004-12-07 08:04:13 +0000 | [diff] [blame] | 53 | <p>For more information about LLVM, including information about the latest |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 54 | release, please check out the <a href="http://llvm.org/">main LLVM web |
| 55 | site</a>. If you have questions or comments, |
| 56 | the <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">LLVM |
| 57 | Developer's Mailing List</a> is a good place to send them.</p> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 58 | |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 59 | <p>Note that if you are reading this file from a Subversion checkout or the main |
| 60 | LLVM web page, this document applies to the <i>next</i> release, not the |
| 61 | current one. To see the release notes for a specific release, please see the |
| 62 | <a href="http://llvm.org/releases/">releases page</a>.</p> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 63 | |
| 64 | </div> |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 65 | |
| 66 | |
Chris Lattner | 96a445e | 2008-10-13 18:01:01 +0000 | [diff] [blame] | 67 | <!-- *********************************************************************** --> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 68 | <h2> |
Chris Lattner | 96a445e | 2008-10-13 18:01:01 +0000 | [diff] [blame] | 69 | <a name="subproj">Sub-project Status Update</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 70 | </h2> |
Chris Lattner | 96a445e | 2008-10-13 18:01:01 +0000 | [diff] [blame] | 71 | <!-- *********************************************************************** --> |
Chris Lattner | ea34f64 | 2008-06-08 21:34:41 +0000 | [diff] [blame] | 72 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 73 | <div> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 74 | |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 75 | <p>The LLVM 3.1 distribution currently consists of code from the core LLVM |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 76 | repository (which roughly includes the LLVM optimizers, code generators and |
Chris Lattner | c343e31 | 2011-11-10 20:15:40 +0000 | [diff] [blame] | 77 | supporting tools), and the Clang repository. In |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 78 | addition to this code, the LLVM Project includes other sub-projects that are |
| 79 | in development. Here we include updates on these subprojects.</p> |
Chris Lattner | 96a445e | 2008-10-13 18:01:01 +0000 | [diff] [blame] | 80 | |
Chris Lattner | 8348b47 | 2008-06-08 21:58:17 +0000 | [diff] [blame] | 81 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 82 | <h3> |
Chris Lattner | fb97b2d | 2008-10-13 18:11:54 +0000 | [diff] [blame] | 83 | <a name="clang">Clang: C/C++/Objective-C Frontend Toolkit</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 84 | </h3> |
Chris Lattner | 8348b47 | 2008-06-08 21:58:17 +0000 | [diff] [blame] | 85 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 86 | <div> |
Chris Lattner | 8348b47 | 2008-06-08 21:58:17 +0000 | [diff] [blame] | 87 | |
Chris Lattner | 095539f | 2010-04-26 17:42:18 +0000 | [diff] [blame] | 88 | <p><a href="http://clang.llvm.org/">Clang</a> is an LLVM front end for the C, |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 89 | C++, and Objective-C languages. Clang aims to provide a better user |
| 90 | experience through expressive diagnostics, a high level of conformance to |
| 91 | language standards, fast compilation, and low memory use. Like LLVM, Clang |
| 92 | provides a modular, library-based architecture that makes it suitable for |
| 93 | creating or integrating with other development tools. Clang is considered a |
| 94 | production-quality compiler for C, Objective-C, C++ and Objective-C++ on x86 |
Chris Lattner | 1ab8ce9 | 2011-11-27 18:47:37 +0000 | [diff] [blame] | 95 | (32- and 64-bit), and for Darwin/ARM targets.</p> |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 96 | |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 97 | <p>In the LLVM 3.1 time-frame, the Clang team has made many improvements:</p> |
Douglas Gregor | ba087df | 2011-10-15 00:48:01 +0000 | [diff] [blame] | 98 | <ul> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 99 | <li>...</li> |
Douglas Gregor | ba087df | 2011-10-15 00:48:01 +0000 | [diff] [blame] | 100 | </ul> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 101 | |
| 102 | <p>For more details about the changes to Clang since the 2.9 release, see the |
Chandler Carruth | cc966de | 2011-11-29 00:32:43 +0000 | [diff] [blame] | 103 | <a href="http://clang.llvm.org/docs/ReleaseNotes.html">Clang release notes</a> |
| 104 | </p> |
Douglas Gregor | ba087df | 2011-10-15 00:48:01 +0000 | [diff] [blame] | 105 | |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 106 | |
Duncan Sands | f3ba7af | 2011-04-06 08:07:40 +0000 | [diff] [blame] | 107 | <p>If Clang rejects your code but another compiler accepts it, please take a |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 108 | look at the <a href="http://clang.llvm.org/compatibility.html">language |
| 109 | compatibility</a> guide to make sure this is not intentional or a known |
| 110 | issue.</p> |
Bill Wendling | 741748a | 2008-10-27 09:27:33 +0000 | [diff] [blame] | 111 | |
Chris Lattner | fb97b2d | 2008-10-13 18:11:54 +0000 | [diff] [blame] | 112 | </div> |
| 113 | |
| 114 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 115 | <h3> |
Duncan Sands | 528a510 | 2011-04-04 11:09:08 +0000 | [diff] [blame] | 116 | <a name="dragonegg">DragonEgg: GCC front-ends, LLVM back-end</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 117 | </h3> |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 118 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 119 | <div> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 120 | <p><a href="http://dragonegg.llvm.org/">DragonEgg</a> is a |
| 121 | <a href="http://gcc.gnu.org/wiki/plugins">gcc plugin</a> that replaces GCC's |
Duncan Sands | 77352c9 | 2011-11-10 18:44:29 +0000 | [diff] [blame] | 122 | optimizers and code generators with LLVM's. It works with gcc-4.5 or gcc-4.6, |
| 123 | targets the x86-32 and x86-64 processor families, and has been successfully |
| 124 | used on the Darwin, FreeBSD, KFreeBSD, Linux and OpenBSD platforms. It fully |
| 125 | supports Ada, C, C++ and Fortran. It has partial support for Go, Java, Obj-C |
| 126 | and Obj-C++.</p> |
Duncan Sands | 749fd83 | 2010-04-02 09:23:15 +0000 | [diff] [blame] | 127 | |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 128 | <p>The 3.1 release has the following notable changes:</p> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 129 | |
Chris Lattner | 1ab8ce9 | 2011-11-27 18:47:37 +0000 | [diff] [blame] | 130 | <ul> |
Duncan Sands | 77352c9 | 2011-11-10 18:44:29 +0000 | [diff] [blame] | 131 | |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 132 | <li>...</li> |
Duncan Sands | 77352c9 | 2011-11-10 18:44:29 +0000 | [diff] [blame] | 133 | |
Duncan Sands | 4b1da2b | 2010-09-30 17:37:34 +0000 | [diff] [blame] | 134 | </ul> |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 135 | |
| 136 | </div> |
| 137 | |
Chris Lattner | 7554771 | 2010-10-03 23:49:06 +0000 | [diff] [blame] | 138 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 139 | <h3> |
Chris Lattner | 7554771 | 2010-10-03 23:49:06 +0000 | [diff] [blame] | 140 | <a name="compiler-rt">compiler-rt: Compiler Runtime Library</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 141 | </h3> |
Chris Lattner | 7554771 | 2010-10-03 23:49:06 +0000 | [diff] [blame] | 142 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 143 | <div> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 144 | |
| 145 | <p>The new LLVM <a href="http://compiler-rt.llvm.org/">compiler-rt project</a> |
| 146 | is a simple library that provides an implementation of the low-level |
| 147 | target-specific hooks required by code generation and other runtime |
| 148 | components. For example, when compiling for a 32-bit target, converting a |
| 149 | double to a 64-bit unsigned integer is compiled into a runtime call to the |
| 150 | "__fixunsdfdi" function. The compiler-rt library provides highly optimized |
| 151 | implementations of this and other low-level routines (some are 3x faster than |
| 152 | the equivalent libgcc routines).</p> |
Chris Lattner | 7554771 | 2010-10-03 23:49:06 +0000 | [diff] [blame] | 153 | |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 154 | <p>....</p> |
Chris Lattner | 7554771 | 2010-10-03 23:49:06 +0000 | [diff] [blame] | 155 | |
| 156 | </div> |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 157 | |
| 158 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 159 | <h3> |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 160 | <a name="lldb">LLDB: Low Level Debugger</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 161 | </h3> |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 162 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 163 | <div> |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 164 | |
Chris Lattner | 9e89671 | 2011-11-27 18:53:41 +0000 | [diff] [blame] | 165 | <p>LLDB is a ground-up implementation of a command line debugger, as well as a |
| 166 | debugger API that can be used from other applications. LLDB makes use of the |
| 167 | Clang parser to provide high-fidelity expression parsing (particularly for |
| 168 | C++) and uses the LLVM JIT for target support.</p> |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 169 | |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 170 | <p>...</p> |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 171 | |
| 172 | </div> |
| 173 | |
| 174 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 175 | <h3> |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 176 | <a name="libc++">libc++: C++ Standard Library</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 177 | </h3> |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 178 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 179 | <div> |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 180 | |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 181 | <p>Like compiler_rt, libc++ is now <a href="DeveloperPolicy.html#license">dual |
| 182 | licensed</a> under the MIT and UIUC license, allowing it to be used more |
| 183 | permissively.</p> |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 184 | |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 185 | <p>...</p> |
David Chisnall | 553284e | 2011-11-26 10:56:17 +0000 | [diff] [blame] | 186 | |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 187 | </div> |
| 188 | |
Chris Lattner | 3d6a80a | 2011-04-07 03:08:22 +0000 | [diff] [blame] | 189 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 190 | <h3> |
Chris Lattner | 3d6a80a | 2011-04-07 03:08:22 +0000 | [diff] [blame] | 191 | <a name="vmkit">VMKit</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 192 | </h3> |
Chris Lattner | 3d6a80a | 2011-04-07 03:08:22 +0000 | [diff] [blame] | 193 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 194 | <div> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 195 | |
Nicolas Geoffray | 54d5df9 | 2011-11-10 23:37:56 +0000 | [diff] [blame] | 196 | <p>The <a href="http://vmkit.llvm.org/">VMKit project</a> is an |
| 197 | implementation of a Java Virtual Machine (Java VM or JVM) that uses LLVM for |
| 198 | static and just-in-time compilation. |
| 199 | |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 200 | <p>In the LLVM 3.1 time-frame, VMKit has had significant improvements on both |
Nicolas Geoffray | 54d5df9 | 2011-11-10 23:37:56 +0000 | [diff] [blame] | 201 | runtime and startup performance:</p> |
| 202 | |
| 203 | <ul> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 204 | <li>...</li> |
Nicolas Geoffray | 54d5df9 | 2011-11-10 23:37:56 +0000 | [diff] [blame] | 205 | </ul> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 206 | |
Chris Lattner | 3d6a80a | 2011-04-07 03:08:22 +0000 | [diff] [blame] | 207 | </div> |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 208 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 209 | </div> |
Daniel Dunbar | 97b01a8 | 2010-10-04 17:39:47 +0000 | [diff] [blame] | 210 | |
Chris Lattner | ab68e9e | 2009-02-26 22:33:38 +0000 | [diff] [blame] | 211 | <!-- *********************************************************************** --> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 212 | <h2> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 213 | <a name="externalproj">External Open Source Projects Using LLVM 3.1</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 214 | </h2> |
Chris Lattner | ab68e9e | 2009-02-26 22:33:38 +0000 | [diff] [blame] | 215 | <!-- *********************************************************************** --> |
| 216 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 217 | <div> |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 218 | |
| 219 | <p>An exciting aspect of LLVM is that it is used as an enabling technology for |
| 220 | a lot of other language and tools projects. This section lists some of the |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 221 | projects that have already been updated to work with LLVM 3.1.</p> |
Chris Lattner | 7554771 | 2010-10-03 23:49:06 +0000 | [diff] [blame] | 222 | |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 223 | ... to be filled in right before the release ... |
Bill Wendling | 644ce53 | 2011-10-26 09:25:01 +0000 | [diff] [blame] | 224 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 225 | </div> |
| 226 | |
Chris Lattner | 8348b47 | 2008-06-08 21:58:17 +0000 | [diff] [blame] | 227 | <!-- *********************************************************************** --> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 228 | <h2> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 229 | <a name="whatsnew">What's New in LLVM 3.1?</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 230 | </h2> |
Chris Lattner | 8348b47 | 2008-06-08 21:58:17 +0000 | [diff] [blame] | 231 | <!-- *********************************************************************** --> |
| 232 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 233 | <div> |
Chris Lattner | f8e0b4e | 2008-06-08 22:59:35 +0000 | [diff] [blame] | 234 | |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 235 | <p>This release includes a huge number of bug fixes, performance tweaks and |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 236 | minor improvements. Some of the major improvements and new features are |
| 237 | listed in this section.</p> |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 238 | |
Chris Lattner | 914ce46 | 2010-04-22 06:28:20 +0000 | [diff] [blame] | 239 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 240 | <h3> |
Chris Lattner | 252b83d | 2008-02-06 18:00:06 +0000 | [diff] [blame] | 241 | <a name="majorfeatures">Major New Features</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 242 | </h3> |
Chris Lattner | 252b83d | 2008-02-06 18:00:06 +0000 | [diff] [blame] | 243 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 244 | <div> |
Chris Lattner | 252b83d | 2008-02-06 18:00:06 +0000 | [diff] [blame] | 245 | |
Chris Lattner | 1ab8ce9 | 2011-11-27 18:47:37 +0000 | [diff] [blame] | 246 | <!-- Features that need text if they're finished for 3.1: |
| 247 | ARM EHABI |
| 248 | combiner-aa? |
| 249 | strong phi elim |
| 250 | loop dependence analysis |
| 251 | CorrelatedValuePropagation |
| 252 | lib/Transforms/IPO/MergeFunctions.cpp => consider for 3.1. |
Chris Lattner | 1c80fbf | 2011-11-27 20:51:47 +0000 | [diff] [blame] | 253 | Integrated assembler on by default for arm/thumb? |
| 254 | |
Chris Lattner | 1ab8ce9 | 2011-11-27 18:47:37 +0000 | [diff] [blame] | 255 | --> |
| 256 | |
Chris Lattner | 1c80fbf | 2011-11-27 20:51:47 +0000 | [diff] [blame] | 257 | <!-- Near dead: |
Chris Lattner | dec23b6 | 2011-11-15 22:13:27 +0000 | [diff] [blame] | 258 | Analysis/RegionInfo.h + Dom Frontiers |
| 259 | SparseBitVector: used in LiveVar. |
Chris Lattner | 5a1731d | 2011-11-27 08:32:32 +0000 | [diff] [blame] | 260 | llvm/lib/Archive - replace with lib object? |
Chris Lattner | 1c80fbf | 2011-11-27 20:51:47 +0000 | [diff] [blame] | 261 | --> |
Chris Lattner | 6a007d1 | 2011-11-25 20:33:27 +0000 | [diff] [blame] | 262 | |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 263 | <p>LLVM 3.1 includes several major changes and big features:</p> |
Bill Wendling | bc5f6dd | 2011-10-26 18:33:01 +0000 | [diff] [blame] | 264 | |
Chris Lattner | 791f77b | 2008-06-05 06:25:56 +0000 | [diff] [blame] | 265 | <ul> |
Evan Cheng | 2868186 | 2011-12-14 22:57:45 +0000 | [diff] [blame] | 266 | <li><a href="../tools/clang/docs/AddressSanitizer.html">AddressSanitizer</a>, |
| 267 | a fast memory error detector.</li> |
| 268 | <li><a href="CodeGenerator.html#machineinstrbundle">MachineInstr Bundles</a>, |
| 269 | Support to model instruction bundling / packing.</li> |
Jim Grosbach | 6e6b822 | 2012-02-23 23:52:06 +0000 | [diff] [blame] | 270 | <li><a href="#armintegratedassembler">ARM Integrated Assembler</a>, |
| 271 | A full featured assembler and direct-to-object support for ARM.</li> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 272 | <li>....</li> |
Chris Lattner | f304ffc | 2008-02-10 08:17:19 +0000 | [diff] [blame] | 273 | </ul> |
Mikhail Glushenkov | ea65d7d | 2008-10-13 02:08:34 +0000 | [diff] [blame] | 274 | |
Bill Wendling | bc5f6dd | 2011-10-26 18:33:01 +0000 | [diff] [blame] | 275 | </div> |
| 276 | |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 277 | |
Chris Lattner | 4f0fe43 | 2011-11-27 19:26:30 +0000 | [diff] [blame] | 278 | <!--=========================================================================--> |
| 279 | <h3> |
| 280 | <a name="coreimprovements">LLVM IR and Core Improvements</a> |
| 281 | </h3> |
| 282 | |
| 283 | <div> |
| 284 | |
| 285 | <p>LLVM IR has several new features for better support of new targets and that |
| 286 | expose new optimization opportunities:</p> |
| 287 | |
Chris Lattner | 064caf9 | 2011-11-27 21:30:28 +0000 | [diff] [blame] | 288 | <ul> |
Dan Gohman | eb4c70b | 2011-12-20 01:10:56 +0000 | [diff] [blame] | 289 | <li>IR support for half float</li> |
Bill Wendling | 06d7e1b | 2012-02-06 21:59:44 +0000 | [diff] [blame] | 290 | <li>IR support for vectors of pointers, including vector GEPs.</li> |
Bill Wendling | 190ec9b | 2012-02-16 10:23:43 +0000 | [diff] [blame] | 291 | <li>Module flags have been introduced. They convey information about the |
| 292 | module as a whole to LLVM subsystems.</li> |
Rafael Espindola | 626c346 | 2012-03-25 11:14:35 +0000 | [diff] [blame] | 293 | <li>Loads can now have range metadata attached to them to describe the |
Rafael Espindola | 692cd45 | 2012-03-24 19:02:32 +0000 | [diff] [blame] | 294 | possible values being loaded.</li> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 295 | <li>....</li> |
Chris Lattner | 064caf9 | 2011-11-27 21:30:28 +0000 | [diff] [blame] | 296 | </ul> |
Andrew Trick | 5aab638 | 2011-11-06 17:59:24 +0000 | [diff] [blame] | 297 | </div> |
| 298 | |
| 299 | <!--=========================================================================--> |
| 300 | <h3> |
Chris Lattner | acce85d | 2008-02-10 07:46:44 +0000 | [diff] [blame] | 301 | <a name="optimizer">Optimizer Improvements</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 302 | </h3> |
Chris Lattner | acce85d | 2008-02-10 07:46:44 +0000 | [diff] [blame] | 303 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 304 | <div> |
Chris Lattner | acce85d | 2008-02-10 07:46:44 +0000 | [diff] [blame] | 305 | |
Chris Lattner | 064caf9 | 2011-11-27 21:30:28 +0000 | [diff] [blame] | 306 | <p>In addition to many minor performance tweaks and bug fixes, this |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 307 | release includes a few major enhancements and additions to the |
| 308 | optimizers:</p> |
Chris Lattner | acce85d | 2008-02-10 07:46:44 +0000 | [diff] [blame] | 309 | |
| 310 | <ul> |
Brendon Cahoon | ff73039 | 2012-04-14 16:54:12 +0000 | [diff] [blame] | 311 | <li>The loop unroll pass now is able to unroll loops with run-time trip counts. |
| 312 | This feature is turned off by default, and is enabled with the |
| 313 | <code>-unroll-runtime</code> flag.</li> |
Hal Finkel | 9068bf5 | 2012-04-16 03:49:43 +0000 | [diff] [blame] | 314 | <li>A new basic-block autovectorization pass is available. Pass |
| 315 | <code>-vectorize</code> to run this pass along with some associated |
| 316 | post-vectorization cleanup passes.</li> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 317 | <li>....</li> |
Chris Lattner | 11b6611 | 2010-10-04 02:42:39 +0000 | [diff] [blame] | 318 | </ul> |
| 319 | |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 320 | </div> |
Chris Lattner | 917cc71 | 2009-03-02 02:37:32 +0000 | [diff] [blame] | 321 | |
Chris Lattner | 0b83220 | 2008-06-08 02:45:07 +0000 | [diff] [blame] | 322 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 323 | <h3> |
Chris Lattner | 4ba2b65 | 2010-09-30 16:31:33 +0000 | [diff] [blame] | 324 | <a name="mc">MC Level Improvements</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 325 | </h3> |
Chris Lattner | 4ba2b65 | 2010-09-30 16:31:33 +0000 | [diff] [blame] | 326 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 327 | <div> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 328 | |
| 329 | <p>The LLVM Machine Code (aka MC) subsystem was created to solve a number of |
| 330 | problems in the realm of assembly, disassembly, object file format handling, |
| 331 | and a number of other related areas that CPU instruction-set level tools work |
Chris Lattner | 2f20602 | 2011-11-27 22:03:34 +0000 | [diff] [blame] | 332 | in. For more information, please see |
| 333 | the <a href="http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html">Intro |
| 334 | to the LLVM MC Project Blog Post</a>.</p> |
Chris Lattner | 7d9b6b4 | 2010-10-02 21:59:30 +0000 | [diff] [blame] | 335 | |
Chris Lattner | 7d9b6b4 | 2010-10-02 21:59:30 +0000 | [diff] [blame] | 336 | <ul> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 337 | <li>....</li> |
Chris Lattner | 7d9b6b4 | 2010-10-02 21:59:30 +0000 | [diff] [blame] | 338 | </ul> |
| 339 | |
NAKAMURA Takumi | 45c435a | 2011-04-05 08:24:22 +0000 | [diff] [blame] | 340 | </div> |
Chris Lattner | 4ba2b65 | 2010-09-30 16:31:33 +0000 | [diff] [blame] | 341 | |
Chris Lattner | 4ba2b65 | 2010-09-30 16:31:33 +0000 | [diff] [blame] | 342 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 343 | <h3> |
Chris Lattner | 511433e | 2009-03-02 03:24:11 +0000 | [diff] [blame] | 344 | <a name="codegen">Target Independent Code Generator Improvements</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 345 | </h3> |
Chris Lattner | 0b83220 | 2008-06-08 02:45:07 +0000 | [diff] [blame] | 346 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 347 | <div> |
Chris Lattner | 0b83220 | 2008-06-08 02:45:07 +0000 | [diff] [blame] | 348 | |
Bill Wendling | 190ec9b | 2012-02-16 10:23:43 +0000 | [diff] [blame] | 349 | <p>We have changed the way that the Type Legalizer legalizes vectors. The type |
| 350 | legalizer now attempts to promote integer elements. This enabled the |
| 351 | implementation of vector-select. Additionally, we see a performance boost on |
| 352 | workloads which use vectors of chars and shorts, since they are now promoted |
| 353 | to 32-bit types, which are better supported by the SIMD instruction set. |
| 354 | Floating point types are still widened as before.</p> |
Nadav Rotem | 7559766 | 2011-12-20 08:02:50 +0000 | [diff] [blame] | 355 | |
| 356 | |
Mikhail Glushenkov | f795ef0 | 2009-03-01 18:09:47 +0000 | [diff] [blame] | 357 | <p>We have put a significant amount of work into the code generator |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 358 | infrastructure, which allows us to implement more aggressive algorithms and |
| 359 | make it run faster:</p> |
Chris Lattner | 0b83220 | 2008-06-08 02:45:07 +0000 | [diff] [blame] | 360 | |
| 361 | <ul> |
Jakob Stoklund Olesen | 9897c62 | 2011-12-19 16:53:40 +0000 | [diff] [blame] | 362 | <li>TableGen can now synthesize register classes that are only needed to |
Bill Wendling | 190ec9b | 2012-02-16 10:23:43 +0000 | [diff] [blame] | 363 | represent combinations of constraints from instructions and sub-registers. |
| 364 | The synthetic register classes inherit most of their properties form their |
| 365 | closest user-defined super-class.</li> |
Jakob Stoklund Olesen | d9e5c76 | 2012-01-05 00:26:49 +0000 | [diff] [blame] | 366 | <li><code>MachineRegisterInfo</code> now allows the reserved registers to be |
Bill Wendling | 190ec9b | 2012-02-16 10:23:43 +0000 | [diff] [blame] | 367 | frozen when register allocation starts. Target hooks should use the |
Nadav Rotem | fdc309c | 2012-02-26 08:35:53 +0000 | [diff] [blame] | 368 | <code>MRI->canReserveReg(FramePtr)</code> method to avoid accidentally |
Bill Wendling | 190ec9b | 2012-02-16 10:23:43 +0000 | [diff] [blame] | 369 | disabling frame pointer elimination during register allocation.</li> |
Jakob Stoklund Olesen | 7739cad | 2012-01-16 19:22:00 +0000 | [diff] [blame] | 370 | <li>A new kind of <code>MachineOperand</code> provides a compact |
Bill Wendling | 190ec9b | 2012-02-16 10:23:43 +0000 | [diff] [blame] | 371 | representation of large clobber lists on call instructions. The register |
| 372 | mask operand references a bit mask of preserved registers. Everything else |
| 373 | is clobbered.</li> |
Chris Lattner | 8497764 | 2007-09-21 03:54:09 +0000 | [diff] [blame] | 374 | </ul> |
Bill Wendling | 190ec9b | 2012-02-16 10:23:43 +0000 | [diff] [blame] | 375 | |
Anshuman Dasgupta | 4b47955 | 2012-04-12 15:17:35 +0000 | [diff] [blame] | 376 | <p> We added new TableGen infrastructure to support bundling for |
| 377 | Very Long Instruction Word (VLIW) architectures. TableGen can now |
| 378 | automatically generate a deterministic finite automaton from a VLIW |
| 379 | target's schedule description which can be queried to determine |
| 380 | legal groupings of instructions in a bundle.</p> |
| 381 | |
Anshuman Dasgupta | 3c1ded2 | 2012-04-14 20:59:13 +0000 | [diff] [blame] | 382 | <p> We have added a new target independent VLIW packetizer based on the |
Anshuman Dasgupta | cff391a | 2012-04-14 20:57:13 +0000 | [diff] [blame] | 383 | DFA infrastructure to group machine instructions into bundles.</p> |
| 384 | |
Chris Lattner | 8497764 | 2007-09-21 03:54:09 +0000 | [diff] [blame] | 385 | </div> |
| 386 | |
Chris Lattner | 917cc71 | 2009-03-02 02:37:32 +0000 | [diff] [blame] | 387 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 388 | <h3> |
Chris Lattner | 917cc71 | 2009-03-02 02:37:32 +0000 | [diff] [blame] | 389 | <a name="x86">X86-32 and X86-64 Target Improvements</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 390 | </h3> |
Chris Lattner | 917cc71 | 2009-03-02 02:37:32 +0000 | [diff] [blame] | 391 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 392 | <div> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 393 | |
| 394 | <p>New features and major changes in the X86 target include:</p> |
Chris Lattner | 917cc71 | 2009-03-02 02:37:32 +0000 | [diff] [blame] | 395 | |
| 396 | <ul> |
Nadav Rotem | 7559766 | 2011-12-20 08:02:50 +0000 | [diff] [blame] | 397 | <li>Bug fixes and improved support for AVX1</li> |
| 398 | <li>Support for AVX2 (still incomplete at this point)</li> |
Jakob Stoklund Olesen | 2624661 | 2012-02-16 18:22:39 +0000 | [diff] [blame] | 399 | <li>Call instructions use the new register mask operands for faster compile |
| 400 | times and better support for different calling conventions. The old WINCALL |
| 401 | instructions are no longer needed.</li> |
NAKAMURA Takumi | 847307a | 2012-04-07 02:24:20 +0000 | [diff] [blame] | 402 | <li>DW2 Exception Handling is enabled on Cygwin and MinGW.</li> |
Bill Wendling | 59fc166 | 2012-04-16 05:24:52 +0000 | [diff] [blame] | 403 | <li>Support for implicit TLS model used with MS VC runtime</li> |
Chris Lattner | 917cc71 | 2009-03-02 02:37:32 +0000 | [diff] [blame] | 404 | </ul> |
| 405 | |
Chris Lattner | 917cc71 | 2009-03-02 02:37:32 +0000 | [diff] [blame] | 406 | </div> |
Chris Lattner | 8497764 | 2007-09-21 03:54:09 +0000 | [diff] [blame] | 407 | |
| 408 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 409 | <h3> |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 410 | <a name="ARM">ARM Target Improvements</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 411 | </h3> |
Chris Lattner | c441fb8 | 2009-03-01 02:30:21 +0000 | [diff] [blame] | 412 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 413 | <div> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 414 | |
| 415 | <p>New features of the ARM target include:</p> |
Chris Lattner | c441fb8 | 2009-03-01 02:30:21 +0000 | [diff] [blame] | 416 | |
| 417 | <ul> |
Jakob Stoklund Olesen | f5bb45f | 2011-12-16 16:07:41 +0000 | [diff] [blame] | 418 | <li>The constant island pass now supports basic block and constant pool entry |
Jim Grosbach | 6e6b822 | 2012-02-23 23:52:06 +0000 | [diff] [blame] | 419 | alignments greater than 4 bytes.</li> |
| 420 | <li>On Darwin, the ARM target now has a full-featured integrated assembler. |
| 421 | </li> |
| 422 | </ul> |
Chris Lattner | 7b95c38 | 2011-11-15 22:23:46 +0000 | [diff] [blame] | 423 | |
Jim Grosbach | 6e6b822 | 2012-02-23 23:52:06 +0000 | [diff] [blame] | 424 | <h4> |
| 425 | <a name="armintegratedassembler">ARM Integrated Assembler</a> |
| 426 | </h4> |
| 427 | <div> |
| 428 | <p>The ARM target now includes a full featured macro assembler, including |
| 429 | direct-to-object module support for clang. The assembler is currently enabled |
| 430 | by default for Darwin only pending testing and any additional necessary |
| 431 | platform specific support for Linux.</p> |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 432 | |
Jim Grosbach | 6e6b822 | 2012-02-23 23:52:06 +0000 | [diff] [blame] | 433 | <p>Full support is included for Thumb1, Thumb2 and ARM modes, along with |
| 434 | subtarget and CPU specific extensions for VFP2, VFP3 and NEON.</p> |
| 435 | |
| 436 | <p>The assembler is Unified Syntax only (see ARM Architecural Reference Manual |
| 437 | for details). While there is some, and growing, support for pre-unfied (divided) |
| 438 | syntax, there are still significant gaps in that support.</p> |
| 439 | </div> |
NAKAMURA Takumi | 9c55f59 | 2012-03-27 11:25:16 +0000 | [diff] [blame] | 440 | |
| 441 | </div> |
Chris Lattner | 1efe27e | 2011-04-06 00:45:11 +0000 | [diff] [blame] | 442 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 443 | <h3> |
Akira Hatanaka | 5381cbf | 2011-11-15 21:33:05 +0000 | [diff] [blame] | 444 | <a name="MIPS">MIPS Target Improvements</a> |
| 445 | </h3> |
| 446 | |
| 447 | <div> |
| 448 | |
Chris Lattner | 1cc489b | 2011-11-27 22:12:32 +0000 | [diff] [blame] | 449 | <p>This release has seen major new work on just about every aspect of the MIPS |
| 450 | backend. Some of the major new features include:</p> |
Akira Hatanaka | 5381cbf | 2011-11-15 21:33:05 +0000 | [diff] [blame] | 451 | |
| 452 | <ul> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 453 | <li>....</li> |
Akira Hatanaka | 5381cbf | 2011-11-15 21:33:05 +0000 | [diff] [blame] | 454 | </ul> |
| 455 | </div> |
Chris Lattner | 7b95c38 | 2011-11-15 22:23:46 +0000 | [diff] [blame] | 456 | |
| 457 | <!--=========================================================================--> |
| 458 | <h3> |
Chris Lattner | 1efe27e | 2011-04-06 00:45:11 +0000 | [diff] [blame] | 459 | <a name="OtherTS">Other Target Specific Improvements</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 460 | </h3> |
Chris Lattner | c441fb8 | 2009-03-01 02:30:21 +0000 | [diff] [blame] | 461 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 462 | <div> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 463 | |
Tony Linthicum | e05e55d | 2012-04-13 19:09:44 +0000 | [diff] [blame] | 464 | <p>Support for Qualcomm's Hexagon VLIW processor has been added.</p> |
| 465 | |
Chris Lattner | 1efe27e | 2011-04-06 00:45:11 +0000 | [diff] [blame] | 466 | <ul> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 467 | <li>....</li> |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 468 | |
Chris Lattner | d6cc2c2 | 2011-11-27 22:36:22 +0000 | [diff] [blame] | 469 | |
Chris Lattner | 1efe27e | 2011-04-06 00:45:11 +0000 | [diff] [blame] | 470 | </ul> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 471 | |
Chris Lattner | 1efe27e | 2011-04-06 00:45:11 +0000 | [diff] [blame] | 472 | </div> |
Chris Lattner | 77d29b1 | 2008-06-05 08:02:49 +0000 | [diff] [blame] | 473 | |
| 474 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 475 | <h3> |
Chris Lattner | f6662f9 | 2008-10-13 17:57:36 +0000 | [diff] [blame] | 476 | <a name="changes">Major Changes and Removed Features</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 477 | </h3> |
Chris Lattner | f6662f9 | 2008-10-13 17:57:36 +0000 | [diff] [blame] | 478 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 479 | <div> |
Chris Lattner | f6662f9 | 2008-10-13 17:57:36 +0000 | [diff] [blame] | 480 | |
Bill Wendling | 2626dba | 2011-08-03 22:18:20 +0000 | [diff] [blame] | 481 | <p>If you're already an LLVM user or developer with out-of-tree changes based on |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 482 | LLVM 3.1, this section lists some "gotchas" that you may run into upgrading |
Bill Wendling | 2626dba | 2011-08-03 22:18:20 +0000 | [diff] [blame] | 483 | from the previous release.</p> |
Chris Lattner | f6662f9 | 2008-10-13 17:57:36 +0000 | [diff] [blame] | 484 | |
| 485 | <ul> |
Bill Wendling | 190ec9b | 2012-02-16 10:23:43 +0000 | [diff] [blame] | 486 | <li>LLVM 3.1 removes support for reading LLVM 2.9 bitcode files. Going |
| 487 | forward, we aim for all future versions of LLVM to read bitcode files and |
| 488 | <tt>.ll</tt> files produced by LLVM 3.0 and later.</li> |
| 489 | <li>The <tt>unwind</tt> instruction is now gone. With the introduction of the |
| 490 | new exception handling system in LLVM 3.0, the <tt>unwind</tt> instruction |
| 491 | became obsolete.</li> |
Duncan Sands | 8883c43 | 2012-04-16 16:28:59 +0000 | [diff] [blame^] | 492 | <li>Floating point instructions can be annotated with <tt>fpmath</tt> metadata |
| 493 | to indicate relaxed precision requirements, such as those corresponding to |
| 494 | "fast math".</li> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 495 | <li>....</li> |
Devang Patel | b34dd13 | 2008-10-14 20:03:43 +0000 | [diff] [blame] | 496 | </ul> |
Chris Lattner | f6662f9 | 2008-10-13 17:57:36 +0000 | [diff] [blame] | 497 | |
Chris Lattner | f6662f9 | 2008-10-13 17:57:36 +0000 | [diff] [blame] | 498 | </div> |
| 499 | |
Daniel Dunbar | f0233c6 | 2010-10-04 20:11:41 +0000 | [diff] [blame] | 500 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 501 | <h3> |
Chris Lattner | 1efe27e | 2011-04-06 00:45:11 +0000 | [diff] [blame] | 502 | <a name="api_changes">Internal API Changes</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 503 | </h3> |
Daniel Dunbar | f0233c6 | 2010-10-04 20:11:41 +0000 | [diff] [blame] | 504 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 505 | <div> |
Daniel Dunbar | f0233c6 | 2010-10-04 20:11:41 +0000 | [diff] [blame] | 506 | |
Chris Lattner | 1efe27e | 2011-04-06 00:45:11 +0000 | [diff] [blame] | 507 | <p>In addition, many APIs have changed in this release. Some of the major |
Bill Wendling | 1600525 | 2011-08-02 06:20:17 +0000 | [diff] [blame] | 508 | LLVM API changes are:</p> |
Daniel Dunbar | f0233c6 | 2010-10-04 20:11:41 +0000 | [diff] [blame] | 509 | |
| 510 | <ul> |
Nick Lewycky | 98a92d1 | 2012-03-21 22:58:28 +0000 | [diff] [blame] | 511 | <li>Target specific options have been moved from global variables to members |
| 512 | on the new <code>TargetOptions</code> class, which is local to each |
| 513 | <code>TargetMachine</code>. As a consequence, the associated flags will |
| 514 | no longer be accepted by <tt>clang -mllvm</tt>. This includes: |
| 515 | <ul> |
Nick Lewycky | 8a618a2 | 2012-03-23 00:56:26 +0000 | [diff] [blame] | 516 | <li><code>llvm::PrintMachineCode</code></li> |
| 517 | <li><code>llvm::NoFramePointerElim</code></li> |
| 518 | <li><code>llvm::NoFramePointerElimNonLeaf</code></li> |
| 519 | <li><code>llvm::DisableFramePointerElim(const MachineFunction &)</code></li> |
| 520 | <li><code>llvm::LessPreciseFPMADOption</code></li> |
| 521 | <li><code>llvm::LessPrecideFPMAD()</code></li> |
| 522 | <li><code>llvm::NoExcessFPPrecision</code></li> |
| 523 | <li><code>llvm::UnsafeFPMath</code></li> |
| 524 | <li><code>llvm::NoInfsFPMath</code></li> |
| 525 | <li><code>llvm::NoNaNsFPMath</code></li> |
| 526 | <li><code>llvm::HonorSignDependentRoundingFPMathOption</code></li> |
| 527 | <li><code>llvm::HonorSignDependentRoundingFPMath()</code></li> |
| 528 | <li><code>llvm::UseSoftFloat</code></li> |
| 529 | <li><code>llvm::FloatABIType</code></li> |
| 530 | <li><code>llvm::NoZerosInBSS</code></li> |
| 531 | <li><code>llvm::JITExceptionHandling</code></li> |
| 532 | <li><code>llvm::JITEmitDebugInfo</code></li> |
| 533 | <li><code>llvm::JITEmitDebugInfoToDisk</code></li> |
| 534 | <li><code>llvm::GuaranteedTailCallOpt</code></li> |
| 535 | <li><code>llvm::StackAlignmentOverride</code></li> |
| 536 | <li><code>llvm::RealignStack</code></li> |
| 537 | <li><code>llvm::DisableJumpTables</code></li> |
| 538 | <li><code>llvm::EnableFastISel</code></li> |
| 539 | <li><code>llvm::getTrapFunctionName()</code></li> |
| 540 | <li><code>llvm::EnableSegmentedStacks</code></li> |
Nick Lewycky | 98a92d1 | 2012-03-21 22:58:28 +0000 | [diff] [blame] | 541 | </ul></li> |
Duncan Sands | e747fad | 2012-04-15 18:03:49 +0000 | [diff] [blame] | 542 | <li>The MDBuilder class has been added to simplify the creation of |
| 543 | metadata.</li> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 544 | <li>....</li> |
Daniel Dunbar | f0233c6 | 2010-10-04 20:11:41 +0000 | [diff] [blame] | 545 | </ul> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 546 | |
Daniel Dunbar | f0233c6 | 2010-10-04 20:11:41 +0000 | [diff] [blame] | 547 | </div> |
Chris Lattner | f6662f9 | 2008-10-13 17:57:36 +0000 | [diff] [blame] | 548 | |
Nadav Rotem | fdc309c | 2012-02-26 08:35:53 +0000 | [diff] [blame] | 549 | <!--=========================================================================--> |
| 550 | <h3> |
| 551 | <a name="tools_changes">Tools Changes</a> |
| 552 | </h3> |
| 553 | |
| 554 | <div> |
| 555 | |
| 556 | <p>In addition, some tools have changed in this release. Some of the changes |
| 557 | are:</p> |
| 558 | |
| 559 | |
| 560 | <ul> |
| 561 | <li>llvm-stress is a command line tool for generating random .ll files to fuzz |
| 562 | different LLVM components. </li> |
| 563 | <li>....</li> |
| 564 | </ul> |
| 565 | |
| 566 | <ul> |
| 567 | <li>....</li> |
| 568 | </ul> |
| 569 | |
| 570 | </div> |
| 571 | |
| 572 | </div> |
| 573 | |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 574 | <!-- *********************************************************************** --> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 575 | <h2> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 576 | <a name="knownproblems">Known Problems</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 577 | </h2> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 578 | <!-- *********************************************************************** --> |
| 579 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 580 | <div> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 581 | |
Chris Lattner | 70e2201 | 2011-11-27 19:38:20 +0000 | [diff] [blame] | 582 | <p>LLVM is generally a production quality compiler, and is used by a broad range |
| 583 | of applications and shipping in many products. That said, not every |
| 584 | subsystem is as mature as the aggregate, particularly the more obscure |
| 585 | targets. If you run into a problem, please check the <a |
| 586 | href="http://llvm.org/bugs/">LLVM bug database</a> and submit a bug if |
| 587 | there isn't already one or ask on the <a |
| 588 | href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">LLVMdev |
| 589 | list</a>.</p> |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 590 | |
Chris Lattner | 70e2201 | 2011-11-27 19:38:20 +0000 | [diff] [blame] | 591 | <p>Known problem areas include:</p> |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 592 | |
Chris Lattner | f5ee170 | 2004-03-14 02:03:02 +0000 | [diff] [blame] | 593 | <ul> |
Chris Lattner | 70e2201 | 2011-11-27 19:38:20 +0000 | [diff] [blame] | 594 | <li>The Alpha, Blackfin, CellSPU, MSP430, PTX, SystemZ and |
Chris Lattner | 1c80fbf | 2011-11-27 20:51:47 +0000 | [diff] [blame] | 595 | XCore backends are experimental, and the Alpha, Blackfin and SystemZ |
| 596 | targets have already been removed from mainline.</li> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 597 | |
Chris Lattner | 70e2201 | 2011-11-27 19:38:20 +0000 | [diff] [blame] | 598 | <li>The integrated assembler, disassembler, and JIT is not supported by |
| 599 | several targets. If an integrated assembler is not supported, then a |
| 600 | system assembler is required. For more details, see the <a |
| 601 | href="CodeGenerator.html#targetfeatures">Target Features Matrix</a>. |
| 602 | </li> |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 603 | |
Chris Lattner | 70e2201 | 2011-11-27 19:38:20 +0000 | [diff] [blame] | 604 | <li>The C backend has numerous problems and is not being actively maintained. |
| 605 | Depending on it for anything serious is not advised.</li> |
Chris Lattner | 2629922 | 2006-11-18 07:51:14 +0000 | [diff] [blame] | 606 | </ul> |
| 607 | |
| 608 | </div> |
John Criswell | c0c186d | 2005-11-08 21:11:33 +0000 | [diff] [blame] | 609 | |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 610 | <!-- *********************************************************************** --> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 611 | <h2> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 612 | <a name="additionalinfo">Additional Information</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 613 | </h2> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 614 | <!-- *********************************************************************** --> |
| 615 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 616 | <div> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 617 | |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 618 | <p>A wide variety of additional information is available on |
| 619 | the <a href="http://llvm.org/">LLVM web page</a>, in particular in |
| 620 | the <a href="http://llvm.org/docs/">documentation</a> section. The web page |
| 621 | also contains versions of the API documentation which is up-to-date with the |
| 622 | Subversion version of the source code. You can access versions of these |
| 623 | documents specific to this release by going into the "<tt>llvm/doc/</tt>" |
| 624 | directory in the LLVM tree.</p> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 625 | |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 626 | <p>If you have any questions or comments about LLVM, please feel free to contact |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 627 | us via the <a href="http://llvm.org/docs/#maillist"> mailing lists</a>.</p> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 628 | |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 629 | </div> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 630 | |
| 631 | <!-- *********************************************************************** --> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 632 | |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 633 | <hr> |
Misha Brukman | 2061e89 | 2003-11-22 01:23:39 +0000 | [diff] [blame] | 634 | <address> |
Misha Brukman | 38847d5 | 2003-12-21 22:53:21 +0000 | [diff] [blame] | 635 | <a href="http://jigsaw.w3.org/css-validator/check/referer"><img |
Misha Brukman | 4440870 | 2008-12-11 17:34:48 +0000 | [diff] [blame] | 636 | src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS"></a> |
Misha Brukman | 2061e89 | 2003-11-22 01:23:39 +0000 | [diff] [blame] | 637 | <a href="http://validator.w3.org/check/referer"><img |
Misha Brukman | 4440870 | 2008-12-11 17:34:48 +0000 | [diff] [blame] | 638 | src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a> |
Misha Brukman | 2061e89 | 2003-11-22 01:23:39 +0000 | [diff] [blame] | 639 | |
Chris Lattner | b4b0ce7 | 2007-05-18 00:44:29 +0000 | [diff] [blame] | 640 | <a href="http://llvm.org/">LLVM Compiler Infrastructure</a><br> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 641 | Last modified: $Date$ |
Misha Brukman | 2061e89 | 2003-11-22 01:23:39 +0000 | [diff] [blame] | 642 | </address> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 643 | |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 644 | </body> |
| 645 | </html> |