summaryrefslogtreecommitdiff
path: root/compiler/ghc.cabal.in
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2011-06-16 17:22:47 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2011-06-16 17:22:47 +0100
commit592def09c4f87f517b31aa4c4cec51fc8764a859 (patch)
treeb58f5a48359a2cc59fe98200da0bfcfbe8da6aee /compiler/ghc.cabal.in
parentbe4726edd34422d804b542d42dc0bb1f036ab2dd (diff)
downloadhaskell-592def09c4f87f517b31aa4c4cec51fc8764a859.tar.gz
Add dynamically-linked plugins (see Trac #3843)
This patch was originally developed by Max Bolingbroke, and worked on further by Austin Seipp. It allows you to write a Core-to-Core pass and have it dynamically linked into an otherwise-unmodified GHC, and run at a place you specify in the Core optimisation pipeline. Main components: - CoreMonad: new types Plugin, PluginPass plus a new constructor CoreDoPluginPass in CoreToDo - SimplCore: stuff to dynamically load any plugins, splice them into the core-to-core pipeline, and invoke them - Move "getCoreToDo :: DynFlags -> [CoreToDo]" which constructs the main core-to-core pipeline from CoreMonad to SimplCore SimplCore is the driver for the optimisation pipeline, and it makes more sense to have the pipeline construction in the driver not in the infrastructure module. - New module DynamicLoading: invoked by SimplCore to load any plugins Some consequential changes in Linker. - New module GhcPlugins: this should be imported by plugin modules; it it not used by GHC itself.
Diffstat (limited to 'compiler/ghc.cabal.in')
-rw-r--r--compiler/ghc.cabal.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/ghc.cabal.in b/compiler/ghc.cabal.in
index 841d85e6c0..2711c1b20e 100644
--- a/compiler/ghc.cabal.in
+++ b/compiler/ghc.cabal.in
@@ -314,6 +314,8 @@ Library
Finder
GHC
GhcMake
+ GhcPlugins
+ DynamicLoading
HeaderInfo
HscMain
HscStats