GHC.CmmToLlvm.Config

ghc-9.4.0.20220501: The GHC API

Safe Haskell | Safe-Inferred
Language | Haskell2010

GHC.CmmToLlvm.Config

Description

Llvm code generator configuration

# Documentation

data LlvmCgConfig Source #

Constructors

LlvmCgConfig |
Fields llvmCgPlatform :: !Platform Target platform llvmCgContext :: !SDocContext Context for LLVM code generation llvmCgFillUndefWithGarbage :: !Bool Fill undefined literals with garbage values llvmCgSplitSection :: !Bool Split sections llvmCgBmiVersion :: Maybe BmiVersion (x86) BMI instructions llvmCgLlvmVersion :: Maybe LlvmVersion version of Llvm we're using llvmCgDoWarn :: !Bool True ==> warn unsupported Llvm version llvmCgLlvmTarget :: !String target triple passed to LLVM llvmCgLlvmConfig :: !LlvmConfig mirror DynFlags LlvmConfig. see Note [LLVM configuration] in GHC.SysTools. This can be strict since GHC.Driver.Config.CmmToLlvm.initLlvmCgConfig verifies the files are present.

newtype LlvmVersion Source #

Constructors

LlvmVersion |
Fields llvmVersionNE :: NonEmpty Int

#### Instances

Instances details

Eq LlvmVersion Source # |
Instance details Defined in GHC.CmmToLlvm.Config Methods (==) :: LlvmVersion -> LlvmVersion -> Bool # (/=) :: LlvmVersion -> LlvmVersion -> Bool #
Ord LlvmVersion Source # |
Instance details Defined in GHC.CmmToLlvm.Config Methods compare :: LlvmVersion -> LlvmVersion -> Ordering # (<) :: LlvmVersion -> LlvmVersion -> Bool # (<=) :: LlvmVersion -> LlvmVersion -> Bool # (>) :: LlvmVersion -> LlvmVersion -> Bool # (>=) :: LlvmVersion -> LlvmVersion -> Bool # max :: LlvmVersion -> LlvmVersion -> LlvmVersion # min :: LlvmVersion -> LlvmVersion -> LlvmVersion #