ddc-core-llvm-0.4.3.1: Disciplined Disciple Compiler LLVM code generator.

Safe HaskellSafe
LanguageHaskell98

DDC.Llvm.Pretty

Description

Pretty printer instances for the Llvm syntax.

Synopsis

Documentation

data Config Source #

LLVM pretty printer configuration.

Instances

configOfVersion :: Maybe Version -> Config Source #

Produce a default pretty printer config for the given version.

Assume LLVM 3.8 as the default version unless told otherwise. This default should only be used during debugging, when compiling real modules the version will be set explicitly by the compilation driver.

LLVM version 3.8.0 was current as of March 2016.

prettyModeModuleOfConfig :: Config -> PrettyMode Module Source #

Produce a default pretty printer mode from an LLVM config.