ghc-8.8.3: The GHC API
Safe HaskellNone
LanguageHaskell2010

Llvm.PpLlvm

Description

Pretty print LLVM IR Code.

Synopsis

Top level LLVM objects.

ppLlvmModule :: LlvmModule -> SDoc Source #

Print out a whole LLVM module.

ppLlvmComments :: [LMString] -> SDoc Source #

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

ppLlvmComment :: LMString -> SDoc Source #

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

ppLlvmGlobals :: [LMGlobal] -> SDoc Source #

Print out a list of global mutable variable definitions

ppLlvmGlobal :: LMGlobal -> SDoc Source #

Print out a global mutable variable definition

ppLlvmAliases :: [LlvmAlias] -> SDoc Source #

Print out a list of LLVM type aliases.

ppLlvmAlias :: LlvmAlias -> SDoc Source #

Print out an LLVM type alias.

ppLlvmMetas :: [MetaDecl] -> SDoc Source #

Print out a list of LLVM metadata.

ppLlvmMeta :: MetaDecl -> SDoc Source #

Print out an LLVM metadata definition.

ppLlvmFunctionDecls :: LlvmFunctionDecls -> SDoc Source #

Print out a list of function declaration.

ppLlvmFunctionDecl :: LlvmFunctionDecl -> SDoc Source #

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

ppLlvmFunctions :: LlvmFunctions -> SDoc Source #

Print out a list of function definitions.

ppLlvmFunction :: LlvmFunction -> SDoc Source #

Print out a function definition.