X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=docs%2FReleaseNotes.html;h=e5378ba9602a0973df56db40ba8ed0d3ea22fc19;hp=9da8786fe7ce334c9bdf9ad3366684884cd788a2;hb=c0c186d140b75fc3b2e4e3632f826a40cf4f8626;hpb=0bce6ace1860c720b9e3e208011a65682038be2f diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html index 9da8786fe7c..e5378ba9602 100644 --- a/docs/ReleaseNotes.html +++ b/docs/ReleaseNotes.html @@ -4,11 +4,11 @@ - LLVM 1.5 Release Notes + LLVM 1.6 Release Notes -
LLVM 1.5 Release Notes
+
LLVM 1.6 Release Notes
  1. Introduction
  2. @@ -16,22 +16,11 @@
  3. Installation Instructions
  4. Portability and Supported Platforms
  5. Known Problems -
  6. Additional Information
-

Written by the LLVM Team

+

Written by the LLVM Team

@@ -43,15 +32,15 @@

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

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.

@@ -59,7 +48,7 @@ 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.

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

@@ -71,85 +60,191 @@ 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 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 release implements the following new features: +
+New Features in LLVM 1.6
+ +
Instruction Selector +Generation from Target Description
+
-
    -
  1. -
+

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

+ +

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

+ +

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

+ +

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

+ +

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

+ +

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

+ +

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:

+ +

+

def : Pat<(xor GPRC:$in, imm:$imm),
+          (XORIS (XORI GPRC:$in, (LO16 imm:$imm)), (HI16 imm:$imm))>;
+
+

+ +
Instruction Scheduling +Support
- -
-In this release, the following missing features were implemented: +
+ +

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.

+ + +
+

It is now straight-forward to parameterize a target implementation, and +provide a mapping from CPU names to sets of target parameters. LLC now supports +a -mcpu=cpu option that lets you choose a subtarget by CPU name: use +"llvm-as < /dev/null | llc -march=XXX -mcpu=help" to get a list of +supported CPUs for target "XXX". It also provides a +-mattr=+attr1,-attr2 option that can be used to control individual +features of a target (the previous command will list available features as +well).

-
    -
  1. -
+

This functionality is nice when you want tell LLC something like "compile to +code that is specialized for the PowerPC G5, but doesn't use altivec code. In +this case, using "llc -march=ppc32 -mcpu=g5 -mattr=-altivec".

- - + +
-
    -
  1. +
  2. 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. +
  3. +
  4. LLVM on Win32 no longer requires sed, + flex, or bison when compiling with Visual C++.
  5. +
  6. 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).
  7. +
  8. 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.
  9. +
  10. LLVM now includes Xcode project files in the llvm/Xcode directory.
  11. +
  12. LLVM now supports Mac OS X on Intel.
  13. +
  14. LLVM now builds cleanly with GCC 4.1.
-
-This release includes the following Code Quality -improvements: +
    -
  1. +
  2. 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;". +
  3. +
  4. 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.
  5. +
  6. The code produced when exception handling is enabled is far more + efficient in some cases, particularly on Mac OS X.
+ -
-In this release, the following bugs in the previous release -were fixed: +
- -

Bugs fixed in the LLVM Core:

-
    -
  1. +
  2. 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.
  3. +
  4. 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.
  5. +
  6. The SelectionDAG infrastructure is far more capable and mature, able to + handle many new target peculiarities in a target-independent way.
  7. +
  8. 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).
+
-

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

+ + +
    -
  1. +
  2. 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.
  3. +
  4. Several bugs in tail call support have been fixed.
  5. +
  6. configure does not correctly detect gcc + version on cygwin.
  7. +
  8. Many many other random bugs have been fixed. Query our bugzilla with a target of 1.6 for more + information.
-
@@ -163,12 +258,14 @@ 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).
  • +
  • Intel and AMD machines running Red Hat Linux, Fedora Core and FreeBSD + (and probably other unix-like systems).
  • Sun UltraSPARC workstations running Solaris 8.
  • 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.
  • +
  • PowerPC and X86-based Mac OS X systems, running 10.2 and above.
  • +
  • Alpha-based machines running Debian GNU/Linux.
  • +
  • Itanium-based machines running Linux and HP-UX.

The core LLVM infrastructure uses @@ -190,7 +287,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.

@@ -210,16 +307,28 @@ components, please contact us on the llvmdev list.

  • The following passes are incomplete or buggy, and may be removed in future - releases: -pgmdep, -memdep, -ipmodref, -cee, -branch-combine, - -instloops, -paths, -pre
  • + releases: -cee, -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 and IA64 code generators are experimental.
  • +
  • The Alpha JIT is experimental.
+ + + +
+ + +
+ +
Known problems with the LLVM Core @@ -228,16 +337,8 @@ components, please contact us on the llvmdev list.

    -
  • 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.
  • +
  • In the JIT, dlsym() on a symbol compiled by the JIT will not + work.
@@ -261,7 +362,7 @@ components, please contact us on the llvmdev list.

  • Initialization of global union variables can only be done with the largest union member.
  • +href="http://llvm.org/PR162">with the largest union member.
    @@ -361,7 +462,9 @@ work: __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). + point comparison macros (e.g., __builtin_islessequal), + __builtin_prefetch, __builtin_popcount[ll], + __builtin_clz[ll], and __builtin_ctz[ll].

    The following extensions are known to be supported:

    @@ -431,12 +534,6 @@ itself.

  • 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.
  • -
    @@ -476,6 +573,28 @@ href="http://gcc.gnu.org/gcc-3.4/changes.html">GCC 3.4 release notes.
    + +
    + Known problems with the C back-end +
    + +
    + + + +
    +
    Known problems with the X86 back-end @@ -484,7 +603,21 @@ href="http://gcc.gnu.org/gcc-3.4/changes.html">GCC 3.4 release notes.
    + +
    + + +
    + Known problems with the PowerPC back-end +
    + +
    + +
    @@ -497,7 +630,7 @@ href="http://gcc.gnu.org/gcc-3.4/changes.html">GCC 3.4 release notes.
    @@ -505,39 +638,63 @@ several programs in the LLVM test suite
      -
    • none yet
    • + +
    • On 21164s, some rare FP arithmetic sequences which may trap do not have the +appropriate nops inserted to ensure restartability.
    • +
      -
    • The C back-end produces code that violates the ANSI C Type-Based Alias -Analysis rules. As such, special options may be necessary to compile the code -(for example, GCC requires the -fno-strict-aliasing option). This -problem probably cannot be fixed.
    • +
    • 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.)
    • -
    • Zero arg vararg functions are not -supported. This should not affect LLVM produced by the C or C++ -frontends.
    • +
    • 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).
    + + + +
    + +
      +
    • Many features are still missing (e.g. support for 64-bit integer +arithmetic). This back-end is in pre-beta state.
    • +
    +
    +
    Additional Information @@ -546,15 +703,17 @@ frontends.
    -

    A wide variety of additional information is available on the LLVM web page, -including mailing lists and publications describing algorithms and components -implemented in LLVM. The web page also contains versions of the API -documentation which is up-to-date with the CVS version of the source code. You -can access versions of these documents specific to this release by going into -the "llvm/doc/" directory in the LLVM tree.

    +

    A wide variety of additional information is available on the LLVM web page, including documentation and publications describing algorithms and +components implemented in LLVM. The web page also contains versions of the +API documentation which is up-to-date with the CVS version of the source code. +You can access versions of these documents specific to this release by going +into the "llvm/doc/" directory in the LLVM tree.

    If you have any questions or comments about LLVM, please feel free to contact -us via the mailing +us via the mailing lists.

    @@ -568,7 +727,7 @@ lists.

    Valid HTML 4.01! - The LLVM Compiler Infrastructure
    + The LLVM Compiler Infrastructure
    Last modified: $Date$