GHC.StgToCmm.Lit

ghc-9.10.0.20240328: The GHC API

Safe Haskell | None
Language | GHC2021

GHC.StgToCmm.Lit

Synopsis

- cgLit :: Literal -> FCode CmmExpr
- mkSimpleLit :: Platform -> Literal -> CmmLit
- newStringCLit :: String -> FCode CmmLit
- newByteStringCLit :: ByteString -> FCode CmmLit

# Documentation

cgLit :: Literal -> FCode CmmExpr Source #

mkSimpleLit :: Platform -> Literal -> CmmLit Source #

newStringCLit :: String -> FCode CmmLit Source #

Make a global definition for the string, and return its label

newByteStringCLit :: ByteString -> FCode CmmLit Source #