summaryrefslogtreecommitdiff
path: root/compiler/GHC/CmmToAsm.hs
diff options
context:
space:
mode:
authorCheng Shao <astrohavoc@gmail.com>2022-10-24 14:20:31 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-11-11 00:26:55 -0500
commit36340328a6a26529b1eb4ca0413dc87eb91fe700 (patch)
tree7cdb9320d2720ed67a84b80908a55e76939027ce /compiler/GHC/CmmToAsm.hs
parenta8adc71e80734c6dc2e119596368f84e39fd1172 (diff)
downloadhaskell-36340328a6a26529b1eb4ca0413dc87eb91fe700.tar.gz
compiler: wasm32 NCG
This patch adds the wasm32 NCG.
Diffstat (limited to 'compiler/GHC/CmmToAsm.hs')
-rw-r--r--compiler/GHC/CmmToAsm.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/GHC/CmmToAsm.hs b/compiler/GHC/CmmToAsm.hs
index 9fed66053a..37d77900ba 100644
--- a/compiler/GHC/CmmToAsm.hs
+++ b/compiler/GHC/CmmToAsm.hs
@@ -83,6 +83,7 @@ import GHC.Prelude hiding (head)
import qualified GHC.CmmToAsm.X86 as X86
import qualified GHC.CmmToAsm.PPC as PPC
import qualified GHC.CmmToAsm.AArch64 as AArch64
+import qualified GHC.CmmToAsm.Wasm as Wasm32
import GHC.CmmToAsm.Reg.Liveness
import qualified GHC.CmmToAsm.Reg.Linear as Linear
@@ -169,6 +170,7 @@ nativeCodeGen logger config modLoc h us cmms
ArchRISCV64 -> panic "nativeCodeGen: No NCG for RISCV64"
ArchUnknown -> panic "nativeCodeGen: No NCG for unknown arch"
ArchJavaScript-> panic "nativeCodeGen: No NCG for JavaScript"
+ ArchWasm32 -> Wasm32.ncgWasm platform us modLoc h cmms
-- | Data accumulated during code generation. Mostly about statistics,
-- but also collects debug data for DWARF generation.