From: Chris Lattner This document contains the release notes for the LLVM compiler
-infrastructure, release 2.3. Here we describe the status of LLVM, including
+infrastructure, release 2.4. Here we describe the status of LLVM, including
major improvements from the previous release and any known problems. All LLVM
releases may be downloaded from the LLVM
releases web site. This is the fourteenth public release of the LLVM Compiler Infrastructure.
-It includes a large number of features and refinements from LLVM 2.2. This is the fifteenth public release of the LLVM Compiler Infrastructure.
+It includes a large number of features and refinements from LLVM 2.3. LLVM 2.3 no longer supports llvm-gcc 4.0, it has been replaced with
- llvm-gcc 4.2. LLVM 2.3 no longer includes the llvm-upgrade tool. It was useful
- for upgrading LLVM 1.9 files to LLVM 2.x syntax, but you can always use a
- previous LLVM release to do this. One nice impact of this is that the LLVM
- regression test suite no longer depends on llvm-upgrade, which makes it run
- faster. The llvm2cpp tool has been folded into llc, use
- llc -march=cpp instead of llvm2cpp. .... LLVM API Changes:
-The core LLVM 2.3 distribution currently consists of code from the core LLVM
+The core LLVM 2.4 distribution currently consists of code from the core LLVM
repository (which roughly contains the LLVM optimizer, code generators and
supporting tools) and the llvm-gcc repository. In addition to this code, the
LLVM Project includes other sub-projects that are in development. The two which
-are the most actively developed are the new vmkit Project
-and the Clang Project.
+are the most actively developed are the Clang Project and
+vmkit Project.
-The "vmkit" project is a new addition to the LLVM family. It is an
-implementation of a JVM and a CLI Virtual Machines (Microsoft .NET is an
+The "vmkit" project is an implementation of
+a JVM and a CLI Virtual Machines (Microsoft .NET is an
implementation of the CLI) using the Just-In-Time compiler of LLVM. The JVM, called JnJVM, executes real-world applications such as Apache
-projects (e.g. Felix and Tomcat) and the SpecJVM98 benchmark. It uses the GNU
-Classpath project for the base classes. The CLI implementation, called N3, is
-its in early stages but can execute simple applications and the "pnetmark"
-benchmark. It uses the pnetlib project as its core library. The 'vmkit' VMs compare in performance with industrial and top open-source
-VMs on scientific applications. Besides the JIT, the VMs use many features of
-the LLVM framework, including the standard set of optimizations, atomic
-operations, custom function provider and memory manager for JITed methods, and
-specific virtual machine optimizations. vmkit is not an official part of LLVM
-2.3 release. It is publicly available under the LLVM license and can be
-downloaded from:
- ... At this point, Clang is most useful if you are interested in source-to-source
-transformations (such as refactoring) and other source-level tools for C and
-Objective-C. Clang now also includes tools for turning C code into pretty HTML,
-and includes a new static
-analysis tool in development. This tool focuses on automatically finding
-bugs in C and Objective-C code. Codegen progress/state
+
-
svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit
-
LLVM 2.3 includes a huge number of bug fixes, performance tweaks and minor +
LLVM 2.4 includes a huge number of bug fixes, performance tweaks and minor improvements. Some of the major improvements and new features are listed in this section.
@@ -213,52 +165,18 @@ this section.LLVM 2.3 includes several major new capabilities:
+LLVM 2.4 includes several major new capabilities:
The biggest change in LLVM 2.3 is Multiple Return Value (MRV) support. - MRVs allow LLVM IR to directly represent functions that return multiple - values without having to pass them "by reference" in the LLVM IR. This - allows a front-end to generate more efficient code, as MRVs are generally - returned in registers if a target supports them. See the LLVM IR Reference for more details.
- -MRVs are fully supported in the LLVM IR, but are not yet fully supported in - on all targets. However, it is generally safe to return up to 2 values from - a function: most targets should be able to handle at least that. MRV - support is a critical requirement for X86-64 ABI support, as X86-64 requires - the ability to return multiple registers from functions, and we use MRVs to - accomplish this in a direct way.
LLVM 2.3 includes a complete reimplementation of the "llvmc" - tool. It is designed to overcome several problems with the original - llvmc and to provide a superset of the features of the - 'gcc' driver.
- -The main features of llvmc2 are: -
MRVs got generalized to FCAs.
+LLVM 2.3 includes a completely rewritten interface for Link Time Optimization. This interface - is written in C, which allows for easier integration with C code bases, and - incorporates improvements we learned about from the first incarnation of the - interface.
fast isel, -O0 compile times
Attrs changes?
The Kaleidoscope tutorial now - includes a "port" of the tutorial that uses the Ocaml bindings to implement - the Kaleidoscope language.
...
LLVM 2.3 fully supports the llvm-gcc 4.2 front-end, and includes support +
LLVM 2.4 fully supports the llvm-gcc 4.2 front-end, and includes support for the C, C++, Objective-C, Ada, and Fortran front-ends.
In addition to a huge array of bug fixes and minor performance tweaks, the -LLVM 2.3 optimizers support a few major enhancements:
+LLVM 2.4 optimizers support a few major enhancements:Loop index set splitting on by default. -This transformation hoists conditions from loop bodies and reduces a loop's -iteration space to improve performance. For example,
- --for (i = LB; i < UB; ++i) - if (i <= NV) - LOOP_BODY --
is transformed into:
- --NUB = min(NV+1, UB) -for (i = LB; i < NUB; ++i) - LOOP_BODY --