Add vectorise subdirectory and dummy module
authorRoman Leshchinskiy <rl@cse.unsw.edu.au>
Fri, 29 Jun 2007 05:13:16 +0000 (05:13 +0000)
committerRoman Leshchinskiy <rl@cse.unsw.edu.au>
Fri, 29 Jun 2007 05:13:16 +0000 (05:13 +0000)
compiler/Makefile
compiler/package.conf.in
compiler/vectorise/Vectorise.hs [new file with mode: 0644]

index 5e5504b..dcaf18e 100644 (file)
@@ -367,7 +367,7 @@ SRC_HC_OPTS += -Istage$(stage)
 
 ALL_DIRS = \
   utils basicTypes types hsSyn prelude rename typecheck deSugar coreSyn \
-  specialise simplCore stranal stgSyn simplStg codeGen main \
+  vectorise specialise simplCore stranal stgSyn simplStg codeGen main \
   profiling parser cprAnalysis ndpFlatten iface cmm
 
 # Make sure we include Config.hs even if it doesn't exist yet...
index 806b094..3de7068 100644 (file)
@@ -277,6 +277,7 @@ import-dirs:   FPTOOLS_TOP_ABS"/compiler/stage"STAGE"/utils",
               FPTOOLS_TOP_ABS"/compiler/stage"STAGE"/deSugar",
               FPTOOLS_TOP_ABS"/compiler/stage"STAGE"/ghci",
               FPTOOLS_TOP_ABS"/compiler/stage"STAGE"/coreSyn",
+               FPTOOLS_TOP_ABS"/compiler/stage"STAGE"/vectorise",
               FPTOOLS_TOP_ABS"/compiler/stage"STAGE"/specialise",
               FPTOOLS_TOP_ABS"/compiler/stage"STAGE"/simplCore",
               FPTOOLS_TOP_ABS"/compiler/stage"STAGE"/stranal",
diff --git a/compiler/vectorise/Vectorise.hs b/compiler/vectorise/Vectorise.hs
new file mode 100644 (file)
index 0000000..720019b
--- /dev/null
@@ -0,0 +1,15 @@
+module Vectorise( vectorise )
+where
+
+#include "HsVersions.h"
+
+import DynFlags
+import HscTypes
+
+vectorise :: HscEnv -> ModGuts -> IO ModGuts
+vectorise hsc_env guts
+  | not (Opt_Vectorise `dopt` dflags) = return guts
+  | otherwise                         = return guts
+  where
+    dflags = hsc_dflags hsc_env
+