GHC.Utils.Asm

ghc-9.10.0.20240413: The GHC API

Safe Haskell | None
Language | GHC2021

GHC.Utils.Asm

Description

Various utilities used in generating assembler.

These are used not only by the native code generator, but also by the GHC.Driver.Pipeline

Synopsis

- sectionType :: IsLine doc => Platform -> String -> doc

# Documentation

sectionType Source #

Arguments

:: IsLine doc |
=> Platform | Target platform
-> String | section type
-> doc | pretty assembler fragment

Generate a section type (e.g. `@progbits`). See #13937.