GHC.CmmToAsm.Wasm.FromCmm

ghc-9.10.0.20240328: The GHC API

Safe Haskell | None
Language | GHC2021

GHC.CmmToAsm.Wasm.FromCmm

Synopsis

- alignmentFromWordType :: forall (w :: WasmType). WasmTypeTag w -> Alignment
- globalInfoFromCmmGlobalReg :: forall (w :: WasmType). WasmTypeTag w -> GlobalReg -> Maybe GlobalInfo
- supportedCmmGlobalRegs :: [GlobalReg]
- onCmmGroup :: forall (w :: WasmType). RawCmmGroup -> WasmCodeGenM w ()

# Documentation

alignmentFromWordType :: forall (w :: WasmType). WasmTypeTag w -> Alignment Source #

Calculate the natural alignment size given the platform word type.

globalInfoFromCmmGlobalReg :: forall (w :: WasmType). WasmTypeTag w -> GlobalReg -> Maybe GlobalInfo Source #

supportedCmmGlobalRegs :: [GlobalReg] Source #

onCmmGroup :: forall (w :: WasmType). RawCmmGroup -> WasmCodeGenM w () Source #

Invoked for each `RawCmmGroup`.