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"> |
Daniel Dunbar | adea497 | 2012-04-19 20:20:34 +0000 | [diff] [blame] | 6 | <link rel="stylesheet" href="_static/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 |
Bill Wendling | 1fefd09 | 2012-05-14 08:11:53 +0000 | [diff] [blame] | 77 | supporting tools), and the Clang repository. In addition to this code, the |
| 78 | LLVM Project includes other sub-projects that are in development. Here we |
| 79 | 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 | |
Benjamin Kramer | 88c8e69 | 2012-05-13 10:40:08 +0000 | [diff] [blame] | 97 | <p>In the LLVM 3.1 time-frame, the Clang team has made many improvements. |
| 98 | Highlights include:</p> |
Douglas Gregor | ba087df | 2011-10-15 00:48:01 +0000 | [diff] [blame] | 99 | <ul> |
Benjamin Kramer | 88c8e69 | 2012-05-13 10:40:08 +0000 | [diff] [blame] | 100 | <li>Greatly expanded <a href="http://clang.llvm.org/cxx_status.html">C++11 |
| 101 | support</a> including lambdas, initializer lists, constexpr, user-defined |
| 102 | literals, and atomics.</li> |
| 103 | <li>A new <a href="http://clang.llvm.org/docs/Tooling.html">tooling</a> |
| 104 | library to ease building of clang-based standalone tools.</li> |
| 105 | <li>Extended support for |
| 106 | <a href="http://clang.llvm.org/docs/ObjectiveCLiterals.html">literals in |
| 107 | Objective C</a>.</li> |
Douglas Gregor | ba087df | 2011-10-15 00:48:01 +0000 | [diff] [blame] | 108 | </ul> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 109 | |
Bill Wendling | 1fefd09 | 2012-05-14 08:11:53 +0000 | [diff] [blame] | 110 | <p>For more details about the changes to Clang since the 3.0 release, see the |
| 111 | <a href="http://clang.llvm.org/docs/ReleaseNotes.html">Clang release |
| 112 | notes.</a></p> |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 113 | |
Duncan Sands | f3ba7af | 2011-04-06 08:07:40 +0000 | [diff] [blame] | 114 | <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] | 115 | look at the <a href="http://clang.llvm.org/compatibility.html">language |
| 116 | compatibility</a> guide to make sure this is not intentional or a known |
| 117 | issue.</p> |
Bill Wendling | 741748a | 2008-10-27 09:27:33 +0000 | [diff] [blame] | 118 | |
Chris Lattner | fb97b2d | 2008-10-13 18:11:54 +0000 | [diff] [blame] | 119 | </div> |
| 120 | |
| 121 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 122 | <h3> |
Duncan Sands | 528a510 | 2011-04-04 11:09:08 +0000 | [diff] [blame] | 123 | <a name="dragonegg">DragonEgg: GCC front-ends, LLVM back-end</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 124 | </h3> |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 125 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 126 | <div> |
Bill Wendling | 1fefd09 | 2012-05-14 08:11:53 +0000 | [diff] [blame] | 127 | |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 128 | <p><a href="http://dragonegg.llvm.org/">DragonEgg</a> is a |
| 129 | <a href="http://gcc.gnu.org/wiki/plugins">gcc plugin</a> that replaces GCC's |
Duncan Sands | 5abd10a | 2012-05-11 19:59:43 +0000 | [diff] [blame] | 130 | optimizers and code generators with LLVM's. It works with gcc-4.5 and gcc-4.6 |
| 131 | (and partially with gcc-4.7), can target the x86-32/x86-64 and ARM processor |
| 132 | families, and has been successfully used on the Darwin, FreeBSD, KFreeBSD, |
| 133 | Linux and OpenBSD platforms. It fully supports Ada, C, C++ and Fortran. It |
| 134 | has partial support for Go, Java, Obj-C and Obj-C++.</p> |
Duncan Sands | 749fd83 | 2010-04-02 09:23:15 +0000 | [diff] [blame] | 135 | |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 136 | <p>The 3.1 release has the following notable changes:</p> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 137 | |
Bill Wendling | 1fefd09 | 2012-05-14 08:11:53 +0000 | [diff] [blame] | 138 | <ul> |
Duncan Sands | 5abd10a | 2012-05-11 19:59:43 +0000 | [diff] [blame] | 139 | <li>Partial support for gcc-4.7. Ada support is poor, but other languages work |
| 140 | fairly well.</li> |
| 141 | |
| 142 | <li>Support for ARM processors. Some essential gcc headers that are needed to |
| 143 | build DragonEgg for ARM are not installed by gcc. To work around this, |
| 144 | copy the missing headers from the gcc source tree.</li> |
| 145 | |
| 146 | <li>Better optimization for Fortran by exploiting the fact that Fortran scalar |
| 147 | arguments have 'restrict' semantics.</li> |
| 148 | |
| 149 | <li>Better optimization for all languages by passing information about type |
| 150 | aliasing and type ranges to the LLVM optimizers.</li> |
| 151 | |
| 152 | <li>A regression test-suite was added.</li> |
Duncan Sands | 4b1da2b | 2010-09-30 17:37:34 +0000 | [diff] [blame] | 153 | </ul> |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 154 | |
| 155 | </div> |
| 156 | |
Chris Lattner | 7554771 | 2010-10-03 23:49:06 +0000 | [diff] [blame] | 157 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 158 | <h3> |
Chris Lattner | 7554771 | 2010-10-03 23:49:06 +0000 | [diff] [blame] | 159 | <a name="compiler-rt">compiler-rt: Compiler Runtime Library</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 160 | </h3> |
Chris Lattner | 7554771 | 2010-10-03 23:49:06 +0000 | [diff] [blame] | 161 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 162 | <div> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 163 | |
| 164 | <p>The new LLVM <a href="http://compiler-rt.llvm.org/">compiler-rt project</a> |
| 165 | is a simple library that provides an implementation of the low-level |
| 166 | target-specific hooks required by code generation and other runtime |
| 167 | components. For example, when compiling for a 32-bit target, converting a |
| 168 | double to a 64-bit unsigned integer is compiled into a runtime call to the |
| 169 | "__fixunsdfdi" function. The compiler-rt library provides highly optimized |
| 170 | implementations of this and other low-level routines (some are 3x faster than |
| 171 | the equivalent libgcc routines).</p> |
Chris Lattner | 7554771 | 2010-10-03 23:49:06 +0000 | [diff] [blame] | 172 | |
David Chisnall | 6dd3bdb | 2012-05-15 13:06:46 +0000 | [diff] [blame] | 173 | <p>As of 3.1, compiler-rt includes the helper functions for atomic operations, |
| 174 | allowing atomic operations on arbitrary-sized quantities to work. These |
| 175 | functions follow the specification defined by gcc and are used by clang.</p> |
| 176 | |
Chris Lattner | 7554771 | 2010-10-03 23:49:06 +0000 | [diff] [blame] | 177 | </div> |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 178 | |
| 179 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 180 | <h3> |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 181 | <a name="lldb">LLDB: Low Level Debugger</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 182 | </h3> |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 183 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 184 | <div> |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 185 | |
Benjamin Kramer | abe446c | 2012-05-13 10:21:51 +0000 | [diff] [blame] | 186 | <p><a href="http://lldb.llvm.org">LLDB</a> is a ground-up implementation of a |
| 187 | command line debugger, as well as a debugger API that can be used from other |
| 188 | applications. LLDB makes use of the Clang parser to provide high-fidelity |
| 189 | expression parsing (particularly for C++) and uses the LLVM JIT for target |
| 190 | support.</p> |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 191 | |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 192 | </div> |
| 193 | |
| 194 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 195 | <h3> |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 196 | <a name="libc++">libc++: C++ Standard Library</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 197 | </h3> |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 198 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 199 | <div> |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 200 | |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 201 | <p>Like compiler_rt, libc++ is now <a href="DeveloperPolicy.html#license">dual |
| 202 | licensed</a> under the MIT and UIUC license, allowing it to be used more |
| 203 | permissively.</p> |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 204 | |
David Chisnall | 6dd3bdb | 2012-05-15 13:06:46 +0000 | [diff] [blame] | 205 | <p>Within the LLVM 3.1 time-frame there were the following highlights:</p> |
| 206 | |
| 207 | <ul> |
| 208 | <li>The <code><atomic></code> header is now passing all tests, when |
| 209 | compiling with clang and linking against the support code from |
| 210 | compiler-rt.</li> |
| 211 | <li>FreeBSD now includes libc++ as part of the base system.</li> |
| 212 | <li>libc++ has been ported to Solaris and, in combination with libcxxrt and |
| 213 | clang, is working with a large body of existing code.</li> |
| 214 | </ul> |
| 215 | |
Chris Lattner | e07043c | 2010-09-29 05:30:03 +0000 | [diff] [blame] | 216 | </div> |
| 217 | |
Chris Lattner | 3d6a80a | 2011-04-07 03:08:22 +0000 | [diff] [blame] | 218 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 219 | <h3> |
Chris Lattner | 3d6a80a | 2011-04-07 03:08:22 +0000 | [diff] [blame] | 220 | <a name="vmkit">VMKit</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 221 | </h3> |
Chris Lattner | 3d6a80a | 2011-04-07 03:08:22 +0000 | [diff] [blame] | 222 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 223 | <div> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 224 | |
Bill Wendling | 1fefd09 | 2012-05-14 08:11:53 +0000 | [diff] [blame] | 225 | <p>The <a href="http://vmkit.llvm.org/">VMKit project</a> is an implementation |
| 226 | of a Java Virtual Machine (Java VM or JVM) that uses LLVM for static and |
| 227 | just-in-time compilation.</p> |
Nicolas Geoffray | 54d5df9 | 2011-11-10 23:37:56 +0000 | [diff] [blame] | 228 | |
Bill Wendling | 1fefd09 | 2012-05-14 08:11:53 +0000 | [diff] [blame] | 229 | <p>In the LLVM 3.1 time-frame, VMKit has had significant improvements on both |
| 230 | runtime and startup performance.</p> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 231 | |
Chris Lattner | 3d6a80a | 2011-04-07 03:08:22 +0000 | [diff] [blame] | 232 | </div> |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 233 | |
Tobias Grosser | 76213b8 | 2012-04-16 17:17:00 +0000 | [diff] [blame] | 234 | |
| 235 | <!--=========================================================================--> |
| 236 | <h3> |
Tobias Grosser | 99a0b28 | 2012-04-16 17:18:49 +0000 | [diff] [blame] | 237 | <a name="Polly">Polly: Polyhedral Optimizer</a> |
Tobias Grosser | 76213b8 | 2012-04-16 17:17:00 +0000 | [diff] [blame] | 238 | </h3> |
| 239 | |
| 240 | <div> |
| 241 | |
Bill Wendling | 1fefd09 | 2012-05-14 08:11:53 +0000 | [diff] [blame] | 242 | <p><a href="http://polly.llvm.org/">Polly</a> is an <em>experimental</em> |
Tobias Grosser | 76213b8 | 2012-04-16 17:17:00 +0000 | [diff] [blame] | 243 | optimizer for data locality and parallelism. It currently provides high-level |
| 244 | loop optimizations and automatic parallelisation (using the OpenMP run time). |
| 245 | Work in the area of automatic SIMD and accelerator code generation was |
Bill Wendling | 1fefd09 | 2012-05-14 08:11:53 +0000 | [diff] [blame] | 246 | started.</p> |
Tobias Grosser | 76213b8 | 2012-04-16 17:17:00 +0000 | [diff] [blame] | 247 | |
Bill Wendling | 1fefd09 | 2012-05-14 08:11:53 +0000 | [diff] [blame] | 248 | <p>Within the LLVM 3.1 time-frame there were the following highlights:</p> |
Tobias Grosser | 76213b8 | 2012-04-16 17:17:00 +0000 | [diff] [blame] | 249 | |
Bill Wendling | 1fefd09 | 2012-05-14 08:11:53 +0000 | [diff] [blame] | 250 | <ul> |
Tobias Grosser | 76213b8 | 2012-04-16 17:17:00 +0000 | [diff] [blame] | 251 | <li>Polly became an official LLVM project</li> |
Bill Wendling | 1fefd09 | 2012-05-14 08:11:53 +0000 | [diff] [blame] | 252 | <li>Polly can be loaded directly into clang (enabled by '-O3 -mllvm -polly')</li> |
| 253 | <li>An automatic scheduling optimizer (derived |
| 254 | from <a href="http://pluto-compiler.sourceforge.net/">Pluto</a>) was |
| 255 | integrated. It performs loop transformations to optimize for data-locality |
| 256 | and parallelism. The transformations include, but are not limited to |
| 257 | interchange, fusion, fission, skewing and tiling.</li> |
| 258 | </ul> |
Tobias Grosser | 76213b8 | 2012-04-16 17:17:00 +0000 | [diff] [blame] | 259 | |
| 260 | </div> |
| 261 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 262 | </div> |
Daniel Dunbar | 97b01a8 | 2010-10-04 17:39:47 +0000 | [diff] [blame] | 263 | |
Chris Lattner | ab68e9e | 2009-02-26 22:33:38 +0000 | [diff] [blame] | 264 | <!-- *********************************************************************** --> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 265 | <h2> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 266 | <a name="externalproj">External Open Source Projects Using LLVM 3.1</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 267 | </h2> |
Chris Lattner | ab68e9e | 2009-02-26 22:33:38 +0000 | [diff] [blame] | 268 | <!-- *********************************************************************** --> |
| 269 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 270 | <div> |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 271 | |
| 272 | <p>An exciting aspect of LLVM is that it is used as an enabling technology for |
| 273 | 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] | 274 | 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] | 275 | |
Bill Wendling | f8cfe2e | 2012-05-13 09:52:48 +0000 | [diff] [blame] | 276 | <h3>FAUST</h3> |
| 277 | |
| 278 | <div> |
| 279 | |
Benjamin Kramer | abe446c | 2012-05-13 10:21:51 +0000 | [diff] [blame] | 280 | <p><a href="http://faust.grame.fr/">FAUST</a> is a compiled language for |
| 281 | real-time audio signal processing. The name FAUST stands for Functional |
| 282 | AUdio STream. Its programming model combines two approaches: functional |
| 283 | programming and block diagram composition. In addition with the C, C++, Java, |
| 284 | JavaScript output formats, the Faust compiler can generate LLVM bitcode, and |
| 285 | works with LLVM 2.7-3.1.</p> |
Bill Wendling | f8cfe2e | 2012-05-13 09:52:48 +0000 | [diff] [blame] | 286 | |
| 287 | </div> |
| 288 | |
Bill Wendling | de86bea | 2012-05-11 21:42:37 +0000 | [diff] [blame] | 289 | <h3>Glasgow Haskell Compiler (GHC)</h3> |
| 290 | |
| 291 | <div> |
| 292 | |
Benjamin Kramer | abe446c | 2012-05-13 10:21:51 +0000 | [diff] [blame] | 293 | <p><a href="http://www.haskell.org/ghc/">GHC</a> is an open source compiler and |
| 294 | programming suite for Haskell, a lazy functional programming language. It |
| 295 | includes an optimizing static compiler generating good code for a variety of |
| 296 | platforms, together with an interactive system for convenient, quick |
| 297 | development.</p> |
Bill Wendling | de86bea | 2012-05-11 21:42:37 +0000 | [diff] [blame] | 298 | |
| 299 | <p>GHC 7.0 and onwards include an LLVM code generator, supporting LLVM 2.8 and |
| 300 | later.</p> |
| 301 | |
| 302 | </div> |
| 303 | |
Bill Wendling | e9a73bb | 2012-05-14 06:23:51 +0000 | [diff] [blame] | 304 | <h3>Julia</h3> |
| 305 | |
| 306 | <div> |
| 307 | |
| 308 | <p><a href="https://github.com/JuliaLang/julia">Julia</a> is a high-level, |
| 309 | high-performance dynamic language for technical computing. It provides a |
| 310 | sophisticated compiler, distributed parallel execution, numerical accuracy, |
| 311 | and an extensive mathematical function library. The compiler uses type |
| 312 | inference to generate fast code without any type declarations, and uses |
| 313 | LLVM's optimization passes and JIT compiler. The |
| 314 | <a href="http://julialang.org/"> Julia Language</a> is designed |
| 315 | around multiple dispatch, giving programs a large degree of flexibility. It |
| 316 | is ready for use on many kinds of problems.</p> |
| 317 | |
| 318 | </div> |
| 319 | |
Bill Wendling | f2f92ba | 2012-05-13 10:00:58 +0000 | [diff] [blame] | 320 | <h3>LLVM D Compiler</h3> |
| 321 | |
| 322 | <div> |
| 323 | |
| 324 | <p><a href="https://github.com/ldc-developers/ldc">LLVM D Compiler</a> (LDC) is |
| 325 | a compiler for the D programming Language. It is based on the DMD frontend |
| 326 | and uses LLVM as backend.</p> |
| 327 | |
| 328 | </div> |
| 329 | |
Bill Wendling | 9107105 | 2012-05-13 09:55:24 +0000 | [diff] [blame] | 330 | <h3>Open Shading Language</h3> |
| 331 | |
| 332 | <div> |
| 333 | |
Benjamin Kramer | abe446c | 2012-05-13 10:21:51 +0000 | [diff] [blame] | 334 | <p><a href="https://github.com/imageworks/OpenShadingLanguage/">Open Shading |
| 335 | Language (OSL)</a> is a small but rich language for programmable shading in |
| 336 | advanced global illumination renderers and other applications, ideal for |
| 337 | describing materials, lights, displacement, and pattern generation. It uses |
| 338 | LLVM to JIT complex shader networks to x86 code at runtime.</p> |
Bill Wendling | 9107105 | 2012-05-13 09:55:24 +0000 | [diff] [blame] | 339 | |
| 340 | <p>OSL was developed by Sony Pictures Imageworks for use in its in-house |
| 341 | renderer used for feature film animation and visual effects, and is |
Benjamin Kramer | abe446c | 2012-05-13 10:21:51 +0000 | [diff] [blame] | 342 | distributed as open source software with the "New BSD" license.</p> |
Bill Wendling | 9107105 | 2012-05-13 09:55:24 +0000 | [diff] [blame] | 343 | |
| 344 | </div> |
| 345 | |
Bill Wendling | 59a23e3 | 2012-05-13 09:59:27 +0000 | [diff] [blame] | 346 | <h3>Portable OpenCL (pocl)</h3> |
| 347 | |
| 348 | <div> |
| 349 | |
| 350 | <p>In addition to producing an easily portable open source OpenCL |
Benjamin Kramer | abe446c | 2012-05-13 10:21:51 +0000 | [diff] [blame] | 351 | implementation, another major goal of <a href="http://pocl.sourceforge.net/"> |
| 352 | pocl</a> is improving performance portability of OpenCL programs with |
| 353 | compiler optimizations, reducing the need for target-dependent manual |
| 354 | optimizations. An important part of pocl is a set of LLVM passes used to |
| 355 | statically parallelize multiple work-items with the kernel compiler, even in |
| 356 | the presence of work-group barriers. This enables static parallelization of |
| 357 | the fine-grained static concurrency in the work groups in multiple ways |
| 358 | (SIMD, VLIW, superscalar,...).</p> |
Bill Wendling | 59a23e3 | 2012-05-13 09:59:27 +0000 | [diff] [blame] | 359 | |
| 360 | </div> |
| 361 | |
Bill Wendling | de86bea | 2012-05-11 21:42:37 +0000 | [diff] [blame] | 362 | <h3>Pure</h3> |
| 363 | |
| 364 | <div> |
| 365 | |
Bill Wendling | 015d2ad | 2012-05-11 22:38:33 +0000 | [diff] [blame] | 366 | <p><a href="http://pure-lang.googlecode.com/">Pure</a> is an |
| 367 | algebraic/functional programming language based on term rewriting. Programs |
| 368 | are collections of equations which are used to evaluate expressions in a |
| 369 | symbolic fashion. The interpreter uses LLVM as a backend to JIT-compile Pure |
| 370 | programs to fast native code. Pure offers dynamic typing, eager and lazy |
| 371 | evaluation, lexical closures, a hygienic macro system (also based on term |
| 372 | rewriting), built-in list and matrix support (including list and matrix |
| 373 | comprehensions) and an easy-to-use interface to C and other programming |
| 374 | languages (including the ability to load LLVM bitcode modules, and inline C, |
| 375 | C++, Fortran and Faust code in Pure programs if the corresponding |
| 376 | LLVM-enabled compilers are installed).</p> |
Bill Wendling | de86bea | 2012-05-11 21:42:37 +0000 | [diff] [blame] | 377 | |
| 378 | <p>Pure version 0.54 has been tested and is known to work with LLVM 3.1 (and |
| 379 | continues to work with older LLVM releases >= 2.5).</p> |
| 380 | |
| 381 | </div> |
Bill Wendling | 644ce53 | 2011-10-26 09:25:01 +0000 | [diff] [blame] | 382 | |
Bill Wendling | 59a23e3 | 2012-05-13 09:59:27 +0000 | [diff] [blame] | 383 | <h3>TTA-based Co-design Environment (TCE)</h3> |
| 384 | |
| 385 | <div> |
| 386 | |
Benjamin Kramer | abe446c | 2012-05-13 10:21:51 +0000 | [diff] [blame] | 387 | <p><a href="http://tce.cs.tut.fi/">TCE</a> is a toolset for designing |
| 388 | application-specific processors (ASP) based on the Transport triggered |
| 389 | architecture (TTA). The toolset provides a complete co-design flow from C/C++ |
| 390 | programs down to synthesizable VHDL/Verilog and parallel program binaries. |
| 391 | Processor customization points include the register files, function units, |
| 392 | supported operations, and the interconnection network.</p> |
Bill Wendling | 59a23e3 | 2012-05-13 09:59:27 +0000 | [diff] [blame] | 393 | |
| 394 | <p>TCE uses Clang and LLVM for C/C++ language support, target independent |
| 395 | optimizations and also for parts of code generation. It generates new |
| 396 | LLVM-based code generators "on the fly" for the designed TTA processors and |
| 397 | loads them in to the compiler backend as runtime libraries to avoid |
| 398 | per-target recompilation of larger parts of the compiler chain.</p> |
| 399 | |
| 400 | </div> |
| 401 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 402 | </div> |
| 403 | |
Chris Lattner | 8348b47 | 2008-06-08 21:58:17 +0000 | [diff] [blame] | 404 | <!-- *********************************************************************** --> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 405 | <h2> |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 406 | <a name="whatsnew">What's New in LLVM 3.1?</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 407 | </h2> |
Chris Lattner | 8348b47 | 2008-06-08 21:58:17 +0000 | [diff] [blame] | 408 | <!-- *********************************************************************** --> |
| 409 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 410 | <div> |
Chris Lattner | f8e0b4e | 2008-06-08 22:59:35 +0000 | [diff] [blame] | 411 | |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 412 | <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] | 413 | minor improvements. Some of the major improvements and new features are |
| 414 | listed in this section.</p> |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 415 | |
Chris Lattner | 914ce46 | 2010-04-22 06:28:20 +0000 | [diff] [blame] | 416 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 417 | <h3> |
Chris Lattner | 252b83d | 2008-02-06 18:00:06 +0000 | [diff] [blame] | 418 | <a name="majorfeatures">Major New Features</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 419 | </h3> |
Chris Lattner | 252b83d | 2008-02-06 18:00:06 +0000 | [diff] [blame] | 420 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 421 | <div> |
Chris Lattner | 252b83d | 2008-02-06 18:00:06 +0000 | [diff] [blame] | 422 | |
Chris Lattner | 1ab8ce9 | 2011-11-27 18:47:37 +0000 | [diff] [blame] | 423 | <!-- Features that need text if they're finished for 3.1: |
| 424 | ARM EHABI |
| 425 | combiner-aa? |
| 426 | strong phi elim |
| 427 | loop dependence analysis |
| 428 | CorrelatedValuePropagation |
| 429 | lib/Transforms/IPO/MergeFunctions.cpp => consider for 3.1. |
Chris Lattner | 1c80fbf | 2011-11-27 20:51:47 +0000 | [diff] [blame] | 430 | Integrated assembler on by default for arm/thumb? |
| 431 | |
Chris Lattner | 1ab8ce9 | 2011-11-27 18:47:37 +0000 | [diff] [blame] | 432 | --> |
| 433 | |
Chris Lattner | 1c80fbf | 2011-11-27 20:51:47 +0000 | [diff] [blame] | 434 | <!-- Near dead: |
Chris Lattner | dec23b6 | 2011-11-15 22:13:27 +0000 | [diff] [blame] | 435 | Analysis/RegionInfo.h + Dom Frontiers |
| 436 | SparseBitVector: used in LiveVar. |
Chris Lattner | 5a1731d | 2011-11-27 08:32:32 +0000 | [diff] [blame] | 437 | llvm/lib/Archive - replace with lib object? |
Chris Lattner | 1c80fbf | 2011-11-27 20:51:47 +0000 | [diff] [blame] | 438 | --> |
Chris Lattner | 6a007d1 | 2011-11-25 20:33:27 +0000 | [diff] [blame] | 439 | |
Chris Lattner | 21e1b7a | 2011-12-13 17:55:30 +0000 | [diff] [blame] | 440 | <p>LLVM 3.1 includes several major changes and big features:</p> |
Bill Wendling | bc5f6dd | 2011-10-26 18:33:01 +0000 | [diff] [blame] | 441 | |
Chris Lattner | 791f77b | 2008-06-05 06:25:56 +0000 | [diff] [blame] | 442 | <ul> |
Evan Cheng | 2868186 | 2011-12-14 22:57:45 +0000 | [diff] [blame] | 443 | <li><a href="../tools/clang/docs/AddressSanitizer.html">AddressSanitizer</a>, |
| 444 | a fast memory error detector.</li> |
| 445 | <li><a href="CodeGenerator.html#machineinstrbundle">MachineInstr Bundles</a>, |
| 446 | Support to model instruction bundling / packing.</li> |
Jim Grosbach | 6e6b822 | 2012-02-23 23:52:06 +0000 | [diff] [blame] | 447 | <li><a href="#armintegratedassembler">ARM Integrated Assembler</a>, |
| 448 | A full featured assembler and direct-to-object support for ARM.</li> |
Chandler Carruth | 268fde4 | 2012-04-17 01:10:35 +0000 | [diff] [blame] | 449 | <li><a href="#blockplacement">Basic Block Placement</a> |
| 450 | Probability driven basic block placement.</li> |
Chris Lattner | f304ffc | 2008-02-10 08:17:19 +0000 | [diff] [blame] | 451 | </ul> |
Mikhail Glushenkov | ea65d7d | 2008-10-13 02:08:34 +0000 | [diff] [blame] | 452 | |
Bill Wendling | bc5f6dd | 2011-10-26 18:33:01 +0000 | [diff] [blame] | 453 | </div> |
| 454 | |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 455 | |
Chris Lattner | 4f0fe43 | 2011-11-27 19:26:30 +0000 | [diff] [blame] | 456 | <!--=========================================================================--> |
| 457 | <h3> |
| 458 | <a name="coreimprovements">LLVM IR and Core Improvements</a> |
| 459 | </h3> |
| 460 | |
| 461 | <div> |
| 462 | |
| 463 | <p>LLVM IR has several new features for better support of new targets and that |
| 464 | expose new optimization opportunities:</p> |
| 465 | |
Bill Wendling | 1fefd09 | 2012-05-14 08:11:53 +0000 | [diff] [blame] | 466 | <ul> |
| 467 | <li>A new type representing 16 bit <i>half</i> floating point values has |
| 468 | been added.</li> |
| 469 | <li>IR now supports vectors of pointers, including vector GEPs.</li> |
| 470 | <li>Module flags have been introduced. They convey information about the |
| 471 | module as a whole to LLVM subsystems. This is currently used to encode |
| 472 | Objective C ABI information.</li> |
| 473 | <li>Loads can now have range metadata attached to them to describe the |
| 474 | possible values being loaded.</li> |
| 475 | <li>The <tt>llvm.ctlz</tt> and <tt>llvm.cttz</tt> intrinsics now have an |
| 476 | additional argument which indicates whether the behavior of the intrinsic |
| 477 | is undefined on a zero input. This can be used to generate more efficient |
| 478 | code on platforms that only have instructions which don't return the type |
| 479 | size when counting bits in 0.</li> |
| 480 | </ul> |
| 481 | |
Andrew Trick | 5aab638 | 2011-11-06 17:59:24 +0000 | [diff] [blame] | 482 | </div> |
| 483 | |
| 484 | <!--=========================================================================--> |
| 485 | <h3> |
Chris Lattner | acce85d | 2008-02-10 07:46:44 +0000 | [diff] [blame] | 486 | <a name="optimizer">Optimizer Improvements</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 487 | </h3> |
Chris Lattner | acce85d | 2008-02-10 07:46:44 +0000 | [diff] [blame] | 488 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 489 | <div> |
Chris Lattner | acce85d | 2008-02-10 07:46:44 +0000 | [diff] [blame] | 490 | |
Chris Lattner | 064caf9 | 2011-11-27 21:30:28 +0000 | [diff] [blame] | 491 | <p>In addition to many minor performance tweaks and bug fixes, this |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 492 | release includes a few major enhancements and additions to the |
| 493 | optimizers:</p> |
Chris Lattner | acce85d | 2008-02-10 07:46:44 +0000 | [diff] [blame] | 494 | |
| 495 | <ul> |
Brendon Cahoon | ff73039 | 2012-04-14 16:54:12 +0000 | [diff] [blame] | 496 | <li>The loop unroll pass now is able to unroll loops with run-time trip counts. |
| 497 | This feature is turned off by default, and is enabled with the |
| 498 | <code>-unroll-runtime</code> flag.</li> |
Hal Finkel | 9068bf5 | 2012-04-16 03:49:43 +0000 | [diff] [blame] | 499 | <li>A new basic-block autovectorization pass is available. Pass |
| 500 | <code>-vectorize</code> to run this pass along with some associated |
Hal Finkel | 12c10b3 | 2012-04-16 17:06:49 +0000 | [diff] [blame] | 501 | post-vectorization cleanup passes. For more information, see the EuroLLVM |
| 502 | 2012 slides: <a href="http://llvm.org/devmtg/2012-04-12/Slides/Hal_Finkel.pdf"> |
| 503 | Autovectorization with LLVM</a>.</li> |
Benjamin Kramer | f26b415 | 2012-05-13 12:01:16 +0000 | [diff] [blame] | 504 | <li>Inline cost heuristics have been completely overhauled and now closely |
| 505 | model constant propagation through call sites, disregard trivially dead |
| 506 | code costs, and can model C++ STL iterator patterns.</li> |
Chris Lattner | 11b6611 | 2010-10-04 02:42:39 +0000 | [diff] [blame] | 507 | </ul> |
| 508 | |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 509 | </div> |
Chris Lattner | 917cc71 | 2009-03-02 02:37:32 +0000 | [diff] [blame] | 510 | |
Chris Lattner | 0b83220 | 2008-06-08 02:45:07 +0000 | [diff] [blame] | 511 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 512 | <h3> |
Chris Lattner | 4ba2b65 | 2010-09-30 16:31:33 +0000 | [diff] [blame] | 513 | <a name="mc">MC Level Improvements</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 514 | </h3> |
Chris Lattner | 4ba2b65 | 2010-09-30 16:31:33 +0000 | [diff] [blame] | 515 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 516 | <div> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 517 | |
| 518 | <p>The LLVM Machine Code (aka MC) subsystem was created to solve a number of |
| 519 | problems in the realm of assembly, disassembly, object file format handling, |
| 520 | 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] | 521 | in. For more information, please see |
| 522 | the <a href="http://blog.llvm.org/2010/04/intro-to-llvm-mc-project.html">Intro |
| 523 | to the LLVM MC Project Blog Post</a>.</p> |
Chris Lattner | 7d9b6b4 | 2010-10-02 21:59:30 +0000 | [diff] [blame] | 524 | |
Chris Lattner | 7d9b6b4 | 2010-10-02 21:59:30 +0000 | [diff] [blame] | 525 | <ul> |
Benjamin Kramer | f26b415 | 2012-05-13 12:01:16 +0000 | [diff] [blame] | 526 | <li>The integrated assembler can optionally emit debug information when |
| 527 | assembling a </tt>.s</tt> file. It can be enabled by passing the |
| 528 | <tt>-g</tt> option to <tt>llvm-mc</tt>.</li> |
Chris Lattner | 7d9b6b4 | 2010-10-02 21:59:30 +0000 | [diff] [blame] | 529 | </ul> |
| 530 | |
NAKAMURA Takumi | 45c435a | 2011-04-05 08:24:22 +0000 | [diff] [blame] | 531 | </div> |
Chris Lattner | 4ba2b65 | 2010-09-30 16:31:33 +0000 | [diff] [blame] | 532 | |
Chris Lattner | 4ba2b65 | 2010-09-30 16:31:33 +0000 | [diff] [blame] | 533 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 534 | <h3> |
Chris Lattner | 511433e | 2009-03-02 03:24:11 +0000 | [diff] [blame] | 535 | <a name="codegen">Target Independent Code Generator Improvements</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 536 | </h3> |
Chris Lattner | 0b83220 | 2008-06-08 02:45:07 +0000 | [diff] [blame] | 537 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 538 | <div> |
Chris Lattner | 0b83220 | 2008-06-08 02:45:07 +0000 | [diff] [blame] | 539 | |
Bill Wendling | 190ec9b | 2012-02-16 10:23:43 +0000 | [diff] [blame] | 540 | <p>We have changed the way that the Type Legalizer legalizes vectors. The type |
| 541 | legalizer now attempts to promote integer elements. This enabled the |
| 542 | implementation of vector-select. Additionally, we see a performance boost on |
| 543 | workloads which use vectors of chars and shorts, since they are now promoted |
| 544 | to 32-bit types, which are better supported by the SIMD instruction set. |
| 545 | Floating point types are still widened as before.</p> |
Nadav Rotem | 7559766 | 2011-12-20 08:02:50 +0000 | [diff] [blame] | 546 | |
| 547 | |
Mikhail Glushenkov | f795ef0 | 2009-03-01 18:09:47 +0000 | [diff] [blame] | 548 | <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] | 549 | infrastructure, which allows us to implement more aggressive algorithms and |
| 550 | make it run faster:</p> |
Chris Lattner | 0b83220 | 2008-06-08 02:45:07 +0000 | [diff] [blame] | 551 | |
| 552 | <ul> |
Jakob Stoklund Olesen | 9897c62 | 2011-12-19 16:53:40 +0000 | [diff] [blame] | 553 | <li>TableGen can now synthesize register classes that are only needed to |
Bill Wendling | 190ec9b | 2012-02-16 10:23:43 +0000 | [diff] [blame] | 554 | represent combinations of constraints from instructions and sub-registers. |
| 555 | The synthetic register classes inherit most of their properties form their |
| 556 | closest user-defined super-class.</li> |
Jakob Stoklund Olesen | d9e5c76 | 2012-01-05 00:26:49 +0000 | [diff] [blame] | 557 | <li><code>MachineRegisterInfo</code> now allows the reserved registers to be |
Bill Wendling | 190ec9b | 2012-02-16 10:23:43 +0000 | [diff] [blame] | 558 | frozen when register allocation starts. Target hooks should use the |
Nadav Rotem | fdc309c | 2012-02-26 08:35:53 +0000 | [diff] [blame] | 559 | <code>MRI->canReserveReg(FramePtr)</code> method to avoid accidentally |
Bill Wendling | 190ec9b | 2012-02-16 10:23:43 +0000 | [diff] [blame] | 560 | disabling frame pointer elimination during register allocation.</li> |
Jakob Stoklund Olesen | 7739cad | 2012-01-16 19:22:00 +0000 | [diff] [blame] | 561 | <li>A new kind of <code>MachineOperand</code> provides a compact |
Bill Wendling | 190ec9b | 2012-02-16 10:23:43 +0000 | [diff] [blame] | 562 | representation of large clobber lists on call instructions. The register |
| 563 | mask operand references a bit mask of preserved registers. Everything else |
| 564 | is clobbered.</li> |
Benjamin Kramer | 3a2d565 | 2012-05-13 13:10:35 +0000 | [diff] [blame] | 565 | <li>The DWARF debug info writer gained support for emitting data for the |
| 566 | <a href="SourceLevelDebugging.html#acceltable">name accelerator tables |
| 567 | DWARF extension</a>. It is used by LLDB to speed up name lookup.</li> |
Chris Lattner | 8497764 | 2007-09-21 03:54:09 +0000 | [diff] [blame] | 568 | </ul> |
Bill Wendling | 190ec9b | 2012-02-16 10:23:43 +0000 | [diff] [blame] | 569 | |
Anshuman Dasgupta | 4b47955 | 2012-04-12 15:17:35 +0000 | [diff] [blame] | 570 | <p> We added new TableGen infrastructure to support bundling for |
| 571 | Very Long Instruction Word (VLIW) architectures. TableGen can now |
| 572 | automatically generate a deterministic finite automaton from a VLIW |
| 573 | target's schedule description which can be queried to determine |
| 574 | legal groupings of instructions in a bundle.</p> |
| 575 | |
Anshuman Dasgupta | 3c1ded2 | 2012-04-14 20:59:13 +0000 | [diff] [blame] | 576 | <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] | 577 | DFA infrastructure to group machine instructions into bundles.</p> |
| 578 | |
Chris Lattner | 8497764 | 2007-09-21 03:54:09 +0000 | [diff] [blame] | 579 | </div> |
| 580 | |
Chandler Carruth | 268fde4 | 2012-04-17 01:10:35 +0000 | [diff] [blame] | 581 | <h4> |
| 582 | <a name="blockplacement">Basic Block Placement</a> |
| 583 | </h4> |
| 584 | <div> |
| 585 | <p>A probability based block placement and code layout algorithm was added to |
| 586 | LLVM's code generator. This layout pass supports probabilities derived from |
| 587 | static heuristics as well as source code annotations such as |
| 588 | <code>__builtin_expect</code>.</p> |
| 589 | </div> |
| 590 | |
Chris Lattner | 917cc71 | 2009-03-02 02:37:32 +0000 | [diff] [blame] | 591 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 592 | <h3> |
Chris Lattner | 917cc71 | 2009-03-02 02:37:32 +0000 | [diff] [blame] | 593 | <a name="x86">X86-32 and X86-64 Target Improvements</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 594 | </h3> |
Chris Lattner | 917cc71 | 2009-03-02 02:37:32 +0000 | [diff] [blame] | 595 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 596 | <div> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 597 | |
| 598 | <p>New features and major changes in the X86 target include:</p> |
Chris Lattner | 917cc71 | 2009-03-02 02:37:32 +0000 | [diff] [blame] | 599 | |
| 600 | <ul> |
Benjamin Kramer | 3a2d565 | 2012-05-13 13:10:35 +0000 | [diff] [blame] | 601 | <li>Greatly improved support for AVX2.</li> |
| 602 | <li>Lots of bug fixes and improvements for AVX1.</li> |
| 603 | <li>Support for the FMA4 and XOP instruction set extensions.</li> |
Jakob Stoklund Olesen | 2624661 | 2012-02-16 18:22:39 +0000 | [diff] [blame] | 604 | <li>Call instructions use the new register mask operands for faster compile |
| 605 | times and better support for different calling conventions. The old WINCALL |
| 606 | instructions are no longer needed.</li> |
NAKAMURA Takumi | 847307a | 2012-04-07 02:24:20 +0000 | [diff] [blame] | 607 | <li>DW2 Exception Handling is enabled on Cygwin and MinGW.</li> |
Benjamin Kramer | 3a2d565 | 2012-05-13 13:10:35 +0000 | [diff] [blame] | 608 | <li>Support for implicit TLS model used with MSVC runtime.</li> |
Chris Lattner | 917cc71 | 2009-03-02 02:37:32 +0000 | [diff] [blame] | 609 | </ul> |
| 610 | |
Chris Lattner | 917cc71 | 2009-03-02 02:37:32 +0000 | [diff] [blame] | 611 | </div> |
Chris Lattner | 8497764 | 2007-09-21 03:54:09 +0000 | [diff] [blame] | 612 | |
| 613 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 614 | <h3> |
Chris Lattner | 61358ab | 2009-10-13 17:48:04 +0000 | [diff] [blame] | 615 | <a name="ARM">ARM Target Improvements</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 616 | </h3> |
Chris Lattner | c441fb8 | 2009-03-01 02:30:21 +0000 | [diff] [blame] | 617 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 618 | <div> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 619 | |
| 620 | <p>New features of the ARM target include:</p> |
Chris Lattner | c441fb8 | 2009-03-01 02:30:21 +0000 | [diff] [blame] | 621 | |
| 622 | <ul> |
Jakob Stoklund Olesen | f5bb45f | 2011-12-16 16:07:41 +0000 | [diff] [blame] | 623 | <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] | 624 | alignments greater than 4 bytes.</li> |
| 625 | <li>On Darwin, the ARM target now has a full-featured integrated assembler. |
| 626 | </li> |
| 627 | </ul> |
Chris Lattner | 7b95c38 | 2011-11-15 22:23:46 +0000 | [diff] [blame] | 628 | |
Jim Grosbach | 6e6b822 | 2012-02-23 23:52:06 +0000 | [diff] [blame] | 629 | <h4> |
| 630 | <a name="armintegratedassembler">ARM Integrated Assembler</a> |
| 631 | </h4> |
| 632 | <div> |
| 633 | <p>The ARM target now includes a full featured macro assembler, including |
| 634 | direct-to-object module support for clang. The assembler is currently enabled |
| 635 | by default for Darwin only pending testing and any additional necessary |
| 636 | platform specific support for Linux.</p> |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 637 | |
Jim Grosbach | 6e6b822 | 2012-02-23 23:52:06 +0000 | [diff] [blame] | 638 | <p>Full support is included for Thumb1, Thumb2 and ARM modes, along with |
| 639 | subtarget and CPU specific extensions for VFP2, VFP3 and NEON.</p> |
| 640 | |
| 641 | <p>The assembler is Unified Syntax only (see ARM Architecural Reference Manual |
| 642 | for details). While there is some, and growing, support for pre-unfied (divided) |
| 643 | syntax, there are still significant gaps in that support.</p> |
| 644 | </div> |
NAKAMURA Takumi | 9c55f59 | 2012-03-27 11:25:16 +0000 | [diff] [blame] | 645 | |
| 646 | </div> |
Chris Lattner | 1efe27e | 2011-04-06 00:45:11 +0000 | [diff] [blame] | 647 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 648 | <h3> |
Akira Hatanaka | 5381cbf | 2011-11-15 21:33:05 +0000 | [diff] [blame] | 649 | <a name="MIPS">MIPS Target Improvements</a> |
| 650 | </h3> |
| 651 | |
| 652 | <div> |
Akira Hatanaka | 19e7421 | 2012-05-14 18:40:07 +0000 | [diff] [blame] | 653 | New features and major changes in the MIPS target include:</p> |
Akira Hatanaka | 5381cbf | 2011-11-15 21:33:05 +0000 | [diff] [blame] | 654 | |
| 655 | <ul> |
Akira Hatanaka | 19e7421 | 2012-05-14 18:40:07 +0000 | [diff] [blame] | 656 | <li>MIPS32 little-endian direct object code emission is functional.</li> |
| 657 | <li>MIPS64 little-endian code generation is largely functional for N64 ABI in assembly printing mode with the exception of handling of long double (f128) type.</li> |
| 658 | <li>Support for new instructions has been added, which includes swap-bytes |
| 659 | instructions (WSBH and DSBH), floating point multiply-add/subtract and |
| 660 | negative multiply-add/subtract instructions, and floating |
| 661 | point load/store instructions with reg+reg addressing (LWXC1, etc.)</li> |
| 662 | <li>Various fixes to improve performance have been implemented.</li> |
| 663 | <li>Post-RA scheduling is now enabled at -O3.</li> |
| 664 | <li>Support for soft-float code generation has been added.</li> |
Akira Hatanaka | 6ed743e | 2012-05-15 20:06:41 +0000 | [diff] [blame^] | 665 | <li>clang driver's support for MIPS 64-bits targets.</li> |
| 666 | <li>Support for MIPS floating point ABI option in clang driver.</li> |
Akira Hatanaka | 5381cbf | 2011-11-15 21:33:05 +0000 | [diff] [blame] | 667 | </ul> |
| 668 | </div> |
Chris Lattner | 7b95c38 | 2011-11-15 22:23:46 +0000 | [diff] [blame] | 669 | |
| 670 | <!--=========================================================================--> |
| 671 | <h3> |
Justin Holewinski | dc23c14 | 2012-05-13 17:32:35 +0000 | [diff] [blame] | 672 | <a name="PTX">PTX Target Improvements</a> |
| 673 | </h3> |
| 674 | |
| 675 | <div> |
| 676 | |
| 677 | <p>An outstanding conditional inversion bug was fixed in this release.</p> |
| 678 | |
| 679 | <p><b>NOTE</b>: LLVM 3.1 marks the last release of the PTX back-end, in its |
| 680 | current form. The back-end is currently being replaced by the NVPTX |
| 681 | back-end, currently in SVN ToT.</p> |
| 682 | |
| 683 | </div> |
| 684 | |
| 685 | <!--=========================================================================--> |
| 686 | <h3> |
Chris Lattner | 1efe27e | 2011-04-06 00:45:11 +0000 | [diff] [blame] | 687 | <a name="OtherTS">Other Target Specific Improvements</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 688 | </h3> |
Chris Lattner | c441fb8 | 2009-03-01 02:30:21 +0000 | [diff] [blame] | 689 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 690 | <div> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 691 | |
Chris Lattner | 1efe27e | 2011-04-06 00:45:11 +0000 | [diff] [blame] | 692 | <ul> |
Bill Wendling | 1fefd09 | 2012-05-14 08:11:53 +0000 | [diff] [blame] | 693 | <li>Support for Qualcomm's Hexagon VLIW processor has been added.</li> |
Chris Lattner | 1efe27e | 2011-04-06 00:45:11 +0000 | [diff] [blame] | 694 | </ul> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 695 | |
Chris Lattner | 1efe27e | 2011-04-06 00:45:11 +0000 | [diff] [blame] | 696 | </div> |
Chris Lattner | 77d29b1 | 2008-06-05 08:02:49 +0000 | [diff] [blame] | 697 | |
| 698 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 699 | <h3> |
Chris Lattner | f6662f9 | 2008-10-13 17:57:36 +0000 | [diff] [blame] | 700 | <a name="changes">Major Changes and Removed Features</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 701 | </h3> |
Chris Lattner | f6662f9 | 2008-10-13 17:57:36 +0000 | [diff] [blame] | 702 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 703 | <div> |
Chris Lattner | f6662f9 | 2008-10-13 17:57:36 +0000 | [diff] [blame] | 704 | |
Bill Wendling | 2626dba | 2011-08-03 22:18:20 +0000 | [diff] [blame] | 705 | <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] | 706 | 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] | 707 | from the previous release.</p> |
Chris Lattner | f6662f9 | 2008-10-13 17:57:36 +0000 | [diff] [blame] | 708 | |
| 709 | <ul> |
Benjamin Kramer | 2fb6801 | 2012-05-13 11:46:05 +0000 | [diff] [blame] | 710 | <li>LLVM's build system now requires a python 2 interpreter to be present at |
| 711 | build time. A perl interpreter is no longer required.</li> |
Benjamin Kramer | 5fdfaf5 | 2012-05-13 11:28:46 +0000 | [diff] [blame] | 712 | <li>The C backend has been removed. It had numerous problems, to the point of |
| 713 | not being able to compile any nontrivial program.</li> |
| 714 | <li>The Alpha, Blackfin and SystemZ targets have been removed due to lack of |
| 715 | maintenance.</li> |
Bill Wendling | 190ec9b | 2012-02-16 10:23:43 +0000 | [diff] [blame] | 716 | <li>LLVM 3.1 removes support for reading LLVM 2.9 bitcode files. Going |
| 717 | forward, we aim for all future versions of LLVM to read bitcode files and |
| 718 | <tt>.ll</tt> files produced by LLVM 3.0 and later.</li> |
| 719 | <li>The <tt>unwind</tt> instruction is now gone. With the introduction of the |
| 720 | new exception handling system in LLVM 3.0, the <tt>unwind</tt> instruction |
| 721 | became obsolete.</li> |
Joerg Sonnenberger | dba86d8 | 2012-04-26 20:10:07 +0000 | [diff] [blame] | 722 | <li>LLVM 3.0 and earlier automatically added the returns_twice fo functions |
| 723 | like setjmp based on the name. This functionality was removed in 3.1. |
| 724 | This affects Clang users, if -ffreestanding is used.</li> |
Devang Patel | b34dd13 | 2008-10-14 20:03:43 +0000 | [diff] [blame] | 725 | </ul> |
Chris Lattner | f6662f9 | 2008-10-13 17:57:36 +0000 | [diff] [blame] | 726 | |
Chris Lattner | f6662f9 | 2008-10-13 17:57:36 +0000 | [diff] [blame] | 727 | </div> |
| 728 | |
Daniel Dunbar | f0233c6 | 2010-10-04 20:11:41 +0000 | [diff] [blame] | 729 | <!--=========================================================================--> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 730 | <h3> |
Chris Lattner | 1efe27e | 2011-04-06 00:45:11 +0000 | [diff] [blame] | 731 | <a name="api_changes">Internal API Changes</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 732 | </h3> |
Daniel Dunbar | f0233c6 | 2010-10-04 20:11:41 +0000 | [diff] [blame] | 733 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 734 | <div> |
Daniel Dunbar | f0233c6 | 2010-10-04 20:11:41 +0000 | [diff] [blame] | 735 | |
Chris Lattner | 1efe27e | 2011-04-06 00:45:11 +0000 | [diff] [blame] | 736 | <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] | 737 | LLVM API changes are:</p> |
Daniel Dunbar | f0233c6 | 2010-10-04 20:11:41 +0000 | [diff] [blame] | 738 | |
| 739 | <ul> |
Nick Lewycky | 98a92d1 | 2012-03-21 22:58:28 +0000 | [diff] [blame] | 740 | <li>Target specific options have been moved from global variables to members |
| 741 | on the new <code>TargetOptions</code> class, which is local to each |
| 742 | <code>TargetMachine</code>. As a consequence, the associated flags will |
| 743 | no longer be accepted by <tt>clang -mllvm</tt>. This includes: |
| 744 | <ul> |
Nick Lewycky | 8a618a2 | 2012-03-23 00:56:26 +0000 | [diff] [blame] | 745 | <li><code>llvm::PrintMachineCode</code></li> |
| 746 | <li><code>llvm::NoFramePointerElim</code></li> |
| 747 | <li><code>llvm::NoFramePointerElimNonLeaf</code></li> |
| 748 | <li><code>llvm::DisableFramePointerElim(const MachineFunction &)</code></li> |
| 749 | <li><code>llvm::LessPreciseFPMADOption</code></li> |
| 750 | <li><code>llvm::LessPrecideFPMAD()</code></li> |
| 751 | <li><code>llvm::NoExcessFPPrecision</code></li> |
| 752 | <li><code>llvm::UnsafeFPMath</code></li> |
| 753 | <li><code>llvm::NoInfsFPMath</code></li> |
| 754 | <li><code>llvm::NoNaNsFPMath</code></li> |
| 755 | <li><code>llvm::HonorSignDependentRoundingFPMathOption</code></li> |
| 756 | <li><code>llvm::HonorSignDependentRoundingFPMath()</code></li> |
| 757 | <li><code>llvm::UseSoftFloat</code></li> |
| 758 | <li><code>llvm::FloatABIType</code></li> |
| 759 | <li><code>llvm::NoZerosInBSS</code></li> |
| 760 | <li><code>llvm::JITExceptionHandling</code></li> |
| 761 | <li><code>llvm::JITEmitDebugInfo</code></li> |
| 762 | <li><code>llvm::JITEmitDebugInfoToDisk</code></li> |
| 763 | <li><code>llvm::GuaranteedTailCallOpt</code></li> |
| 764 | <li><code>llvm::StackAlignmentOverride</code></li> |
| 765 | <li><code>llvm::RealignStack</code></li> |
| 766 | <li><code>llvm::DisableJumpTables</code></li> |
| 767 | <li><code>llvm::EnableFastISel</code></li> |
| 768 | <li><code>llvm::getTrapFunctionName()</code></li> |
| 769 | <li><code>llvm::EnableSegmentedStacks</code></li> |
Nick Lewycky | 98a92d1 | 2012-03-21 22:58:28 +0000 | [diff] [blame] | 770 | </ul></li> |
Bill Wendling | 1fefd09 | 2012-05-14 08:11:53 +0000 | [diff] [blame] | 771 | |
| 772 | <li>The <code>MDBuilder</code> class has been added to simplify the creation |
| 773 | of metadata.</li> |
Daniel Dunbar | f0233c6 | 2010-10-04 20:11:41 +0000 | [diff] [blame] | 774 | </ul> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 775 | |
Daniel Dunbar | f0233c6 | 2010-10-04 20:11:41 +0000 | [diff] [blame] | 776 | </div> |
Chris Lattner | f6662f9 | 2008-10-13 17:57:36 +0000 | [diff] [blame] | 777 | |
Nadav Rotem | fdc309c | 2012-02-26 08:35:53 +0000 | [diff] [blame] | 778 | <!--=========================================================================--> |
| 779 | <h3> |
| 780 | <a name="tools_changes">Tools Changes</a> |
| 781 | </h3> |
| 782 | |
| 783 | <div> |
| 784 | |
| 785 | <p>In addition, some tools have changed in this release. Some of the changes |
| 786 | are:</p> |
| 787 | |
| 788 | |
| 789 | <ul> |
Benjamin Kramer | 5fdfaf5 | 2012-05-13 11:28:46 +0000 | [diff] [blame] | 790 | <li><tt>llvm-stress</tt> is a command line tool for generating random |
| 791 | <tt>.ll</tt> files to fuzz different LLVM components. </li> |
| 792 | <li>The <tt>llvm-ld</tt> tool has been removed. The clang driver provides a |
| 793 | more reliable solution for turning a set of bitcode files into a binary. |
| 794 | To merge bitcode files <tt>llvm-link</tt> can be used instead.</li> |
Nadav Rotem | fdc309c | 2012-02-26 08:35:53 +0000 | [diff] [blame] | 795 | </ul> |
| 796 | |
| 797 | </div> |
| 798 | |
Gregory Szorc | ca34749 | 2012-05-12 21:12:22 +0000 | [diff] [blame] | 799 | |
| 800 | <!--=========================================================================--> |
| 801 | <h3> |
| 802 | <a name="python">Python Bindings</a> |
| 803 | </h3> |
| 804 | |
| 805 | <div> |
| 806 | |
| 807 | <p>Officially supported Python bindings have been added! Feature support is far |
| 808 | from complete. The current bindings support interfaces to:</p> |
| 809 | <ul> |
| 810 | <li>Object File Interface</li> |
| 811 | <li>Disassembler</li> |
| 812 | </ul> |
| 813 | |
| 814 | <p>Using the Object File Interface, it is possible to inspect binary object files. |
| 815 | Think of it as a Python version of readelf or llvm-objdump.</p> |
| 816 | |
| 817 | <p>Support for additional features is currently being developed by community |
| 818 | contributors. If you are interested in shaping the direction of the Python |
| 819 | bindings, please express your intent on IRC or the developers list.</p> |
| 820 | |
| 821 | </div> |
| 822 | |
Nadav Rotem | fdc309c | 2012-02-26 08:35:53 +0000 | [diff] [blame] | 823 | </div> |
| 824 | |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 825 | <!-- *********************************************************************** --> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 826 | <h2> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 827 | <a name="knownproblems">Known Problems</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 828 | </h2> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 829 | <!-- *********************************************************************** --> |
| 830 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 831 | <div> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 832 | |
Chris Lattner | 70e2201 | 2011-11-27 19:38:20 +0000 | [diff] [blame] | 833 | <p>LLVM is generally a production quality compiler, and is used by a broad range |
| 834 | of applications and shipping in many products. That said, not every |
| 835 | subsystem is as mature as the aggregate, particularly the more obscure |
| 836 | targets. If you run into a problem, please check the <a |
| 837 | href="http://llvm.org/bugs/">LLVM bug database</a> and submit a bug if |
| 838 | there isn't already one or ask on the <a |
| 839 | href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">LLVMdev |
| 840 | list</a>.</p> |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 841 | |
Chris Lattner | 70e2201 | 2011-11-27 19:38:20 +0000 | [diff] [blame] | 842 | <p>Known problem areas include:</p> |
Michael J. Spencer | 60f790c | 2011-11-28 18:20:09 +0000 | [diff] [blame] | 843 | |
Chris Lattner | f5ee170 | 2004-03-14 02:03:02 +0000 | [diff] [blame] | 844 | <ul> |
Benjamin Kramer | 5fdfaf5 | 2012-05-13 11:28:46 +0000 | [diff] [blame] | 845 | <li>The CellSPU, MSP430, PTX and XCore backends are experimental.</li> |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 846 | |
Chris Lattner | 70e2201 | 2011-11-27 19:38:20 +0000 | [diff] [blame] | 847 | <li>The integrated assembler, disassembler, and JIT is not supported by |
| 848 | several targets. If an integrated assembler is not supported, then a |
| 849 | system assembler is required. For more details, see the <a |
| 850 | href="CodeGenerator.html#targetfeatures">Target Features Matrix</a>. |
| 851 | </li> |
Chris Lattner | 2629922 | 2006-11-18 07:51:14 +0000 | [diff] [blame] | 852 | </ul> |
| 853 | |
| 854 | </div> |
John Criswell | c0c186d | 2005-11-08 21:11:33 +0000 | [diff] [blame] | 855 | |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 856 | <!-- *********************************************************************** --> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 857 | <h2> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 858 | <a name="additionalinfo">Additional Information</a> |
NAKAMURA Takumi | 06c6d9a | 2011-04-18 01:17:51 +0000 | [diff] [blame] | 859 | </h2> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 860 | <!-- *********************************************************************** --> |
| 861 | |
NAKAMURA Takumi | 074eeaa | 2011-04-21 01:52:00 +0000 | [diff] [blame] | 862 | <div> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 863 | |
Bill Wendling | 7b7fa74 | 2011-10-26 18:46:16 +0000 | [diff] [blame] | 864 | <p>A wide variety of additional information is available on |
| 865 | the <a href="http://llvm.org/">LLVM web page</a>, in particular in |
| 866 | the <a href="http://llvm.org/docs/">documentation</a> section. The web page |
| 867 | also contains versions of the API documentation which is up-to-date with the |
| 868 | Subversion version of the source code. You can access versions of these |
| 869 | documents specific to this release by going into the "<tt>llvm/doc/</tt>" |
| 870 | directory in the LLVM tree.</p> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 871 | |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 872 | <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] | 873 | 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] | 874 | |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 875 | </div> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 876 | |
| 877 | <!-- *********************************************************************** --> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 878 | |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 879 | <hr> |
Misha Brukman | 2061e89 | 2003-11-22 01:23:39 +0000 | [diff] [blame] | 880 | <address> |
Misha Brukman | 38847d5 | 2003-12-21 22:53:21 +0000 | [diff] [blame] | 881 | <a href="http://jigsaw.w3.org/css-validator/check/referer"><img |
Misha Brukman | 4440870 | 2008-12-11 17:34:48 +0000 | [diff] [blame] | 882 | 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] | 883 | <a href="http://validator.w3.org/check/referer"><img |
Misha Brukman | 4440870 | 2008-12-11 17:34:48 +0000 | [diff] [blame] | 884 | 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] | 885 | |
Chris Lattner | b4b0ce7 | 2007-05-18 00:44:29 +0000 | [diff] [blame] | 886 | <a href="http://llvm.org/">LLVM Compiler Infrastructure</a><br> |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 887 | Last modified: $Date$ |
Misha Brukman | 2061e89 | 2003-11-22 01:23:39 +0000 | [diff] [blame] | 888 | </address> |
Chris Lattner | 79c3fe1 | 2003-10-02 04:57:28 +0000 | [diff] [blame] | 889 | |
Misha Brukman | 500bc30 | 2003-11-22 00:38:41 +0000 | [diff] [blame] | 890 | </body> |
| 891 | </html> |