ghc-7.6.2: The GHC API

Safe HaskellNone

Llvm.PpLlvm

Contents

Description

Pretty print LLVM IR Code.

Synopsis

Top level LLVM objects.

ppLlvmModule :: LlvmModule -> SDocSource

Print out a whole LLVM module.

ppLlvmComments :: [LMString] -> SDocSource

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

ppLlvmComment :: LMString -> SDocSource

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

ppLlvmGlobals :: [LMGlobal] -> SDocSource

Print out a list of global mutable variable definitions

ppLlvmGlobal :: LMGlobal -> SDocSource

Print out a global mutable variable definition

ppLlvmAliases :: [LlvmAlias] -> SDocSource

Print out a list of LLVM type aliases.

ppLlvmAlias :: LlvmAlias -> SDocSource

Print out an LLVM type alias.

ppLlvmMetas :: [LlvmMeta] -> SDocSource

Print out a list of LLVM metadata.

ppLlvmMeta :: LlvmMeta -> SDocSource

Print out an LLVM metadata definition.

ppLlvmFunctionDecls :: LlvmFunctionDecls -> SDocSource

Print out a list of function declaration.

ppLlvmFunctionDecl :: LlvmFunctionDecl -> SDocSource

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

ppLlvmFunctions :: LlvmFunctions -> SDocSource

Print out a list of function definitions.

ppLlvmFunction :: LlvmFunction -> SDocSource

Print out a function definition.