[commit: ghc] master: Extract hard-coded LLVM opt flags into a file (a4ae199)

git at git.haskell.org git at git.haskell.org
Wed May 30 20:31:03 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/a4ae199cf810a63444a4ef24a44b33329023cd93/ghc

>---------------------------------------------------------------

commit a4ae199cf810a63444a4ef24a44b33329023cd93
Author: Kavon Farvardin <kavon at farvard.in>
Date:   Sun May 27 11:49:25 2018 -0400

    Extract hard-coded LLVM opt flags into a file
    
    To resolve ticket #11295, I think it makes sense to stop hard-coding
    the pass sequences used by GHC when compiling with LLVM into the
    compiler
    itself.
    
    This patchset introduces a companion to the existing `llvm-targets` file
    called `llvm-passes`. The passes file is a simple association list that
    holds the default LLVM `opt` pass sequence used by GHC. This allows end
    users to easily save their favorite optimization flags when compiling
    with LLVM.
    
    The main benefit for ticket #11295 is that when adding a custom pass
    sequence, it tends to be an extremely long string that would be
    unsightly in the code.
    
    This is essentially part 1 of 2 for ticket #11295.
    
    Test Plan: ./validate
    
    Reviewers: bgamari, angerman
    
    Reviewed By: angerman
    
    Subscribers: rwbarton, thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D4695


>---------------------------------------------------------------

a4ae199cf810a63444a4ef24a44b33329023cd93
 compiler/main/DriverPipeline.hs | 10 ++++++----
 compiler/main/DynFlags.hs       | 13 +++++++++----
 compiler/main/GHC.hs            |  4 ++--
 compiler/main/SysTools.hs       | 26 ++++++++++++++++----------
 ghc.mk                          |  7 ++++---
 ghc/GHCi/UI.hs                  |  8 ++++++--
 ghc/ghc.mk                      |  6 +++++-
 llvm-passes                     |  5 +++++
 8 files changed, 53 insertions(+), 26 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc a4ae199cf810a63444a4ef24a44b33329023cd93


More information about the ghc-commits mailing list