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...
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",
--- /dev/null
+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
+