[GHC] #13427: Per-function code-generation options

GHC ghc-devs at haskell.org
Tue Mar 14 20:00:59 UTC 2017


#13427: Per-function code-generation options
-------------------------------------+-------------------------------------
           Reporter:  bgamari        |             Owner:  (none)
               Type:  feature        |            Status:  new
  request                            |
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.0.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 On ghc-devs Ed Kmett has [[https://mail.haskell.org/pipermail/ghc-
 devs/2017-March/013923.html|asked]] for some way to more precisely specify
 code generation options (e.g. should AVX be used?).

 This idea has taken a few different shapes in the thread, but I suspect
 that the most sensible approach is add something like a `TARGET` pragma,
 which the user could attach to a top-level binding. Since the interactions
 with inlining are non-trivial, I suspect you would want to require that
 this only be applied to `NOINLINE` bindings.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13427>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list