X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FReleaseNotes.html;h=5a5a01ae836b24b3d7cc9ed639b0318f769c3895;hb=f7807f6b9e9a215f365ce98a4c252aced4f651fb;hp=077867814c4ecb33214c0d5df6f94d1bafb07dfb;hpb=f821ca34370bb7d7d2c768b7bc9bf74dfe133a75;p=oota-llvm.git diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html index 077867814c4..5a5a01ae836 100644 --- a/docs/ReleaseNotes.html +++ b/docs/ReleaseNotes.html @@ -1,32 +1,30 @@ - - LLVM 2.3 Release Notes + LLVM 2.6 Release Notes -
LLVM 2.3 Release Notes
- +
LLVM 2.6 Release Notes
+
  1. Introduction
  2. -
  3. Major Changes and Sub-project Status
  4. -
  5. What's New?
  6. +
  7. Sub-project Status Update
  8. +
  9. External Projects Using LLVM 2.6
  10. +
  11. What's New in LLVM 2.6?
  12. Installation Instructions
  13. Portability and Supported Platforms
  14. -
  15. Known Problems +
  16. Known Problems
  17. Additional Information
-

Written by the LLVM Team

+

Written by the LLVM Team

- -
Introduction @@ -35,284 +33,533 @@
-

This document contains the release notes for the LLVM compiler -infrastructure, release 2.3. 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 document contains the release notes for the LLVM Compiler +Infrastructure, release 2.6. Here we describe the status of LLVM, including +major improvements from the previous release and significant known problems. +All LLVM releases may be downloaded from the LLVM releases web site.

For more information about LLVM, including information about the latest release, please check out the main LLVM web site. If you have questions or comments, the LLVM developer's mailing -list is a good place to send them.

+href="http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev">LLVM Developer's Mailing +List is a good place to send them.

-

Note that if you are reading this file from a Subversion checkout or the +

Note that if you are reading this file from a Subversion checkout or the main LLVM web page, this document applies to the next release, not the -current one. To see the release notes for a specific releases, please see the +current one. To see the release notes for a specific release, please see the releases page.

+ + + + + + + +
- Major Changes and Sub-project Status + Sub-project Status Update
+

+The LLVM 2.6 distribution currently consists of code from the core LLVM +repository (which roughly includes the LLVM optimizers, code generators +and supporting tools), the Clang repository and the llvm-gcc repository. In +addition to this code, the LLVM Project includes other sub-projects that are in +development. Here we include updates on these subprojects. +

+ +
-

This is the fourteenth public release of the LLVM Compiler Infrastructure. -It includes a large number of features and refinements from LLVM 2.2.

+ +
+Clang: C/C++/Objective-C Frontend Toolkit
- +
+ +

The Clang project is an effort to build +a set of new 'LLVM native' front-end technologies for the C family of languages. +LLVM 2.6 is the first release to officially include Clang, and it provides a +production quality C and Objective-C compiler. If you are interested in fast compiles and +good diagnostics, we +encourage you to try it out. Clang currently compiles typical Objective-C code +3x faster than GCC and compiles C code about 30% faster than GCC at -O0 -g +(which is when the most pressure is on the frontend).

+ +

In addition to supporting these languages, C++ support is also well under way, and mainline +Clang is able to parse the libstdc++ 4.2 headers and even codegen simple apps. +If you are interested in Clang C++ support or any other Clang feature, we +strongly encourage you to get involved on the Clang front-end mailing +list.

+ +

In the LLVM 2.6 time-frame, the Clang team has made many improvements:

+ + +
-Major Changes in LLVM 2.3 +Clang Static Analyzer
-

LLVM 2.3 no longer supports llvm-gcc 4.0, it has been replaced with - llvm-gcc 4.2.

+

Previously announced in the 2.4 and 2.5 LLVM releases, the Clang project also +includes an early stage static source code analysis tool for automatically finding bugs +in C and Objective-C programs. The tool performs checks to find +bugs that occur on a specific path within a program.

+ +

In the LLVM 2.6 time-frame, the analyzer core has undergone several important +improvements and cleanups and now includes a new Checker interface that +is intended to eventually serve as a basis for domain-specific checks. Further, +in addition to generating HTML files for reporting analysis results, the +analyzer can now also emit bug reports in a structured XML format that is +intended to be easily readable by other programs.

+ +

The set of checks performed by the static analyzer continues to expand, and +future plans for the tool include full source-level inter-procedural analysis +and deeper checks such as buffer overrun detection. There are many opportunities +to extend and enhance the static analyzer, and anyone interested in working on +this project is encouraged to get involved!

-

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.

+
+ + +
+VMKit: JVM/CLI Virtual Machine Implementation +
-

The llvm2cpp tool has been folded into llc, use - llc -march=cpp instead of llvm2cpp.

+
+

+The VMKit project is an implementation of +a JVM and a CLI Virtual Machine (Microsoft .NET is an +implementation of the CLI) using LLVM for static and just-in-time +compilation.

-

LLVM API Changes:

+

+VMKit version 0.26 builds with LLVM 2.6 and you can find it on its +web page. The release includes +bug fixes, cleanup and new features. The major changes are:

+
-Other LLVM Sub-Projects +compiler-rt: Compiler Runtime Library

-The core LLVM 2.3 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. -

+The new LLVM compiler-rt project +is a simple library that provides an implementation of the low-level +target-specific hooks required by code generation and other runtime components. +For example, when compiling for a 32-bit target, converting a double to a 64-bit +unsigned integer is compiled into a runtime call to the "__fixunsdfdi" +function. The compiler-rt library provides highly optimized implementations of +this and other low-level routines (some are 3x faster than the equivalent +libgcc routines).

+ +

+All of the code in the compiler-rt project is available under the standard LLVM +License, a "BSD-style" license.

+
-
-vmkit +

-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 -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: -

+The new LLVM KLEE project is a symbolic +execution framework for programs in LLVM bitcode form. KLEE tries to +symbolically evaluate "all" paths through the application and records state +transitions that lead to fault states. This allows it to construct testcases +that lead to faults and can even be used to verify algorithms. For more +details, please see the OSDI 2008 paper about +KLEE.

+ +
+ + + +

-svn co http://llvm.org/svn/llvm-project/vmkit/trunk vmkit +The goal of DragonEgg is to make +gcc-4.5 act like llvm-gcc without requiring any gcc modifications whatsoever. +DragonEgg is a shared library (dragonegg.so) +that is loaded by gcc at runtime. It uses the new gcc plugin architecture to +disable the GCC optimizers and code generators, and schedule the LLVM optimizers +and code generators (or direct output of LLVM IR) instead. Currently only Linux +and Darwin are supported, and only on x86-32 and x86-64. It should be easy to +add additional unix-like architectures and other processor families. In theory +it should be possible to use DragonEgg +with any language supported by gcc, however only C and Fortran work well for the +moment. Ada and C++ work to some extent, while Java, Obj-C and Obj-C++ are so +far entirely untested. Since gcc-4.5 has not yet been released, neither has +DragonEgg. To build +DragonEgg you will need to check out the +development versions of gcc, +llvm and +DragonEgg from their respective +subversion repositories, and follow the instructions in the +DragonEgg README.

+ -
-Clang +
+

+The LLVM Machine Code (MC) Toolkit project is a (very early) effort to build +better tools for dealing with machine code, object file formats, etc. The idea +is to be able to generate most of the target specific details of assemblers and +disassemblers from existing LLVM target .td files (with suitable enhancements), +and to build infrastructure for reading and writing common object file formats. +One of the first deliverables is to build a full assembler and integrate it into +the compiler, which is predicted to substantially reduce compile time in some +scenarios. +

-

The Clang project is an effort to build -a set of new 'LLVM native' front-end technologies for the LLVM optimizer -and code generator. Clang is continuing to make major strides forward in all -areas. Its C and Objective-C parsing support is very solid, and the code -generation support is far enough along to build many C applications. While not -yet production quality, it is progressing very nicely. In addition, C++ -front-end work has started to make significant progress.

- -

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.

+

In the LLVM 2.6 timeframe, the MC framework has grown to the point where it +can reliably parse and pretty print (with some encoding information) a +darwin/x86 .s file successfully, and has the very early phases of a Mach-O +assembler in progress. Beyond the MC framework itself, major refactoring of the +LLVM code generator has started. The idea is to make the code generator reason +about the code it is producing in a much more semantic way, rather than a +textual way. For example, the code generator now uses MCSection objects to +represent section assignments, instead of text strings that print to .section +directives.

+ +

MC is an early and ongoing project that will hopefully continue to lead to +many improvements in the code generator and build infrastructure useful for many +other situations. +

-
+
-

LLVM 2.3 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. -

+

An exciting aspect of LLVM is that it is used as an enabling technology for + a lot of other language and tools projects. This section lists some of the + projects that have already been updated to work with LLVM 2.6.

+
+

Rubinius is an environment +for running Ruby code which strives to write as much of the core class +implementation in Ruby as possible. Combined with a bytecode interpreting VM, it +uses LLVM to optimize and compile ruby code down to machine code. Techniques +such as type feedback, method inlining, and uncommon traps are all used to +remove dynamism from ruby execution and increase performance.

+ +

Since LLVM 2.5, Rubinius has made several major leaps forward, implementing +a counter based JIT, type feedback and speculative method inlining. +

-

LLVM 2.3 includes several major new capabilities:

+
- +

+MacRuby uses LLVM for optimization passes, JIT and AOT compilation of Ruby +expressions. It also uses zero-cost DWARF exceptions to implement Ruby exception +handling.

-llvm-gcc 4.2 Improvements +Pure
+

+Pure +is an algebraic/functional programming language based on term rewriting. +Programs are collections of equations which are used to evaluate expressions in +a symbolic fashion. Pure offers dynamic typing, eager and lazy evaluation, +lexical closures, a hygienic macro system (also based on term rewriting), +built-in list and matrix support (including list and matrix comprehensions) and +an easy-to-use C interface. The interpreter uses LLVM as a backend to + JIT-compile Pure programs to fast native code.

+ +

Pure versions 0.31 and later have been tested and are known to work with +LLVM 2.6 (and continue to work with older LLVM releases >= 2.3 as well). +

+
-

LLVM 2.3 fully supports the llvm-gcc 4.2 front-end, and includes support -for the C, C++, Objective-C, Ada, and Fortran front-ends.

+ +
+LLVM D Compiler +
+ +

-

-
  • Fortran EQUIVALENCEs are now supported by the gfortran front-end.
  • + +
    +Roadsend PHP +
    -
  • llvm-gcc 4.2 includes many other fixes which improve conformance with the -relevant parts of the GCC testsuite.
  • +
    +

    +Roadsend PHP (rphp) is an open +source implementation of the PHP programming +language that uses LLVM for its optimizer, JIT and static compiler. This is a +reimplementation of an earlier project that is now based on LLVM.

    +
    -

    + +
    +Unladen Swallow +
    +
    +

    +Unladen Swallow is a +branch of Python intended to be fully +compatible and significantly faster. It uses LLVM's optimization passes and JIT +compiler.

    + +
    +llvm-lua +
    + +
    +

    +LLVM-Lua uses LLVM to add JIT +and static compiling support to the Lua VM. Lua bytecode is analyzed to +remove type checks, then LLVM is used to compile the bytecode down to machine +code.

    +
    -LLVM Core Improvements +IcedTea Java Virtual Machine Implementation
    -

    New features include: +

    +IcedTea provides a +harness to build OpenJDK using only free software build tools and to provide +replacements for the not-yet free parts of OpenJDK. One of the extensions that +IcedTea provides is a new JIT compiler named Shark which uses LLVM +to provide native code generation without introducing processor-dependent +code.

    +
    + + + + +
    + What's New in LLVM 2.6? +
    + + +
    + +

    This release 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. +

    + +
    + + +
    +Major New Features +
    + +
    + +

    LLVM 2.6 includes several major new capabilities:

    + +
    + + +
    +LLVM IR and Core Improvements +
    -
  • LLVM IR now has support for atomic operations, and this functionality can -be accessed through the llvm-gcc "__sync_synchronize", -"__sync_val_compare_and_swap", and related builtins. Support for atomics are -available in the Alpha, X86, X86-64, and PowerPC backends.
  • +
    +

    LLVM IR has several new features for better support of new targets and that +expose new optimization opportunities:

    -
  • The C and Ocaml bindings have extended to cover pass managers, several -transformation passes, iteration over the LLVM IR, target data, and parameter -attribute lists.
  • + - +
    @@ -322,215 +569,443 @@ attribute lists.
    -

    In addition to a huge array of bug fixes and minor performance tweaks, the -LLVM 2.3 optimizers support a few major enhancements:

    +

    In addition to a large array of minor performance tweaks and bug fixes, this +release includes a few major enhancements and additions to the optimizers:

    -

    is transformed into:

    +
    -
    -NUB = min(NV+1, UB)
    -for (i = LB; i < NUB; ++i)
    -  LOOP_BODY
    -
    - -
  • LLVM now includes a new memcpy optimization pass which removes -dead memcpy calls, unneeded copies of aggregates, and performs -return slot optimization. The LLVM optimizer now notices long sequences of -consecutive stores and merges them into memcpy's where profitable.
  • - -
  • Alignment detection for vector memory references and for memcpy and -memset is now more aggressive.
  • - -
  • The Aggressive Dead Code Elimination (ADCE) optimization has been rewritten -to make it both faster and safer in the presence of code containing infinite -loops. Some of its prior functionality has been factored out into the loop -deletion pass, which is safe for infinite loops. The new ADCE pass is -no longer based on control dependence, making it run faster.
  • - -
  • The 'SimplifyLibCalls' pass, which optimizes calls to libc and libm - functions for C-based languages, has been rewritten to be a FunctionPass - instead a ModulePass. This allows it to be run more often and to be - included at -O1 in llvm-gcc. It was also extended to include more - optimizations and several corner case bugs were fixed.
  • - -
  • LLVM now includes a simple 'Jump Threading' pass, which attempts to simplify - conditional branches using information about predecessor blocks, simplifying - the control flow graph. This pass is pretty basic at this point, but - catches some important cases and provides a foundation to build on.
  • - -
  • Several corner case bugs which could lead to deleting volatile memory - accesses have been fixed.
  • + +
    +Interpreter and JIT Improvements +
    -
  • Several optimizations have been sped up, leading to faster code generation - with the same code quality.
  • - +
    + +
    -Code Generator Improvements +Target Independent Code Generator Improvements
    -

    We put a significant amount of work into the code generator infrastructure, -which allows us to implement more aggressive algorithms and make it run -faster:

    +

    We have put a significant amount of work into the code generator +infrastructure, which allows us to implement more aggressive algorithms and make +it run faster:

    +
    + +
    +X86-32 and X86-64 Target Improvements
    +
    +

    New features of the X86 target include: +

    + + + +
    -X86/X86-64 Specific Improvements +PIC16 Target Improvements
    -

    New target-specific features include: +

    New features of the PIC16 target include:

    + +

    Things not yet supported:

    + + + +
    -
  • Trampolines (taking the address of a nested function) now work on - Linux/X86-64.
  • + +
    +ARM Target Improvements +
    -
  • __builtin_prefetch is now compiled into the appropriate prefetch - instructions instead of being ignored.
  • +
    +

    New features of the ARM target include: +

    -
  • 128-bit integers are now supported on X86-64 targets. This can be used - through __attribute__((TImode)) in llvm-gcc.
  • + - + +

    These features are still somewhat experimental +and subject to change. The Neon intrinsics, in particular, may change in future +releases of LLVM. ARMv7 support has progressed a lot on top of tree since 2.6 +branched.

    + +
    -Other Target Specific Improvements +Other Target Specific Improvements
    -

    New target-specific features include: +

    New features of other targets include:

    - + +
    + + +
    +New Useful APIs
    +
    + +

    This release includes a number of new APIs that are used internally, which + may also be useful for external clients. +

    + + + +
    -Other Improvements +Other Improvements and New Features
    -

    New features include: -

    +

    Other miscellaneous features include:

    + + + +
    + + + +
    +Major Changes and Removed Features +
    + +
    + +

    If you're already an LLVM user or developer with out-of-tree changes based +on LLVM 2.5, this section lists some "gotchas" that you may run into upgrading +from the previous release.

    + + + + +

    In addition, many APIs have changed in this release. Some of the major LLVM +API changes are:

    - +
    + +
    Portability and Supported Platforms @@ -542,16 +1017,16 @@ faster:

    LLVM is known to work on the following platforms:

    The core LLVM infrastructure uses GNU autoconf to adapt itself @@ -569,12 +1044,26 @@ portability patches and reports of successful builds or error messages.

    -

    This section contains all known problems with the LLVM system, listed by -component. As new problems are discovered, they will be added to these -sections. If you run into a problem, please check the This section contains significant known problems with the LLVM system, +listed by component. If you run into a problem, please check the LLVM bug database and submit a bug if there isn't already one.

    +
      +
    • The llvm-gcc bootstrap will fail with some versions of binutils (e.g. 2.15) + with a message of "Error: can not do 8 + byte pc-relative relocation" when building C++ code. We intend to + fix this on mainline, but a workaround for 2.6 is to upgrade to binutils + 2.17 or later.
    • + +
    • LLVM will not correctly compile on Solaris and/or OpenSolaris +using the stock GCC 3.x.x series 'out the box', +See: Broken versions of GCC and other tools. +However, A Modern GCC Build +for x86/x86-64 has been made available from the third party AuroraUX Project +that has been meticulously tested for bootstrapping LLVM & Clang.
    • +
    +
    @@ -592,9 +1081,11 @@ components, please contact us on the LLVMdev list.

    @@ -614,15 +1105,14 @@ href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">LLVMdev list.

  • The X86 backend generates inefficient floating point code when configured to generate code for systems that don't have SSE2.
  • Win64 code generation wasn't widely tested. Everything should work, but we - expect small issues to happen. Also, llvm-gcc cannot build mingw64 runtime - currently due + expect small issues to happen. Also, llvm-gcc cannot build the mingw64 + runtime currently due to several - bugs due to lack of support for the - 'u' inline assembly constraint and X87 floating point inline assembly.
  • -
  • The X86-64 backend does not yet support position-independent code (PIC) - generation on Linux targets.
  • + bugs and due to lack of support for + the + 'u' inline assembly constraint and for X87 floating point inline assembly.
  • The X86-64 backend does not yet support the LLVM IR instruction - va_arg. Currently, the llvm-gcc front-end supports variadic + va_arg. Currently, the llvm-gcc and front-ends support variadic argument constructs on X86-64 by lowering them manually.
  • @@ -650,14 +1140,14 @@ compilation, and lacks support for debug information.
    @@ -670,7 +1160,7 @@ programs compiled with LLVM. Please use more recent versions of QEMU.
    @@ -678,32 +1168,30 @@ programs compiled with LLVM. Please use more recent versions of QEMU.
      - -
    • On 21164s, some rare FP arithmetic sequences which may trap do not have the -appropriate nops inserted to ensure restartability.
    • - +
    • 64-bit MIPS targets are not supported yet.
    +
      -
    • The Itanium backend is highly experimental, and has a number of known - issues. We are looking for a maintainer for the Itanium backend. If you - are interested, please contact the llvmdev mailing list.
    • -
    +
  • On 21164s, some rare FP arithmetic sequences which may trap do not have the +appropriate nops inserted to ensure restartability.
  • + +
    @@ -718,8 +1206,9 @@ appropriate nops inserted to ensure restartability. inline assembly code.
  • The C backend violates the ABI of common C++ programs, preventing intermixing between C++ compiled by the CBE and - C++ code compiled with llc or native compilers.
  • + C++ code compiled with llc or native compilers.
  • The C backend does not support all exception handling constructs.
  • +
  • The C backend does not support arbitrary precision integers.
  • @@ -732,10 +1221,6 @@ appropriate nops inserted to ensure restartability.
    -

    llvm-gcc does not currently support Link-Time -Optimization on most platforms "out-of-the-box". Please inquire on the -llvmdev mailing list if you are interested.

    -

    The only major language feature of GCC not supported by llvm-gcc is the __builtin_apply family of builtins. However, some extensions are only supported on some targets. For example, trampolines are only @@ -759,13 +1244,24 @@ tested and works for a number of non-trivial programs, including LLVM itself, Qt, Mozilla, etc.

    + +
    + Known problems with the llvm-gcc Fortran front-end +
    + +
    + +
    @@ -773,23 +1269,26 @@ supported on X86-64 linux, but that is disabled by default in this release.
    -The llvm-gcc 4.2 Ada compiler works fairly well, however this is not a mature -technology and problems should be expected. +The llvm-gcc 4.2 Ada compiler works fairly well; however, this is not a mature +technology, and problems should be expected.
    + +
    + Known problems with the O'Caml bindings +
    + +
    + +

    The Llvm.Linkage module is broken, and has incorrect values. Only +Llvm.Linkage.External, Llvm.Linkage.Available_externally, and +Llvm.Linkage.Link_once will be correct. If you need any of the other linkage +modes, you'll have to write an external C library in order to expose the +functionality. This has been fixed in the trunk.

    +
    +
    Additional Information @@ -830,9 +1343,9 @@ lists.


    Valid CSS! + src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS"> Valid HTML 4.01! + src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"> LLVM Compiler Infrastructure
    Last modified: $Date$