Changes between Version 3 and Version 4 of Commentary/Compiler/Backends/LLVM/Installing


Ignore:
Timestamp:
Mar 24, 2010 1:03:45 AM (5 years ago)
Author:
dterei
Comment:

Update for new build instructions now that llvm no longer needs patching

Legend:

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

    v3 v4  
    22= Installing & Using the LLVM Back-end = 
    33 
    4 The patches needed can be found at: 
     4The patch needed can be found at: 
    55 
    6  * GHC Patch (applies to GHC): http://www.cse.unsw.edu.au/~davidt/downloads/ghc-llvmbackend-latest.patch 
     6 * GHC Patch (applies to GHC): http://www.cse.unsw.edu.au/~davidt/downloads/ghc-llvmbackend-full.dpatch 
    77 
    8  * LLVM Patch (applies to LLVM): http://www.cse.unsw.edu.au/~davidt/downloads/llvm-ghc.patch 
     8The back-end also lives in a Git repository where the actual development work is done, this can be found at https://cgi.cse.unsw.edu.au/~davidt/cgit/cgit.cgi/Thesis%20GHC%20Dev/. The Git repository only includes the core back-end, not the changes needed to the rest of GHC. 
    99 
    10 These are the patches that you should be working with, they are 'stable'. The back-end also lives in a Git repository where the actual development work is done, this can be found at https://cgi.cse.unsw.edu.au/~davidt/cgit/cgit.cgi/Thesis%20GHC%20Dev/ 
    11  
     10'''Update (24/03/2010)''': The changes required to LLVM for it to work with the back-end have been accepted upstream. You now just need to grab a recent 2.7 (since Pre-release1) build of LLVM or build your own copy from SVN trunk. 
    1211 
    1312= Installing = 
     
    2423The LLVM code generator doesn't support at this time the {{{TABLES_NEXT_TO_CODE}}} optimisation due to limitations with LLVM. 
    2524 
    26 You will also need LLVM installed on your computer to use the back-end. Version 2.6 or SVN trunk is supported. If you want to use the back-end in an unregistered ghc build, then you can use a vanilla build of LLVM. However if you want to use a registered GHC build (very likely) then you need to patch LLVM for this to work using the patch provided above. 
     25You will also need LLVM installed on your computer to use the back-end. Version 2.7 or SVN trunk is supported. If you want to use the back-end in an unregistered ghc build, then you can use a vanilla build of LLVM. 
    2726 
    2827LLVM is very easy to build and install. It can be done as follows: 
     
    3130$ svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm 
    3231$ cd llvm 
    33 $ patch -p0 -i ~/llvm-ghc.patch 
    3432$ ./configure --enable-optimized # probably also want to set --prefix 
    3533$ make 
    3634$ make install 
    3735}}} 
    38  
    39 Just make sure this modified version of LLVM is on your path and takes precedence over any other builds. 
    4036 
    4137