ghc-8.0.2: The GHC API

Safe HaskellNone
LanguageHaskell2010

CmmExpr

Synopsis

Documentation

data CmmReg Source #

Instances

Eq CmmReg # 

Methods

(==) :: CmmReg -> CmmReg -> Bool #

(/=) :: CmmReg -> CmmReg -> Bool #

Ord CmmReg # 
DefinerOfRegs GlobalReg CmmReg # 

Methods

foldRegsDefd :: DynFlags -> (b -> GlobalReg -> b) -> b -> CmmReg -> b Source #

DefinerOfRegs LocalReg CmmReg # 

Methods

foldRegsDefd :: DynFlags -> (b -> LocalReg -> b) -> b -> CmmReg -> b Source #

UserOfRegs GlobalReg CmmReg # 

Methods

foldRegsUsed :: DynFlags -> (b -> GlobalReg -> b) -> b -> CmmReg -> b Source #

UserOfRegs LocalReg CmmReg # 

Methods

foldRegsUsed :: DynFlags -> (b -> LocalReg -> b) -> b -> CmmReg -> b Source #

data LocalReg Source #

Constructors

LocalReg !Unique CmmType

Parameters: 1. Identifier 2. Type

Instances

data VGcPtr Source #

Constructors

VGcPtr 
VNonGcPtr 

Instances

class Ord r => DefinerOfRegs r a where Source #

Minimal complete definition

foldRegsDefd

Methods

foldRegsDefd :: DynFlags -> (b -> r -> b) -> b -> a -> b Source #

Instances

Ord r => DefinerOfRegs r r # 

Methods

foldRegsDefd :: DynFlags -> (b -> r -> b) -> b -> r -> b Source #

DefinerOfRegs GlobalReg CmmReg # 

Methods

foldRegsDefd :: DynFlags -> (b -> GlobalReg -> b) -> b -> CmmReg -> b Source #

DefinerOfRegs LocalReg CmmReg # 

Methods

foldRegsDefd :: DynFlags -> (b -> LocalReg -> b) -> b -> CmmReg -> b Source #

DefinerOfRegs r a => DefinerOfRegs r (Maybe a) # 

Methods

foldRegsDefd :: DynFlags -> (b -> r -> b) -> b -> Maybe a -> b Source #

DefinerOfRegs r a => DefinerOfRegs r [a] # 

Methods

foldRegsDefd :: DynFlags -> (b -> r -> b) -> b -> [a] -> b Source #

DefinerOfRegs GlobalReg (CmmNode e x) # 

Methods

foldRegsDefd :: DynFlags -> (b -> GlobalReg -> b) -> b -> CmmNode e x -> b Source #

DefinerOfRegs LocalReg (CmmNode e x) # 

Methods

foldRegsDefd :: DynFlags -> (b -> LocalReg -> b) -> b -> CmmNode e x -> b Source #

class Ord r => UserOfRegs r a where Source #

Minimal complete definition

foldRegsUsed

Methods

foldRegsUsed :: DynFlags -> (b -> r -> b) -> b -> a -> b Source #

Instances

(Ord r, UserOfRegs r CmmReg) => UserOfRegs r CmmExpr # 

Methods

foldRegsUsed :: DynFlags -> (b -> r -> b) -> b -> CmmExpr -> b Source #

Ord r => UserOfRegs r r # 

Methods

foldRegsUsed :: DynFlags -> (b -> r -> b) -> b -> r -> b Source #

(Ord r, UserOfRegs r CmmExpr) => UserOfRegs r ForeignTarget # 

Methods

foldRegsUsed :: DynFlags -> (b -> r -> b) -> b -> ForeignTarget -> b Source #

UserOfRegs GlobalReg CmmReg # 

Methods

foldRegsUsed :: DynFlags -> (b -> GlobalReg -> b) -> b -> CmmReg -> b Source #

UserOfRegs LocalReg CmmReg # 

Methods

foldRegsUsed :: DynFlags -> (b -> LocalReg -> b) -> b -> CmmReg -> b Source #

UserOfRegs r a => UserOfRegs r [a] # 

Methods

foldRegsUsed :: DynFlags -> (b -> r -> b) -> b -> [a] -> b Source #

UserOfRegs r a => UserOfRegs r (Maybe a) # 

Methods

foldRegsUsed :: DynFlags -> (b -> r -> b) -> b -> Maybe a -> b Source #

Ord r => UserOfRegs r (RegSet r) # 

Methods

foldRegsUsed :: DynFlags -> (b -> r -> b) -> b -> RegSet r -> b Source #

UserOfRegs GlobalReg (CmmNode e x) # 

Methods

foldRegsUsed :: DynFlags -> (b -> GlobalReg -> b) -> b -> CmmNode e x -> b Source #

UserOfRegs LocalReg (CmmNode e x) # 

Methods

foldRegsUsed :: DynFlags -> (b -> LocalReg -> b) -> b -> CmmNode e x -> b Source #

foldRegsDefd :: DefinerOfRegs r a => DynFlags -> (b -> r -> b) -> b -> a -> b Source #

foldRegsUsed :: UserOfRegs r a => DynFlags -> (b -> r -> b) -> b -> a -> b Source #

filterRegsUsed :: UserOfRegs r e => DynFlags -> (r -> Bool) -> e -> RegSet r Source #

foldLocalRegsDefd :: DefinerOfRegs LocalReg a => DynFlags -> (b -> LocalReg -> b) -> b -> a -> b Source #

foldLocalRegsUsed :: UserOfRegs LocalReg a => DynFlags -> (b -> LocalReg -> b) -> b -> a -> b Source #

type RegSet r = Set r Source #

Sets of registers

elemRegSet :: Ord r => r -> RegSet r -> Bool Source #

extendRegSet :: Ord r => RegSet r -> r -> RegSet r Source #

mkRegSet :: Ord r => [r] -> RegSet r Source #

plusRegSet :: Ord r => RegSet r -> RegSet r -> RegSet r Source #

minusRegSet :: Ord r => RegSet r -> RegSet r -> RegSet r Source #

timesRegSet :: Ord r => RegSet r -> RegSet r -> RegSet r Source #

data Area Source #

A stack area is either the stack slot where a variable is spilled or the stack space where function arguments and results are passed.

Constructors

Old 
Young !BlockId 

Instances

Eq Area # 

Methods

(==) :: Area -> Area -> Bool #

(/=) :: Area -> Area -> Bool #

Ord Area # 

Methods

compare :: Area -> Area -> Ordering #

(<) :: Area -> Area -> Bool #

(<=) :: Area -> Area -> Bool #

(>) :: Area -> Area -> Bool #

(>=) :: Area -> Area -> Bool #

max :: Area -> Area -> Area #

min :: Area -> Area -> Area #

module CmmMachOp

module CmmType