Safe Haskell | None |
---|---|
Language | GHC2021 |
Pretty print helpers for the LLVM Code generator.
Synopsis
- pprLlvmCmmDecl :: LlvmCmmDecl -> LlvmM (HDoc, SDoc)
- pprLlvmData :: IsDoc doc => LlvmCgConfig -> LlvmData -> doc
- infoSection :: String
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.