Llvm.PpLlvm

ghc-7.0.4: The GHC API

Llvm.PpLlvm

Contents

- Top level LLVM objects.
- Utility functions

Description

Pretty print LLVM IR Code.

Synopsis

- ppLlvmModule :: LlvmModule -> Doc
- ppLlvmComments :: [LMString] -> Doc
- ppLlvmComment :: LMString -> Doc
- ppLlvmGlobals :: [LMGlobal] -> Doc
- ppLlvmGlobal :: LMGlobal -> Doc
- ppLlvmAlias :: LlvmAlias -> Doc
- ppLlvmAliases :: [LlvmAlias] -> Doc
- ppLlvmFunctionDecls :: LlvmFunctionDecls -> Doc
- ppLlvmFunctionDecl :: LlvmFunctionDecl -> Doc
- ppLlvmFunctions :: LlvmFunctions -> Doc
- ppLlvmFunction :: LlvmFunction -> Doc
- llvmSDoc :: SDoc -> Doc

# Top level LLVM objects.

ppLlvmModule :: LlvmModule -> Doc

Print out a whole LLVM module.

ppLlvmComments :: [LMString] -> Doc

Print out a multi-line comment, can be inside a function or on its own

ppLlvmComment :: LMString -> Doc

Print out a comment, can be inside a function or on its own

ppLlvmGlobals :: [LMGlobal] -> Doc

Print out a list of global mutable variable definitions

ppLlvmGlobal :: LMGlobal -> Doc

Print out a global mutable variable definition

ppLlvmAlias :: LlvmAlias -> Doc

Print out an LLVM type alias.

ppLlvmAliases :: [LlvmAlias] -> Doc

Print out a list of LLVM type aliases.

ppLlvmFunctionDecls :: LlvmFunctionDecls -> Doc

Print out a list of function declaration.

ppLlvmFunctionDecl :: LlvmFunctionDecl -> Doc

Print out a function declaration. Declarations define the function type but don't define the actual body of the function.

ppLlvmFunctions :: LlvmFunctions -> Doc

Print out a list of function definitions.

ppLlvmFunction :: LlvmFunction -> Doc

Print out a function definition.

# Utility functions

llvmSDoc :: SDoc -> Doc

Convert SDoc to Doc