ghc-7.2.2: The GHC API

LlvmCodeGen.Data

Description

Handle conversion of CmmData to LLVM code.

Synopsis

Documentation

genLlvmData :: (Section, CmmStatics) -> LlvmUnresDataSource

Pass a CmmStatic section to an equivalent Llvm code. Can't complete this completely though as we need to pass all CmmStatic sections before all references can be resolved. This last step is done by resolveLlvmData.

resolveLlvmData :: LlvmEnv -> LlvmUnresData -> (LlvmEnv, LlvmData)Source

Fix up CLabel references now that we should have passed all CmmData.