diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html index 352527e0c5c..0c1125550c8 100644 --- a/docs/ReleaseNotes.html +++ b/docs/ReleaseNotes.html @@ -33,8 +33,8 @@

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.

@@ -60,48 +60,124 @@ href="http://llvm.cs.uiuc.edu/releases/">releases page.

-

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

+

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.

+

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.

-
-This release implements the following new features: +
+New Features in LLVM 1.5
+ +
New Native Code Generators
+ +
+

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

+
+ + +
New Instruction Selector Framework
+ +
+

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 Support For Custom Calling Convetions
+ +
+

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

+ +

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

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

+ +

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:

+ +

+fastcc int %bar(int %X, int(double, int)* %FP) {        ; fastcc
+     %Y = tail call fastcc int %FP(double 0.0, int %X)  ; tail, fastcc
+     ret int %Y
+}
+

+ +

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
+
  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. LLVM 1.5 is now about 15% faster than LLVM 1.4 and its core data + structures use about 30% less memory.
  8. Support for Microsoft Visual Studio is improved, and now documented.
  9. -
  10. Configuring LLVM to build targets selectively is now implemented, via the - --enable-targets= option. This feature is documented - here.
  11. -
  12. LLVM now supports custom and - target-specific calling conventions.
  13. -
- -
- - - -
-In this release, the following missing features were implemented: -
- -
- -
    +
  1. Configuring LLVM to build a subset + of the available targets is now implemented, via the + --enable-targets= option.
  2. LLVM can now create native shared libraries with 'llvm-gcc ... -shared -Wl,-native' (or with -Wl,-native-cbe).
  3. LLVM now supports a new "llvm.prefetch @@ -110,40 +186,38 @@ In this release, the following missing features were implemented: counting and llvm-gcc now implements the GCC __builtin_popcount, __builtin_ctz, and __builtin_clz builtins.
  4. -
- -
- - -
-In this release, the following Quality of Implementation -issues were fixed: -
- -
- -
    -
  1. Building LLVM in optimized mode - should no longer cause GCC to hit swap in the PowerPC backend.
  2. +
  3. LLVM now builds on HP-UX with the HP aCC Compiler.
  4. +
  5. The LLVM X86 backend can now emit Cygwin-compatible .s files.
  6. +
  7. LLVM now includes workarounds in the code generator generator which + reduces the likelyhood of GCC + hitting swap during optimized builds.
-
-This release includes the following Code Quality -improvements: +
    -
  1. Transition code for 1.0 style varargs was removed.
  2. +
  3. The -globalopt pass now promotes non-address-taken static globals that are +only accessed in main to SSA registers.
  4. + +
  5. 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.
  6. + +
  7. The code generator now uses information about takes advantage of commutative +two-address instructions when performing register allocation.
  8. + +
-
-In this release, the following bugs in the previous release -were fixed: +
@@ -155,6 +229,8 @@ were fixed: are partially overwritten by smaller stores
  • [instcombine] miscompilation of setcc or setcc in one case
  • +
  • Transition code for LLVM 1.0 style varargs was removed from the .ll file + parser. LLVM 1.0 bytecode files are still supported.
  • Code Generator Bugs: