ghc-lib-0.1.0: The GHC API, decoupled from GHC versions

Safe HaskellNone
LanguageHaskell2010

StgCmmMonad

Synopsis

Documentation

data FCode a Source #

Instances
Monad FCode Source # 
Instance details

Defined in StgCmmMonad

Methods

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

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

return :: a -> FCode a #

fail :: String -> FCode a #

Functor FCode Source # 
Instance details

Defined in StgCmmMonad

Methods

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

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

Applicative FCode Source # 
Instance details

Defined in StgCmmMonad

Methods

pure :: a -> FCode a #

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

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

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

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

HasDynFlags FCode Source # 
Instance details

Defined in StgCmmMonad

MonadUnique FCode Source # 
Instance details

Defined in StgCmmMonad

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 #

forkAltPair :: FCode a -> FCode a -> FCode (a, a) Source #

type ConTagZ = Int #

A *zero-indexed* constructor tag

data Sequel Source #

Constructors

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

Defined in StgCmmMonad

Methods

ppr :: Sequel -> SDoc #

pprPrec :: Rational -> Sequel -> SDoc #

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 Source # 
Instance details

Defined in StgCmmMonad

getBinds :: FCode CgBindings Source #

setBinds :: CgBindings -> FCode () Source #