GHC.Driver.Backend

ghc-9.0.1: The GHC API

Safe Haskell | Safe-Inferred
Language | Haskell2010

GHC.Driver.Backend

Description

Code generation backends

Synopsis

- data Backend
  - = NCG
  - | LLVM
  - | ViaC
  - | Interpreter
- platformDefaultBackend :: Platform -> Backend
- platformNcgSupported :: Platform -> Bool

# Documentation

data Backend Source #

Backend

Constructors

NCG | Native code generator backend
LLVM | LLVM backend
ViaC | Via-C backend
Interpreter | Interpreter

#### Instances

Instances details

Eq Backend # |
Instance details Defined in GHC.Driver.Backend Methods (==) :: Backend -> Backend -> Bool # (/=) :: Backend -> Backend -> Bool #
Ord Backend # |
Instance details Defined in GHC.Driver.Backend Methods compare :: Backend -> Backend -> Ordering # (<) :: Backend -> Backend -> Bool # (<=) :: Backend -> Backend -> Bool # (>) :: Backend -> Backend -> Bool # (>=) :: Backend -> Backend -> Bool # max :: Backend -> Backend -> Backend # min :: Backend -> Backend -> Backend #
Read Backend # |
Instance details Defined in GHC.Driver.Backend Methods readsPrec :: Int -> ReadS Backend Source # readList :: ReadS [Backend] Source # readPrec :: ReadPrec Backend Source # readListPrec :: ReadPrec [Backend] Source #
Show Backend # |
Instance details Defined in GHC.Driver.Backend Methods showsPrec :: Int -> Backend -> ShowS Source # show :: Backend -> String Source # showList :: [Backend] -> ShowS Source #

platformDefaultBackend :: Platform -> Backend Source #

Default backend to use for the given platform.

platformNcgSupported :: Platform -> Bool Source #

Is the platform supported by the Native Code Generator?