X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FReleaseNotes.html;h=d2c61176fa67216220d37a5ee1b6f4cebb874bd4;hb=4b2cbcf4c275379f8c1b68f792db29cc7b7925ad;hp=ed2632f9b0fd679f75f802fb2558c324bb9d8628;hpb=30a1f8f234d79920b432c813b745849f55f96ff9;p=oota-llvm.git diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html index ed2632f9b0f..d2c61176fa6 100644 --- a/docs/ReleaseNotes.html +++ b/docs/ReleaseNotes.html @@ -4,11 +4,11 @@ - LLVM 1.5 Release Notes + LLVM 2.1 Release Notes -
LLVM 1.5 Release Notes
+
LLVM 2.1 Release Notes
  1. Introduction
  2. @@ -20,7 +20,7 @@
-

Written by the LLVM Team

+

Written by the LLVM Team

@@ -32,23 +32,21 @@

This document contains the release notes for the LLVM compiler -infrastructure, release 1.5. Here we describe the status of LLVM, including any -known problems and improvements from the previous release. The most up-to-date -version of this document can be found on the LLVM 1.5 web site. If you are -not reading this on the LLVM web pages, you should probably go there because -this document may be updated after the release.

+infrastructure, release 2.1. 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.

For more information about LLVM, including information about the latest -release, please check out the main LLVM +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.

-

Note that if you are reading this file from CVS or the main LLVM web page, -this document applies to the next release, not the current one. To see -the release notes for the current or previous releases, see the releases page.

+

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 +releases page.

@@ -60,128 +58,233 @@ href="http://llvm.cs.uiuc.edu/releases/">releases page.

-

This is the sixth public release of the LLVM compiler infrastructure.

- -

At this time, LLVM is known to correctly compile a broad range of C and -C++ programs, including the SPEC CPU95 & 2000 suite. TODO. It also includes -bug fixes for those problems found since the 1.4 release.

+

This is the twelfth public release of the LLVM Compiler Infrastructure. +It includes many features and refinements from LLVM 2.0.

-
-This release implements the following new features: +
+New Frontends
-
    -
  1. LLVM now includes an - Interprocedural Sparse Conditional Constant Propagation pass, named - -ipsccp, which is run by default at link-time.
  2. -
  3. LLVM 1.5 is now about 15% faster than LLVM 1.4 and its core data structures - use about 30% less memory.
  4. -
  5. LLVM includes new experimental native code generators for SparcV8, - Alpha, and IA64.
  6. -
  7. Support for Microsoft Visual Studio is improved, and now documented.
  8. -
  9. Configuring LLVM to build targets selectively is now implemented, via the - --enable-targets= option. This feature is documented - here.
  10. -
+

LLVM 2.1 brings two new beta C front-ends. First, a new version of llvm-gcc +based on GCC 4.2, innovatively called "llvm-gcc-4.2". This promises to bring +FORTRAN and Ada support to LLVM as well as features like atomic builtins and +OpenMP. None of these actually work yet, but don't let that stop you checking +it out!

+ +

Second, LLVM now includes its own native C and Objective-C front-end (C++ is +in progress, but is not very far along) code named "clang". This front-end has a number of great +features, primarily aimed at source-level analysis and speeding up compile-time. +At this point though, the LLVM Code Generator component is still very early in +development, so it's mostly useful for people looking to build source-level +analysis tools or source-to-source translators.

+ +
+ + +
+Optimizer Improvements
+
+ +

Some of the most noticable feature improvements this release have been in the +optimizer, speeding it up and making it more aggressive. For example:

+ + + +
-
-In this release, the following missing features were implemented: +
-
    -
  1. LLVM can now create native shared libraries with 'llvm-gcc ... - -shared -Wl,-native' (or with -Wl,-native-cbe).
  2. -
  3. LLVM now supports a new "llvm.prefetch - " intrinsic, and llvm-gcc now supports __builtin_prefetch. -
+

One of the main focuses of this release was performance tuning and bug + fixing. In addition to these, several new major changes occurred:

+ +
    + +
  • Dale finished up the Tail Merging optimization in the code generator, and + enabled it by default. This produces smaller code that is also faster in + some cases.
  • + +
  • Christopher Lamb implemented support for virtual register sub-registers, + which can be used to better model many forms of subregisters. As an example + use, he modified the X86 backend to use this to model truncates and + extends more accurately (leading to better code).
  • + +
  • Dan Gohman changed the way we represent vectors before legalization, + significantly simplifying the SelectionDAG representation for these and + making the code generator faster for vector code.
  • + +
  • Evan contributed a new target independent if-converter. While it is + target independent, so far only the ARM backend uses it.
  • + +
  • Evan rewrote the way the register allocator handles rematerialization, + allowing it to be much more effective on two-address targets like X86, + and taught it to fold loads away when possible (also a big win on X86).
  • + +
  • Dan Gohman contributed support for better alignment and volatility handling + in the code generator, and significantly enhanced alignment analysis for SSE + load/store instructions. With his changes, an insufficiently-aligned SSE + load instruction turns into movups, for example.
  • + +
  • Duraid Madina contributed a new "bigblock" register allocator, and Roman + Levenstein contributed several big improvements. BigBlock is optimized for + code that uses very large basic blocks. It is slightly slower than the + "local" allocator, but produces much better code.
  • + +
  • David Greene refactored the register allocator to split coalescing out from + allocation, making coalescers pluggable.
  • + +
+ -
-In this release, the following Quality of Implementation -issues were fixed: +
+

New features include: +

-
    -
  1. Building LLVM in optimized mode - should no longer cause GCC to hit swap in the PowerPC backend.
  2. -
+
    +
  • Bruno Cardoso Lopes contributed initial MIPS support. It is sufficient to + run many small programs, but is still incomplete and is not yet + fully performant.
  • + +
  • Bill Wendling added SSSE3 support to the X86 backend.
  • + +
  • Nicholas Geoffray contributed improved linux/ppc ABI and JIT support.
  • + +
  • Dale Johannesen rewrote handling of 32-bit float values in the X86 backend + when using the floating point stack, fixing several nasty bugs.
  • + +
  • Dan contributed rematerialization support for the X86 backend, in addition + to several X86-specific micro optimizations.
  • +
+
+ -
-This release includes the following Code Quality -improvements: +
-
    -
  1. Transition code for 1.0 style varargs was removed.
  2. -
+

New features include: +

+ +
    +
  • Duncan and Anton made significant progress chasing down a number of problems + with C++ Zero-Cost exception handling in llvm-gcc 4.0 and 4.2. It is now at + the point where it "just works" on linux/X86-32 and has partial support on + other targets.
  • + +
  • Devang and Duncan fixed a huge number of bugs relating to bitfields, pragma + pack, and variable sized fields in structures.
  • + +
  • Tanya implemented support for __attribute__((noinline)) in + llvm-gcc, and added support for generic variable annotations which are + propagated into the LLVM IR, e.g. + "int X __attribute__((annotate("myproperty")));".
  • + +
  • Sheng Zhou and Christopher Lamb implemented alias analysis support for +"restrict" pointer arguments to functions.
  • + +
  • Duncan contributed support for trampolines (taking the address of a nested + function). Currently this is only supported on the X86-32 target.
  • + +
  • Lauro Ramos Venancio contributed support to encode alignment info in + load and store instructions, the foundation for other alignment-related + work.
  • +
+
+ -
-In this release, the following bugs in the previous release -were fixed: +
+

New features include: +

+ + +
-

Bugs in the C/C++ front-end:

-
    -
  1. [llvmgcc] llvm-gcc incorrectly - rejects some constant initializers involving the addresses of array - elements
  2. -
  3. [llvm-g++] Crash compiling - anonymous union
  4. -
  5. [llvm-g++] Do not use dynamic - initialization where static init will do
  6. -
  7. [llvmgcc] Field offset - miscalculated for some structure fields following bit fields
  8. -
  9. [llvm-g++] Temporary lifetimes - incorrect for short circuit logical operations
  10. -
  11. [llvm-gcc] Crash compiling - bitfield <-> aggregate assignment
  12. -
  13. [llvm-g++] Error compiling - virtual function thunk with an unnamed argument
  14. -
  15. [llvm-gcc] Crash on certain - C99 complex number routines
  16. -
  17. [llvm-g++] Crash using placement - new on an array type
  18. -
+ + +
+

New features include: +

+ +
    +
  • Sterling Stein contributed a new BrainF frontend, located in llvm/examples. + This shows a some of the more modern APIs for building a front-end, and + demonstrates JIT compiler support.
  • + +
  • David Green contributed a new --enable-expensive-checks configure + option which enables STL checking, and fixed several bugs exposed by + it.
  • +
+
@@ -195,13 +298,16 @@ were fixed:

LLVM is known to work on the following platforms:

    -
  • Intel and AMD machines running Red Hat Linux and FreeBSD (and probably - other unix-like systems).
  • -
  • Sun UltraSPARC workstations running Solaris 8.
  • +
  • Intel and AMD machines running Red Hat Linux, Fedora Core and FreeBSD + (and probably other unix-like systems).
  • +
  • PowerPC and X86-based Mac OS X systems, running 10.2 and above in 32-bit and + 64-bit modes.
  • +
  • Intel and AMD machines running on Win32 using MinGW libraries (native)
  • Intel and AMD machines running on Win32 with the Cygwin libraries (limited support is available for native builds with Visual C++).
  • -
  • PowerPC-based Mac OS X systems, running 10.2 and above.
  • -
  • Alpha-based machines running Debian GNU/Linux
  • +
  • Sun UltraSPARC workstations running Solaris 8.
  • +
  • Alpha-based machines running Debian GNU/Linux.
  • +
  • Itanium-based machines running Linux and HP-UX.

The core LLVM infrastructure uses @@ -223,7 +329,7 @@ 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 LLVM bug database and submit a bug if +href="http://llvm.org/bugs/">LLVM bug database and submit a bug if there isn't already one.

@@ -239,41 +345,152 @@ there isn't already one.

be broken or unreliable, or are in early development. These components should not be relied on, and bugs should not be filed against them, but they may be useful to some people. In particular, if you would like to work on one of these -components, please contact us on the llvmdev list.

+components, please contact us on the LLVMdev list.

+ +
    +
  • The -cee pass is known to be buggy, and may be removed in a + future release.
  • +
  • The MSIL backend is experimental.
  • +
  • The IA64 code generator is experimental.
  • +
  • The Alpha backend is experimental.
  • +
  • "-filetype=asm" (the default) is the only supported value for the + -filetype llc option.
  • +
+ +
+ + + + +
+ + + +
+ + + + +
    -
  • The following passes are incomplete or buggy, and may be removed in future - releases: -cee, -branch-combine, -instloops, -paths, -pre
  • -
  • The llvm-db tool is in a very early stage of development, but can - be used to step through programs and inspect the stack.
  • -
  • The "iterative scan" register allocator (enabled with - -regalloc=iterativescan) is not stable.
  • -
  • The SparcV8, Alpha, and IA64 ports are experimental.
  • +
  • PowerPC backend does not correctly +implement ordered FP comparisons.
  • +
  • The Linux PPC32/ABI support needs testing for the interpreter and static +compilation, and lacks support for debug information.
    -
  • In the JIT, dlsym() on a symbol compiled by the JIT will not - work.
  • -
  • The JIT does not use mutexes to protect its internal data structures. As - such, execution of a threaded program could cause these data structures to be - corrupted. -
  • -
  • The lower-invoke pass does not - mark values live across a setjmp as volatile. This missing feature - only affects targets whose setjmp/longjmp libraries do not save and restore - the entire register file.
  • +
  • Thumb mode works only on ARMv6 or higher processors. On sub-ARMv6 +processors, thumb programs can crash or produce wrong +results (PR1388).
  • +
  • Compilation for ARM Linux OABI (old ABI) is supported, but not fully tested. +
  • +
  • There is a bug in QEMU-ARM (<= 0.9.0) which causes it to incorrectly execute +programs compiled with LLVM. Please use more recent versions of QEMU.
+
+ + + +
+ +
    +
  • The SPARC backend only supports the 32-bit SPARC ABI (-m32), it does not + support the 64-bit SPARC ABI (-m64).
  • +
+ +
+ + + + +
+ +
    + +
  • On 21164s, some rare FP arithmetic sequences which may trap do not have the +appropriate nops inserted to ensure restartability.
  • + +
+
+ + + + +
+ +
    + +
  • C++ programs are likely to fail on IA64, as calls to setjmp are +made where the argument is not 16-byte aligned, as required on IA64. (Strictly +speaking this is not a bug in the IA64 back-end; it will also be encountered +when building C++ programs using the C back-end.)
  • + +
  • The C++ front-end does not use IA64 +ABI compliant layout of v-tables. In particular, it just stores function +pointers instead of function descriptors in the vtable. This bug prevents +mixing C++ code compiled with LLVM with C++ objects compiled by other C++ +compilers.
  • + +
  • There are a few ABI violations which will lead to problems when mixing LLVM +output with code built with other compilers, particularly for floating-point +programs.
  • + +
  • Defining vararg functions is not supported (but calling them is ok).
  • + +
  • The Itanium backend has bitrotted somewhat.
  • +
+ +
+ + + + +
+ + + +
+ +
Known problems with the C front-end @@ -283,20 +500,11 @@ components, please contact us on the llvmdev list.

Bugs
-
    -
  • C99 Variable sized arrays do not release stack memory when they go out of - scope. Thus, the following program may run out of stack space: -
    -    for (i = 0; i != 1000000; ++i) {
    -      int X[n];
    -      foo(X);
    -    }
    -
  • - -
  • Initialization of global union variables can only be done with the largest union member.
  • -
+

llvm-gcc4 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.

+
@@ -305,102 +513,56 @@ href="http://llvm.cs.uiuc.edu/PR162">with the largest union member.
-
    -
  • Inline assembly is not yet supported.
  • - -
  • "long double" is transformed by the front-end into "double". There is no -support for floating point data types of any size other than 32 and 64 -bits.
  • +
  • "long double" is silently transformed by the front-end into "double". There +is no support for floating point data types of any size other than 32 and 64 +bits.

  • -
  • The following Unix system functionality has not been tested and may not -work: -
      -
    1. sigsetjmp, siglongjmp - These are not turned into the - appropriate invoke/unwind instructions. Note that - setjmp and longjmp are compiled correctly. -
    2. getcontext, setcontext, makecontext - - These functions have not been tested. -
  • +
  • llvm-gcc does not support __builtin_apply yet. + See Constructing Calls: Dispatching a call to another function.

    +
  • -
  • Although many GCC extensions are supported, some are not. In particular, - the following extensions are known to not be supported: +
  • llvm-gcc partially supports these GCC extensions:

      -
    1. Local Labels: Labels local to a block.
    2. -
    3. Nested Functions: As in Algol and Pascal, lexical scoping of functions.
    4. -
    5. Constructing Calls: Dispatching a call to another function.
    6. -
    7. Extended Asm: Assembler instructions with C expressions as operands.
    8. -
    9. Constraints: Constraints for asm operands.
    10. -
    11. Asm Labels: Specifying the assembler name to use for a C symbol.
    12. -
    13. Explicit Reg Vars: Defining variables residing in specified registers.
    14. -
    15. Vector Extensions: Using vector instructions through built-in functions.
    16. -
    17. Target Builtins: Built-in functions specific to particular targets.
    18. -
    19. Thread-Local: Per-thread variables.
    20. -
    21. Pragmas: Pragmas accepted by GCC.
    22. -
    +
  • Nested Functions: -

    The following GCC extensions are partially supported. An ignored - attribute means that the LLVM compiler ignores the presence of the attribute, - but the code should still work. An unsupported attribute is one which is - ignored by the LLVM compiler and will cause a different interpretation of - the program.

    - -
      -
    1. Variable Length: - Arrays whose length is computed at run time.
      - Supported, but allocated stack space is not freed until the function returns (noted above).
    2. + As in Algol and Pascal, lexical scoping of functions. + Nested functions are supported, but llvm-gcc does not support + taking the address of a nested function (except on the X86-32 target) + or non-local gotos.
    3. Function Attributes: Declaring that functions have no side effects or that they can never return.
      - Supported: format, format_arg, non_null, - noreturn, constructor, destructor, - unused, - deprecated, warn_unused_result, weak
      - - Ignored: noinline, - always_inline, pure, const, nothrow, - malloc, no_instrument_function, cdecl
      - - Unsupported: used, section, alias, - visibility, regparm, stdcall, - fastcall, all other target specific attributes
    4. - -
    5. Variable Attributes: - Specifying attributes of variables.
      - Supported: cleanup, common, nocommon, - deprecated, transparent_union, - unused, weak
      + Supported: alias, always_inline, cdecl, + const, constructor, destructor, + deprecated, fastcall, format, + format_arg, non_null, noinline, + noreturn, pure, regparm + section, stdcall, unused, used, + visibility, warn_unused_result, weak
      - Unsupported: aligned, mode, packed, - section, shared, tls_model, - vector_size, dllimport, - dllexport, all target specific attributes.
    6. - -
    7. Type Attributes: Specifying attributes of types.
      - Supported: transparent_union, unused, - deprecated, may_alias
      - - Unsupported: aligned, packed, - all target specific attributes.
    8. - -
    9. Other Builtins: - Other built-in functions.
      - We support all builtins which have a C language equivalent (e.g., - __builtin_cos), __builtin_alloca, - __builtin_types_compatible_p, __builtin_choose_expr, - __builtin_constant_p, and __builtin_expect - (currently ignored). We also support builtins for ISO C99 floating - point comparison macros (e.g., __builtin_islessequal), and - __builtin_prefetch.
    10. + Ignored: nothrow, malloc, + no_instrument_function
    +
  • -

    The following extensions are known to be supported:

    +
  • llvm-gcc supports the vast majority of GCC extensions, including:

      +
    1. Pragmas: Pragmas accepted by GCC.
    2. +
    3. Local Labels: Labels local to a block.
    4. +
    5. Other Builtins: + Other built-in functions.
    6. +
    7. Variable Attributes: + Specifying attributes of variables.
    8. +
    9. Type Attributes: Specifying attributes of types.
    10. +
    11. Thread-Local: Per-thread variables.
    12. +
    13. Variable Length: + Arrays whose length is computed at run time.
    14. Labels as Values: Getting pointers to labels and computed gotos.
    15. Statement Exprs: Putting statements and declarations inside expressions.
    16. Typeof: typeof: referring to the type of an expression.
    17. @@ -413,6 +575,12 @@ work:
    18. Empty Structures: Structures with no members.
    19. Variadic Macros: Macros with a variable number of arguments.
    20. Escaped Newlines: Slightly looser rules for escaped newlines.
    21. +
    22. Extended Asm: Assembler instructions with C expressions as operands.
    23. +
    24. Constraints: Constraints for asm operands.
    25. +
    26. Asm Labels: Specifying the assembler name to use for a C symbol.
    27. +
    28. Explicit Reg Vars: Defining variables residing in specified registers.
    29. +
    30. Vector Extensions: Using vector instructions through built-in functions.
    31. +
    32. Target Builtins: Built-in functions specific to particular targets.
    33. Subscripting: Any array can be subscripted, even if not an lvalue.
    34. Pointer Arith: Arithmetic on void-pointers and function pointers.
    35. Initializers: Non-constant initializers.
    36. @@ -450,44 +618,16 @@ lists, please let us know (also including whether or not they work).

      -

      For this release, the C++ front-end is considered to be fully +

      The C++ front-end is considered to be fully tested and works for a number of non-trivial programs, including LLVM -itself.

      - -
      - - -
      Bugs
      - -
      - -
        -
      • The C++ front-end inherits all problems afflicting the C - front-end.
      • - -
      • IA-64 specific: The C++ front-end does not use IA64 ABI compliant layout of v-tables. -In particular, it just stores function pointers instead of function -descriptors in the vtable. This bug prevents mixing C++ code compiled with -LLVM with C++ objects compiled by other C++ compilers.
      • - -
      - -
      - - -
      - Notes -
      - -
      +itself, Qt, Mozilla, etc.