ghc-lib-9.10.1.20240511: The GHC API, decoupled from GHC versions
Safe HaskellIgnore
LanguageGHC2021

GHC.CmmToLlvm.Ppr

Description

Pretty print helpers for the LLVM Code generator.

Synopsis

Documentation

pprLlvmCmmDecl :: LlvmCmmDecl -> LlvmM (HDoc, SDoc) Source #

Pretty print LLVM code The HDoc we return is used to produce the final LLVM file, with the SDoc being returned alongside for use when Opt_D_dump_llvm is set as we can't (currently) dump HDocs.

pprLlvmData :: IsDoc doc => LlvmCgConfig -> LlvmData -> doc Source #

Pretty print LLVM data code

infoSection :: String Source #

The section we are putting info tables and their entry code into, should be unique since we process the assembly pattern matching this.