X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FReleaseNotes.html;h=03d2db112fad6312dfa84e06cd9e004d762e7ae2;hb=418d360518811121ad9352af57fdd7ba58a4f917;hp=0c1125550c831619be7211b0350dea5cb03ca153;hpb=8a458764d69892b824f760a3308d608d5750abf4;p=oota-llvm.git diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html index 0c1125550c8..03d2db112fa 100644 --- a/docs/ReleaseNotes.html +++ b/docs/ReleaseNotes.html @@ -4,11 +4,11 @@ - LLVM 1.5 Release Notes + LLVM 2.0 Release Notes -
LLVM 1.5 Release Notes
+
LLVM 2.0 Release Notes
  1. Introduction
  2. @@ -20,7 +20,7 @@
-

Written by the LLVM Team

+

Written by the LLVM Team

@@ -32,23 +32,22 @@

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 major 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.0. 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, +

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 the current or previous releases, see the releases page.

+href="http://llvm.org/releases/">releases page.

@@ -60,212 +59,416 @@ href="http://llvm.cs.uiuc.edu/releases/">releases page.

-

This is the sixth public release of the LLVM Compiler Infrastructure.

+

This is the eleventh public release of the LLVM Compiler Infrastructure. +Being the first major release since 1.0, this release is different in several +ways from our previous releases:

-

At this time, LLVM is known to correctly compile a wide range of C and C++ -programs, including the SPEC CPU95 & 2000 suite. It includes bug fixes for -those problems found since the 1.4 release and a large number of new features -and enhancements, described below.

+
    +
  1. We took this as an opportunity to +break backwards compatibility with the LLVM 1.x bytecode and .ll file format. +If you have LLVM 1.9 .ll files that you would like to upgrade to LLVM 2.x, we +recommend the use of the stand alone llvm-upgrade +tool (which is included with 2.0). We intend to keep compatibility with .ll +and .bc formats within the 2.x release series, like we did within the 1.x +series.
  2. +
  3. There are several significant change to the LLVM IR and internal APIs, such + as a major overhaul of the type system, the completely new bitcode file + format, etc (described below).
  4. +
  5. We designed the release around a 6 month release cycle instead of the usual + 3-month cycle. This gave us extra time to develop and test some of the + more invasive features in this release.
  6. +
  7. LLVM 2.0 no longer supports the llvm-gcc3 front-end. Users are required to + upgrade to llvm-gcc4. llvm-gcc4 includes many features over + llvm-gcc3, is faster, and is much easier to + build from source.
  8. +
+ +

Note that while this is a major version bump, this release has been + extensively tested on a wide range of software. It is easy to say that this + is our best release yet, in terms of both features and correctness. This is + the first LLVM release to correctly compile and optimize major software like + LLVM itself, Mozilla/Seamonkey, Qt 4.3rc1, kOffice, etc out of the box on + linux/x86. +

-New Features in LLVM 1.5 +New Features in LLVM 2.0
-
New Native Code Generators
- +
Major Changes
-

-This release includes new native code generators for Alpha, IA-64, and SPARC-V8 (32-bit -SPARC). These code generators are still beta quality, but are progressing -rapidly. -

+ +

Changes to the LLVM IR itself:

+ + + +

Major new features:

+ + +
- -
New Instruction Selector Framework
+ +
llvm-gcc +Improvements
-

This release includes a new framework -for building instruction selectors, which has long been the hardest part of -building a new LLVM target. This framework handles a lot of the mundane (but -easy to get wrong) details of writing the instruction selector, such as -generating efficient code for getelementptr instructions, promoting -small integer types to larger types (e.g. for RISC targets with one size of -integer registers), expanding 64-bit integer operations for 32-bit hosts, etc. -Currently, the X86, PowerPC, Alpha, and IA-64 backends use this framework. The -SPARC backends will be migrated when time permits. +

New features include:

+ + +
-
New Support For Custom Calling Convetions
+
Optimizer +Improvements
-

LLVM 1.5 adds supports for custom and -target-specific calling conventions. Traditionally, the LLVM code -generators match the native C calling conventions for a target. This is -important for compatibility, but is not very flexible. This release allows -custom calling conventions to be established for functions, and defines three -target-independent conventions (C call, fast call, and cold call) which may be -supported by code generators. When possible, the LLVM optimizer promotes C -functions to use the "fastcc" convention, allowing the use of more efficient -calling sequences (e.g., parameters are passed in registers in the X86 target). +

New features include:

-

Targets may now also define target-specific calling conventions, allowing -LLVM to fully support calling convention altering options (e.g. GCC's --mregparm flag) and well-defined target conventions (e.g. stdcall and -fastcall on X86).

+ +
-
New Support for "Proper Tail Calls"
+
Code +Generator Enhancements
-

The release now includes support for proper tail calls, as -required to implement languages like Scheme. Tail calls make use of two -features: custom calling conventions (described above), which allow the code -generator to emit code for the caller to deallocate its own stack when it -returns. The second feature is a flag on the call -instruction, which indicates that the callee does not access the callers -stack frame (indicating that it is acceptable to deallocate the caller stack -before invoking the callee). LLVM proper tail calls run on the system stack (as -do normal calls), supports indirect tail calls, tail calls with arbitrary -numbers of arguments, tail calls where the callee requires more argument space -than the caller, etc. The only case not supported are varargs calls, but that -could be added if desired. +

+New features include:

-

In order for a front-end to get guaranteed tail call, it must mark functions -as "fastcc", mark calls with the 'tail' marker, and follow the call with a -return of the called value (or void). The optimizer and code generator attempt -to handle more general cases, but the simple case will always work if the code -generator supports tail calls. Here is a simple example:

+ + +

+Other improvements include: +

+ + + +

In addition, the LLVM target description format has itself been extended in + several ways:

+ + -

In LLVM 1.5, the X86 code generator is the only target that has been enhanced -to support proper tail calls (other targets will be enhanced in future). -Further, because this support was added very close to the release, it is -disabled by default. Pass -enable-x86-fastcc to llc to enable it. X86 -support will be enabled by default in the next LLVM release.

-
Other New Features
+
Target-Specific +Improvements
-
    -
  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. Support for Microsoft Visual Studio is improved, and now documented.
  6. -
  7. Configuring LLVM to build a subset - of the available targets is now implemented, via the - --enable-targets= option.
  8. -
  9. LLVM can now create native shared libraries with 'llvm-gcc ... - -shared -Wl,-native' (or with -Wl,-native-cbe).
  10. -
  11. LLVM now supports a new "llvm.prefetch - " intrinsic, and llvm-gcc now supports __builtin_prefetch. -
  12. LLVM now supports intrinsics for bit - counting and llvm-gcc now implements the GCC - __builtin_popcount, __builtin_ctz, and - __builtin_clz builtins.
  13. -
  14. LLVM now builds on HP-UX with the HP aCC Compiler.
  15. -
  16. The LLVM X86 backend can now emit Cygwin-compatible .s files.
  17. -
  18. LLVM now includes workarounds in the code generator generator which - reduces the likelyhood of GCC - hitting swap during optimized builds.
  19. -
-
- -
-Code Quality Improvements in LLVM 1.5 +

X86-specific Code Generator Enhancements: +

+ + + +

ARM-specific Code Generator Enhancements:

+ + + +

PowerPC-specific Code Generator Enhancements:

+ + +
+ + +
Other Improvements
-
    -
  1. The -globalopt pass now promotes non-address-taken static globals that are -only accessed in main to SSA registers.
  2. -
  3. Loops with trip counts based on array pointer comparisons (e.g. "for (i -= 0; &A[i] != &A[100]; ++i) ...") are optimized better than before, -which primarily helps iterator-intensive C++ codes.
  4. +

    More specific changes include:

    -
  5. The code generator now uses information about takes advantage of commutative -two-address instructions when performing register allocation.
  6. +
-
+
  • LLVM now has significantly fewer static constructors, reducing startup time. +
  • - -
    -Significant Bugs Fixed in LLVM 1.5 +
  • Several classes have been refactored to reduce the amount of code that + gets linked into apps that use the JIT.
  • + +
  • Construction of intrinsic function declarations has been simplified.
  • + +
  • The gccas/gccld tools have been replaced with small shell scripts.
  • + +
  • Support has been added to llvm-test for running on low-memory + or slow machines (make SMALL_PROBLEM_SIZE=1).
  • + +
    + +
    API Changes
    +

    LLVM 2.0 contains a revamp of the type system and several other significant +internal changes. If you are programming to the C++ API, be aware of the +following major changes:

    -

    Bugs fixed in the LLVM Core:

    -
      -
    1. [dse] DSE deletes stores that - are partially overwritten by smaller stores
    2. -
    3. [instcombine] miscompilation of - setcc or setcc in one case
    4. -
    5. Transition code for LLVM 1.0 style varargs was removed from the .ll file - parser. LLVM 1.0 bytecode files are still supported.
    6. -
    +
    +
    Portability and Supported Platforms @@ -277,12 +480,14 @@ two-address instructions when performing register allocation.

    LLVM is known to work on the following platforms:

    @@ -306,7 +511,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.

    @@ -322,169 +527,213 @@ 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.

    - Known problems with the LLVM Core + Known problems with the X86 back-end
    +
    - Known problems with the C front-end + Known problems with the PowerPC back-end
    - -
    Bugs
    +
    + + + +
    + + +
    + Known problems with the ARM back-end +
    + + +
    + + +
    + Known problems with the SPARC back-end +
    +
    + + +
    - -
    - Notes + +
    + Known problems with the Alpha back-end
    +
    -
  • Although many GCC extensions are supported, some are not. In particular, - the following extensions are known to not be supported: -
      -
    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. -
    + + -

    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. +
        -
      • Function Attributes: +
      • 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.)
      • - Declaring that functions have no side effects or that they can never - return.
        +
      • 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.
      • - Supported: format, format_arg, non_null, - noreturn, constructor, destructor, - unused, - deprecated, warn_unused_result, weak
        +
      • 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.
      • - Ignored: noinline, - always_inline, pure, const, nothrow, - malloc, no_instrument_function, cdecl
        +
      • Defining vararg functions is not supported (but calling them is ok).
      • - Unsupported: used, section, alias, - visibility, regparm, stdcall, - fastcall, all other target specific attributes - -
      • Variable Attributes: - Specifying attributes of variables.
        - Supported: cleanup, common, nocommon, - deprecated, transparent_union, - unused, weak
        +
      • The Itanium backend has bitrotted somewhat.
      • +
      - Unsupported: aligned, mode, packed, - section, shared, tls_model, - vector_size, dllimport, - dllexport, all target specific attributes. +
    -
  • Type Attributes: Specifying attributes of types.
    - Supported: transparent_union, unused, - deprecated, may_alias
    + + - Unsupported: aligned, packed, - all target specific attributes.
  • +
    -
  • 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), - __builtin_prefetch, __builtin_popcount[ll], - __builtin_clz[ll], and __builtin_ctz[ll].
  • + + +
    + + + +
    + Known problems with the C front-end +
    + + +
    Bugs
    + +
    + +

    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.

    + +
    + + +
    + Notes +
    + +
    +