X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FReleaseNotes.html;h=d2c61176fa67216220d37a5ee1b6f4cebb874bd4;hb=636e5a216c8dab7567b5e5d8d1c7d982f507f7eb;hp=f557b12389238e99ad3853ed22fb88cf3ded8306;hpb=f254836c3a4e4019639a220bad763bd046a4d388;p=oota-llvm.git diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html index f557b123892..d2c61176fa6 100644 --- a/docs/ReleaseNotes.html +++ b/docs/ReleaseNotes.html @@ -4,11 +4,11 @@ - LLVM 1.6 Release Notes + LLVM 2.1 Release Notes -
LLVM 1.6 Release Notes
+
LLVM 2.1 Release Notes
  1. Introduction
  2. @@ -32,12 +32,10 @@

    This document contains the release notes for the LLVM compiler -infrastructure, release 1.6. 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.6 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 @@ -45,10 +43,10 @@ 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,191 +58,233 @@ href="http://llvm.org/releases/">releases page.

    -

    This is the seventh public release of the LLVM Compiler Infrastructure. This -release incorporates a large number of enhancements and additions (primarily in -the code generator), which combine to improve the quality of the code generated -by LLVM by up to 30% in some cases. This release is also the first release to -have first-class support for Mac OS X: all of the major bugs have been shaken -out and it is now as well supported as Linux on X86.

    +

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

    -New Features in LLVM 1.6 +New Frontends
    - -
    Instruction Selector -Generation from Target Description
    -
    -

    LLVM now includes support for auto-generating large portions of the -instruction selectors from target descriptions. This allows us to -write patterns in the target .td file, instead of writing lots of -nasty C++ code. Most of the PowerPC instruction selector is now -generated from the PowerPC target description files and other targets -are adding support that will be live for LLVM 1.7.

    -

    For example, here are some patterns used by the PowerPC backend. A -floating-point multiply then subtract instruction (FMSUBS):

    +

    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!

    -

    -(set F4RC:$FRT, (fsub (fmul F4RC:$FRA, F4RC:$FRC), F4RC:$FRB)) -

    +

    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.

    -

    Exclusive-or by 16-bit immediate (XORI):

    +
    -

    -(set GPRC:$dst, (xor GPRC:$src1, immZExt16:$src2)) -

    + +
    +Optimizer Improvements +
    -

    Exclusive-or by 16-bit immediate shifted right 16-bits (XORIS):

    +
    -

    -(set GPRC:$dst, (xor GPRC:$src1, imm16Shifted:$src2)) -

    +

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

    -

    With these definitions, we teach the code generator how to combine these two -instructions to xor an abitrary 32-bit immediate with the following -definition. The first line specifies what to match (a xor with an arbitrary -immediate) the second line specifies what to produce:

    +
    - -
    Instruction Scheduling -Support
    + +
    +Code Generator Improvements +
    -

    Instruction selectors using the refined instruction selection framework can now -use a simple pre-pass scheduler included with LLVM 1.6. This scheduler is -currently simple (cannot be configured much by the targets), but will be -extended in the future.

    -
    +

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

    - -
    Code Generator Subtarget -Support
    + - -
    Other New Features
    + + +
    +Target Specific Improvements +
    -
      -
    1. The JIT now uses mutexes to protect its internal data structures. This - allows multi-threaded programs to be run from the JIT or interpreter without - corruption of the internal data structures. See - PR418 and - PR540 for the details. -
    2. -
    3. LLVM on Win32 no longer requires sed, - flex, or bison when compiling with Visual C++.
    4. -
    5. The llvm-test suite can now use the NAG Fortran to C compiler to compile - SPEC FP programs if available (allowing us to test all of SPEC'95 & - 2000).
    6. -
    7. When bugpoint is grinding away and the user hits ctrl-C, it now - gracefully stops and gives what it has reduced so far, instead of - giving up completely. In addition, the JIT - debugging mode of bugpoint is much faster.
    8. -
    9. LLVM now includes Xcode project files in the llvm/Xcode directory.
    10. -
    11. LLVM now supports Mac OS X on Intel.
    12. -
    13. LLVM now builds cleanly with GCC 4.1.
    14. -
    +

    New features include: +

    + + +
    +
    -Code Quality Improvements in LLVM 1.6 +llvm-gcc Improvements
    -
      -
    1. The -globalopt pass can now statically evaluate C++ static - constructors when they are simple enough. For example, it can - now statically initialize "struct X { int a; X() : a(4) {} } g;". -
    2. -
    3. The Loop Strength Reduction pass has been completely rewritten, is far - more aggressive, and is turned on by default in the RISC targets. On PPC, - we find that it often speeds up programs from 10-40% depending on the - program.
    4. -
    5. The code produced when exception handling is enabled is far more - efficient in some cases, particularly on Mac OS X.
    6. -
    +

    New features include: +

    + + +
    -Code Generator Improvements in LLVM 1.6 +LLVM Core Improvements
    -
      -
    1. The Alpha backend is substantially more stable and robust than in LLVM 1.5. - For example, it now fully supports varargs functions. The Alpha backend - also now features beta JIT support.
    2. -
    3. The code generator contains a new component, the DAG Combiner. This allows - us to optimize lowered code (e.g. after 64-bit operations have been lowered - to use 32-bit registers on 32-bit targets) and do fine-grained bit-twiddling - optimizations for the backend.
    4. -
    5. The SelectionDAG infrastructure is far more capable and mature, able to - handle many new target peculiarities in a target-independent way.
    6. -
    7. The default register allocator is now far - faster on some testcases, - particularly on targets with a large number of registers (e.g. IA64 - and PPC).
    8. -
    +

    New features include: +

    + + +
    -Significant Bugs Fixed in LLVM 1.6 +Other Improvements
    -
      -
    1. A vast number of bugs have been fixed in the PowerPC backend and in - llvm-gcc when configured for Mac OS X (particularly relating to ABI - issues). For example: - PR449, - PR594, - PR603, - PR609, - PR630, - PR643, - and several others without bugzilla bugs.
    2. -
    3. Several bugs in tail call support have been fixed.
    4. -
    5. configure does not correctly detect gcc - version on cygwin.
    6. -
    7. Many many other random bugs have been fixed. Query our bugzilla with a target of 1.6 for more - information.
    8. -
    +

    New features include: +

    + + +
    @@ -258,12 +298,14 @@ this case, using "llc -march=ppc32 -mcpu=g5 -mattr=-altivec".

    LLVM is known to work on the following platforms:

    @@ -303,32 +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.

    + + + + + + +
    + Known problems with the X86 back-end +
    + +
    - Known problems with the LLVM Core + Known problems with the PowerPC back-end
    +
    + +
    + Known problems with the ARM back-end +
    + +
    + + + +
    + + +
    + Known problems with the SPARC back-end +
    + +
    + + + +
    + + +
    + Known problems with the Alpha back-end +
    + +
    + + +
    + + +
    + Known problems with the IA64 back-end +
    + +
    + + + +
    + + +
    + Known problems with the C back-end +
    + +
    + + + +
    + +
    Known problems with the C front-end @@ -338,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.

    +
    @@ -360,103 +513,56 @@ href="http://llvm.org/PR162">with the largest union member.
    -