ghc-9.8.4: The GHC API
Safe HaskellNone
LanguageHaskell2010

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.