Refactor SrcLoc and SrcSpan
[ghc-hetmet.git] / compiler / codeGen / CgParallel.hs
index 8cd5067..682f28a 100644 (file)
@@ -17,9 +17,10 @@ module CgParallel(
 import CgMonad
 import CgCallConv
 import Id
-import Cmm
+import OldCmm
 import StaticFlags
 import Outputable
+import SMRep
 
 staticParHdr :: [CmmLit]
 -- Parallel header words in a static closure
@@ -35,7 +36,7 @@ staticGranHdr = []
 
 doGranAllocate :: CmmExpr -> Code      
 -- macro DO_GRAN_ALLOCATE
-doGranAllocate hp 
+doGranAllocate _hp
   | not opt_GranMacros = nopC
   | otherwise         = panic "doGranAllocate"
 
@@ -55,12 +56,14 @@ granFetchAndReschedule regs node_reqd
   where
     liveness = mkRegLiveness regs 0 0
 
+fetch :: FCode ()
 fetch = panic "granFetch"
        -- Was: absC (CMacroStmt GRAN_FETCH [])
        --HWL: generate GRAN_FETCH macro for GrAnSim
        --     currently GRAN_FETCH and GRAN_FETCH_AND_RESCHEDULE are miai
 
-reschedule liveness node_reqd = panic "granReschedule"
+reschedule :: StgWord -> Bool -> Code
+reschedule _liveness _node_reqd = panic "granReschedule"
        -- Was: absC  (CMacroStmt GRAN_RESCHEDULE [
        --                mkIntCLit (I# (word2Int# liveness_mask)), 
        --                mkIntCLit (if node_reqd then 1 else 0)])
@@ -89,7 +92,8 @@ granYield regs node_reqd
   where
      liveness = mkRegLiveness regs 0 0
 
-yield liveness = panic "granYield"
+yield :: StgWord -> Code
+yield _liveness = panic "granYield"
        -- Was : absC (CMacroStmt GRAN_YIELD 
         --                  [mkIntCLit (I# (word2Int# liveness_mask))])