GHC.Utils.Asm

ghc-9.0.0.20201227: The GHC API

Safe Haskell | None
Language | Haskell2010

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 :: Platform -> String -> SDoc

# Documentation

sectionType Source #

Arguments

:: Platform | Target platform
-> String | section type
-> SDoc | pretty assembler fragment

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