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

Safe HaskellSafe
LanguageHaskell98

DDC.Llvm.Transform.Simpl

Description

LLVM program simplifier.

The LLVM compiler itself already contains a metric crapton of transforms that we don't want to re-implement here. However, these simple things are useful when normalising the code emitted by the code generator, so that the LLVM compiler will actually accept it.

Synopsis

Documentation

simpl :: Config -> Module -> Module Source #

Simplify a module.

data Config Source #

Simplifier config.

Constructors

Config 

Fields

configZero :: Config Source #

Config with all transforms disabled.