llvm-hs-7.0.1: General purpose LLVM bindings

Safe HaskellNone
LanguageHaskell2010

LLVM.Internal.OrcJIT.IRTransformLayer

Synopsis

Documentation

data IRTransformLayer baseLayer Source #

IRTransformLayer allows transforming modules before handing off compilation to the underlying CompileLayer.

newIRTransformLayer Source #

Arguments

:: CompileLayer l 
=> l 
-> TargetMachine 
-> (Ptr Module -> IO (Ptr Module))

module transformation

-> IO (IRTransformLayer l) 

Create a new IRTransformLayer.

When the layer is no longer needed, it should be disposed using disposeCompileLayer.

withIRTransformLayer Source #

Arguments

:: CompileLayer l 
=> l 
-> TargetMachine 
-> (Ptr Module -> IO (Ptr Module))

module transformation

-> (IRTransformLayer l -> IO a) 
-> IO a