From d9ea017494c6895f04c5d79ccb990c831c67ef27 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 8 Aug 2006 17:27:28 +0000 Subject: [PATCH] First draft of the llvm 1.8 release notes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29570 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ReleaseNotes.html | 249 ++++++++++++++--------------------------- 1 file changed, 82 insertions(+), 167 deletions(-) diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html index ca47bc58e19..a3c33135d36 100644 --- a/docs/ReleaseNotes.html +++ b/docs/ReleaseNotes.html @@ -4,11 +4,11 @@ - LLVM 1.7 Release Notes + LLVM 1.8 Release Notes -
LLVM 1.7 Release Notes
+
LLVM 1.8 Release Notes
  1. Introduction
  2. @@ -32,9 +32,10 @@

    This document contains the release notes for the LLVM compiler -infrastructure, release 1.7. Here we describe the status of LLVM, including any +infrastructure, release 1.8. 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 releases 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.

    @@ -62,38 +63,30 @@ href="http://llvm.org/releases/">releases page.

    This is the eighth public release of the LLVM Compiler Infrastructure. This release incorporates a large number of enhancements and new features, -including vector support (Intel SSE and Altivec), a new GCC4.0-based -C/C++ front-end, Objective C/C++ support, inline assembly support, and many -other big features. +including DWARF debugging support (C and C++ on Darwin/PPC), improved inline +assembly support, a new nightly +tester, llvm-config enhancments, many bugs +fixed, and performance and compile time improvements.

    - +
    -

    LLVM 1.7 includes a brand new llvm-gcc, based on GCC 4.0.1. This version -of llvm-gcc solves many serious long-standing problems with llvm-gcc, including -all of those blocked by the llvm-gcc 4 meta -bug. In addition, llvm-gcc4 implements support for many new features, -including GCC inline assembly, generic vector support, SSE and Altivec -intrinsics, and several new GCC attributes. Finally, llvm-gcc4 is -significantly faster than llvm-gcc3, respects -O options, its -c/-S options -correspond to GCC's (they emit native code), supports Objective C/C++, and -it has debugging support well underway.

    - -

    If you can use it, llvm-gcc4 offers significant new functionality, and we -hope that it will replace llvm-gcc3 completely in a future release. -Unfortunately, it does not currently support C++ exception handling at all, and -it only works on Apple Mac OS/X machines with X86 or PowerPC processors. +

    The llvm-gcc4 C front-end now generates debugging info for C and C++. This +information is propagated through the compiler and the code generator can +currently produce DWARF debugging information from it. DWARF is a standard +debugging format used on many platforms, but currently LLVM only includes +target support for Mac OS X targets for the 1.8 release.

    @@ -104,174 +97,96 @@ Support
    -

    The LLVM IR and llvm-gcc4 front-end now fully support arbitrary GCC inline assembly. The LLVM X86 and PowerPC -code generators have initial support for it, -being able to compile basic statements, but are missing some features. Please -report any inline asm statements that crash the compiler or that are miscompiled -as bugs.

    +

    Inline assembly support is substantially improved in LLVM 1.8 over LLVM 1.7. +Many unsupported features are now supported, and inline asm support in the X86 +backend is far better. llvm-gcc4 now supports global register variables as +well.

    - +
    -

    LLVM 1.7 includes a new, fully functional, SPARC backend built in the -target-independent code generator. This SPARC backend includes support for -SPARC V8 and SPARC V9 subtargets (controlling whether V9 features can be used), -and targets the 32-bit SPARC ABI.

    - -

    The LLVM 1.7 release is the last release that will include the LLVM "SparcV9" -backend, which was the very first LLVM native code generator. It will -be removed in LLVM 1.8, being replaced with the new SPARC backend.

    - -
    - - - - -
    - -

    LLVM now includes significantly extended support for SIMD vectors in its -core instruction set. It now includes three new instructions for manipulating -vectors: extractelement, -insertelement, and -shufflevector. Further, -many bugs in vector handling have been fixed, and vectors are now supported by -the target-independent code generator. For example, if a vector operation is -not supported by a particular target, it will be correctly broken down and -executed as scalar operations.

    - -

    Because llvm-gcc3 does not support GCC generic vectors or vector intrinsics, -llvm-gcc4 must be used.

    -
    - - - - - -
    - -

    The LLVM X86 backend now supports Intel SSE 1, 2, and 3, and now uses scalar -SSE operations to implement scalar floating point math when the target supports -SSE1 (for floats) or SSE2 (for doubles). Vector SSE instructions are generated -by llvm-gcc4 when the generic vector mechanism or specific SSE intrinsics are -used. -

    - -

    The LLVM PowerPC backend now supports the Altivec instruction set, including -both GCC -maltivec and -faltivec modes. Altivec instructions are generated -by llvm-gcc4 when the generic vector mechanism or specific Altivec intrinsics -are used. +

    The Loop Optimizer pass now used "Loop-Closed SSA Form", which makes it +easier to update SSA form as loop transformations change the code. An +immediate benefit of this is that the loop unswitching pass can now unswitch +loops in more cases.

    - +
    -
      -
    • The Loop Unswitching pass (-loop-unswitch) has had several bugs - fixed, has several new features, and is enabled by default in llvmgcc3 - now.
    • -
    • The Loop Strength Reduction pass (-loop-reduce) is now enabled for - the X86 and Alpha backends.
    • -
    • The Instruction Combining pass (-instcombine) now includes a - framework and implementation for simplifying code based on whether computed - bits are demanded or not.
    • -
    • The Scalar Replacement of Aggregates pass (-scalarrepl) can now - promote simple unions to registers.
    • -
    • The Reassociation pass (-reassociate) can now - factor expressions, e.g. turning "A*A+A*B" into "A*(A+B)".
    • -
    • Several LLVM passes are significantly -faster.
    • -
    + +

    The code generator now lowers switch statements to jump tables, providing +significant performance boosts for applications (e.g. interpreters) whose +performance is highly correlated to switch statement performance.

    +
    - +
    -
      -
    • LLVM has a new prepass (before register allocation) list scheduler, which - supports bottom-up and top-down scheduling, pluggable priority functions and - pluggable hazard recognizers. The X86 backend uses this to reduce register - pressure and RISC targets schedule based on operation latency.
    • -
    • The tblgen-based target description framework introduced in LLVM 1.6 has - several new features, useful for targets that can fold loads and stores into - operations, and features that make the .td files more expressive.
    • -
    • The instruction selector is significantly faster in 1.7 than in 1.6.
    • -
    • The X86, Alpha and Itanium backends use new DAG-DAG instruction selectors, - making them easier to maintain and generate slightly better code.
    • -
    • The X86 backend now supports generation of Scalar SSE code for scalar FP - expressions. LLVM provides significantly better performance with Scalar SSE - instructions than it does with the Intel floating point stack - instructions.
    • -
    • The Itanium backend now has a bundling pass, which improves performance - by ~10% and reduces code size (previously it unconditionally inserted a stop - bit after every instruction).
    • -
    + +

    The LLVM JIT now allows clients to deallocate machine code JIT'd to its code +buffer. This is important for long living applications that depend on the JIT. +

    +
    - +
    + +

    This release includes many other improvements, including improvements to + the optimizers and code generators (improving the generated code) changes to + speed up the compiler in many ways (improving algorithms and fine tuning + code), and changes to reduce the code size of the compiler itself.

    + +

    More specific changes include:

    +
      -
    • The Mac OS/X PowerPC and X86 backends now have initial support for - Darwin DWARF - debugging information, however, debug info generation has been disabled for - the 1.7 release in llvmgcc4.
    • -
    • LLVM includes the new - llvm-config utility, which makes it easier to build and link programs - against the LLVM libraries when not using the LLVM makefiles.
    • -
    • LLVM now supports first class global ctor/dtor initialization lists, no - longer forcing targets to use "__main".
    • -
    • LLVM supports assigning globals and functions to a particular section - in the result executable using the GCC section attribute.
    • -
    • Adding intrinsics to LLVM is now - significantly easier.
    • -
    • llvmgcc4 now fully supports C99 Variable Length Arrays, including dynamic - stack deallocation.
    • +
    • LLVM 1.8 includes an initial ARM backend. This backend is in early + development stages.
    • +
    • LLVM 1.8 now includes significantly better support for mingw and + cygwin.
    • +
    • The llvm-config tool is + now built by default and has several new features.
    • +
    • The X86 and PPC backends now use the correct platform ABI for passing + vectors as arguments to functions.
    • +
    • The X86 backend now includes support for the Microsoft ML assembler + ("MASM").
    • +
    • The PowerPC backend now pattern matches the 'rlwimi' instruction more + aggressively.
    • +
    • Most of LLVM is now built with "-pedantic", ensuring better portability + to more C++ Compilers.
    • +
    • The PowerPC backend now includes initial 64-bit support. The JIT is not + complete, and the static compiler has a couple of known bugs, but support + is mostly in place. LLVM 1.9 will include completed PPC-64 support.
    -
      -
    • The official LLVM URL is now - http://llvm.org/.
    • -
    • The LLVM intrinsics used to be overloaded based on type: for example, - llvm.ctpop could work with any - integer datatype. They are now separated into different intrinsics with - suffixes to denote their argument type (e.g. llvm.ctpop.i32)). Old - LLVM .ll and .bc files that use these intrinsics will continue to work with - new LLVM versions (they are transparently upgraded by the parsers), but will - cause a warning to be emitted.
    • -
    • The llvm.readport, llvm.writeport, llvm.readio, - and llvm.writeio intrinsics have been removed. The first two - were ever only supported by the X86 backend, the last two were never - correctly supported by any target, and none were accessible through the - C front-end. Inline assembly support can now be used to - implement these operations.
    • -
    • The llvm-db tool had basic support for stepping through code, which - used the JIT. This code has been removed, and DWARF emission support added - instead. llvm-db still exists in CVS if someone wanted to write a - ptrace backend for it.
    • +
    • The LLVM "SparcV9" backend (deprecated in LLVM 1.7) has been removed in +LLVM 1.8. The LLVM "Sparc" backend replaces it.
    • +
    • The --version option now prints more useful information, including the + build configuration for the tool.
    @@ -382,8 +297,7 @@ components, please contact us on the llvmdev list.

    -llvm-gcc3 has many significant problems that are fixed by llvm-gcc4. See - those blocked on the llvm-gcc4 meta bug. +llvm-gcc3 has many significant problems that are fixed by llvm-gcc4. Two major ones include:

      @@ -401,6 +315,11 @@ Two major ones include:

      href="http://llvm.org/PR162">with the largest union member.
    + +

    llvm-gcc4 is far more stable and produces better code than llvm-gcc3, but +does not currently support Link-Time-Optimization or C++ Exception Handling, +which llvm-gcc3 does.

    +
    @@ -638,8 +557,7 @@ space if they depend on these (e.g. C99 varargs). @@ -718,19 +636,16 @@ programs. -