ghc-7.2.2: The GHC API

LlvmMangler

Description

GHC LLVM Mangler

This script processes the assembly produced by LLVM, rearranging the code so that an info table appears before its corresponding function.

On OSX we also use it to fix up the stack alignment, which needs to be 16 byte aligned but always ends up off by word bytes because GHC sets it to the wrong starting value in the RTS.

Synopsis

Documentation

llvmFixupAsm :: FilePath -> FilePath -> IO ()Source

Read in assembly file and process