ghc-7.2.2: The GHC API

Llvm.PpLlvm

Contents

Description

Pretty print LLVM IR Code.

Synopsis

Top level LLVM objects.

ppLlvmModule :: LlvmModule -> DocSource

Print out a whole LLVM module.

ppLlvmComments :: [LMString] -> DocSource

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

ppLlvmComment :: LMString -> DocSource

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

ppLlvmGlobals :: [LMGlobal] -> DocSource

Print out a list of global mutable variable definitions

ppLlvmGlobal :: LMGlobal -> DocSource

Print out a global mutable variable definition

ppLlvmAlias :: LlvmAlias -> DocSource

Print out an LLVM type alias.

ppLlvmAliases :: [LlvmAlias] -> DocSource

Print out a list of LLVM type aliases.

ppLlvmFunctionDecls :: LlvmFunctionDecls -> DocSource

Print out a list of function declaration.

ppLlvmFunctionDecl :: LlvmFunctionDecl -> DocSource

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

ppLlvmFunctions :: LlvmFunctions -> DocSource

Print out a list of function definitions.

ppLlvmFunction :: LlvmFunction -> DocSource

Print out a function definition.

Utility functions

llvmSDoc :: SDoc -> DocSource

Convert SDoc to Doc