ghc-8.4.0.20180118: The GHC API

Safe HaskellNone
LanguageHaskell2010

StgCmmMonad

Synopsis

Documentation

data FCode a Source #

Instances
Monad FCode # 
Instance details

Methods

(>>=) :: FCode a -> (a -> FCode b) -> FCode b Source #

(>>) :: FCode a -> FCode b -> FCode b Source #

return :: a -> FCode a Source #

fail :: String -> FCode a Source #

Functor FCode # 
Instance details

Methods

fmap :: (a -> b) -> FCode a -> FCode b Source #

(<$) :: a -> FCode b -> FCode a Source #

Applicative FCode # 
Instance details

Methods

pure :: a -> FCode a Source #

(<*>) :: FCode (a -> b) -> FCode a -> FCode b Source #

liftA2 :: (a -> b -> c) -> FCode a -> FCode b -> FCode c Source #

(*>) :: FCode a -> FCode b -> FCode b Source #

(<*) :: FCode a -> FCode b -> FCode a Source #

MonadUnique FCode # 
Instance details
HasDynFlags FCode # 
Instance details

fixC :: (a -> FCode a) -> FCode a Source #

getCodeScoped :: FCode a -> FCode (a, CmmAGraphScoped) Source #

Generate code into a fresh tick (sub-)scope and gather generated code

forkAlts :: [FCode a] -> FCode [a] Source #

type ConTagZ = Int Source #

A *zero-indexed* constructor tag

data Sequel Source #

Constructors

Return 
AssignTo [LocalReg] Bool 
Instances
Outputable Sequel # 
Instance details

tickScope :: FCode a -> FCode a Source #

Places blocks generated by the given code into a fresh (sub-)scope. This will make sure that Cmm annotations in our scope will apply to the Cmm blocks generated therein - but not the other way around.

getTickScope :: FCode CmmTickScope Source #

The current tick scope. We will assign this to generated blocks.

data CgIdInfo Source #

Constructors

CgIdInfo 
Instances
Outputable CgIdInfo # 
Instance details

getBinds :: FCode CgBindings Source #

setBinds :: CgBindings -> FCode () Source #