PIC

ghc-8.0.0.20160204: The GHC API

Safe Haskell | None
Language | Haskell2010

PIC

# Documentation

cmmMakeDynamicReference :: CmmMakeDynamicReferenceM m => DynFlags -> ReferenceKind -> CLabel -> m CmmExpr Source

class Monad m => CmmMakeDynamicReferenceM m where Source

Minimal complete definition

addImport, getThisModule

Methods

addImport :: CLabel -> m () Source

getThisModule :: m Module Source

Instances

CmmMakeDynamicReferenceM NatM |
Methods addImport :: CLabel -> NatM () Source getThisModule :: NatM Module Source

data ReferenceKind Source

Constructors

DataReference |
CallReference |
JumpReference |

Instances

Eq ReferenceKind |
Methods (==) :: ReferenceKind -> ReferenceKind -> Bool (/=) :: ReferenceKind -> ReferenceKind -> Bool

needImportedSymbols :: DynFlags -> Arch -> OS -> Bool Source

pprImportedSymbol :: DynFlags -> Platform -> CLabel -> SDoc Source

pprGotDeclaration :: DynFlags -> Arch -> OS -> SDoc Source

initializePicBase_ppc :: Arch -> OS -> Reg -> [NatCmmDecl CmmStatics Instr] -> NatM [NatCmmDecl CmmStatics Instr] Source

initializePicBase_x86 :: Arch -> OS -> Reg -> [NatCmmDecl (Alignment, CmmStatics) Instr] -> NatM [NatCmmDecl (Alignment, CmmStatics) Instr] Source