ghc-7.8.4: The GHC API

Safe HaskellNone
LanguageHaskell98

LlvmCodeGen.Ppr

Description

Pretty print helpers for the LLVM Code generator.

Synopsis

Documentation

pprLlvmHeader :: SDoc Source

Header code for LLVM modules

pprLlvmCmmDecl :: Int -> LlvmCmmDecl -> LlvmM (SDoc, [LlvmVar]) Source

Pretty print LLVM code

pprLlvmData :: LlvmData -> SDoc 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.

iTableSuf :: String Source

We generate labels for info tables by converting them to the same label as for the entry code but adding this string as a suffix.