GHC.CmmToAsm.Ppr

ghc-9.0.0.20200925: The GHC API

Safe Haskell | None
Language | Haskell2010

GHC.CmmToAsm.Ppr

Synopsis

- castFloatToWord8Array :: STUArray s Int Float -> ST s (STUArray s Int Word8)
- castDoubleToWord8Array :: STUArray s Int Double -> ST s (STUArray s Int Word8)
- floatToBytes :: Float -> [Int]
- doubleToBytes :: Double -> [Int]
- pprASCII :: ByteString -> SDoc
- pprString :: ByteString -> SDoc
- pprFileEmbed :: FilePath -> SDoc
- pprSectionHeader :: NCGConfig -> Section -> SDoc

# Documentation

castFloatToWord8Array :: STUArray s Int Float -> ST s (STUArray s Int Word8) Source #

castDoubleToWord8Array :: STUArray s Int Double -> ST s (STUArray s Int Word8) Source #

floatToBytes :: Float -> [Int] Source #

doubleToBytes :: Double -> [Int] Source #

pprASCII :: ByteString -> SDoc Source #

pprString :: ByteString -> SDoc Source #

Emit a ".string" directive

pprFileEmbed :: FilePath -> SDoc Source #

Emit a ".incbin" directive

A NULL byte is added after the binary data.

pprSectionHeader :: NCGConfig -> Section -> SDoc Source #