Changes between Version 7 and Version 8 of Commentary/Compiler/Backends/LLVM/Installing


Ignore:
Timestamp:
Mar 30, 2010 5:44:12 AM (4 years ago)
Author:
dterei
Comment:

Add patches for llvm 2.5 & 2.6

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/Backends/LLVM/Installing

    v7 v8  
    2121The LLVM code generator doesn't support at this time the {{{TABLES_NEXT_TO_CODE}}} optimisation due to limitations with LLVM. 
    2222 
    23 You will also need LLVM installed on your computer to use the back-end. Version '''2.7''' or later is supported. If you want to use the back-end in an unregistered ghc build, then you can use a vanilla build of LLVM. 
     23== LLVM === 
     24 
     25You will also need LLVM installed on your computer to use the back-end. If you wish to simply use an unregistered build of GHC, then the back-end should work with any standard LLVM version. If you wish to use a registered build of GHC however, then you may need to apply a patch to LLVM and build it yourself: 
     26 
     27 * '''Version 2.7''': (or later) natively support GHC, no patch is needed. 
     28 * '''Version 2.6''': Apply this [http://www.cse.unsw.edu.au/~davidt/downloads/llvm-ghc-callconv-2.6.patch patch] to the source code. 
     29 * '''Version 2.5''': Apply this [http://www.cse.unsw.edu.au/~davidt/downloads/llvm-ghc-callconv-2.5.patch patch] to the source code. 
     30 
     31The patches can be applied with: 
     32{{{ 
     33$ cd llvm 
     34$ patch -p0 -i <patch file> 
     35}}} 
    2436 
    2537LLVM is very easy to build and install. It can be done as follows: