ghc-lib-9.2.6.20230211: The GHC API, decoupled from GHC versions
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.CmmToAsm.SPARC.Imm

Synopsis

Documentation

data Imm Source #

An immediate value. Not all of these are directly representable by the machine. Things like ImmLit are slurped out and put in a data segment instead.

strImmLit :: String -> Imm Source #

Create a ImmLit containing this string.

litToImm :: CmmLit -> Imm Source #

Convert a CmmLit to an Imm. Narrow to the width: a CmmInt might be out of range, but we assume that ImmInteger only contains in-range values. A signed value should be fine here.