X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fcmm%2FCmmCvt.hs;h=4d413257bed6a6ca260c837032bce89c1e34f173;hb=7fc01c4671980ea3c66d549c0ece4d82fd3f5ade;hp=9f8279e87e8aeaecfece9b5611d7b3726349c3bf;hpb=617eb195e67525ffda967099fa8d9899e2b15ce8;p=ghc-hetmet.git diff --git a/compiler/cmm/CmmCvt.hs b/compiler/cmm/CmmCvt.hs index 9f8279e..4d41325 100644 --- a/compiler/cmm/CmmCvt.hs +++ b/compiler/cmm/CmmCvt.hs @@ -6,22 +6,17 @@ where import BlockId import Cmm -import CmmExpr import MkZipCfgCmm hiding (CmmGraph) -import ZipCfg -- imported for reverse conversion import ZipCfgCmmRep -- imported for reverse conversion import CmmZipUtil import PprCmm() import qualified ZipCfg as G import FastString -import Monad +import Control.Monad import Outputable -import Panic import UniqSupply -import Maybe - cmmToZgraph :: GenCmm d h (ListGraph CmmStmt) -> UniqSM (GenCmm d h (CmmStackInfo, CmmGraph)) cmmOfZgraph :: GenCmm d h (CmmStackInfo, CmmGraph) -> GenCmm d h (ListGraph CmmStmt) @@ -120,6 +115,7 @@ ofZgraph g = ListGraph $ swallow blocks mid (MidComment s) = CmmComment s mid (MidAssign l r) = CmmAssign l r mid (MidStore l r) = CmmStore l r + mid (MidForeignCall _ (PrimTarget MO_Touch) _ _) = CmmNop mid (MidForeignCall _ target ress args) = CmmCall (cmm_target target) (add_hints conv Results ress)