ghc-9.12: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.CmmToAsm.RV64.CodeGen

Synopsis

Documentation

generateJumpTableForInstr :: NCGConfig -> Instr -> Maybe (NatCmmDecl RawCmmStatics Instr) Source #

Generate jump table data (if required)

The idea is to emit one table entry per case. The entry is the relative address of the block to jump to (relative to the table's first entry / table's own label.) The calculation itself is done by the linker.