Safe Haskell | None |
---|---|
Language | Haskell2010 |
GHC.ByteCode.Types
Description
Bytecode assembler types
Synopsis
- data CompiledByteCode = CompiledByteCode {}
- seqCompiledByteCode :: CompiledByteCode -> ()
- newtype FFIInfo = FFIInfo (RemotePtr C_ffi_cif)
- newtype RegBitmap = RegBitmap {}
- data NativeCallType
- data NativeCallInfo = NativeCallInfo {}
- voidTupleReturnInfo :: NativeCallInfo
- voidPrimCallInfo :: NativeCallInfo
- newtype ByteOff = ByteOff Int
- newtype WordOff = WordOff Int
- newtype HalfWord = HalfWord Word
- data UnlinkedBCO = UnlinkedBCO {
- unlinkedBCOName :: !Name
- unlinkedBCOArity :: !Int
- unlinkedBCOInstrs :: !(UArray Int Word16)
- unlinkedBCOBitmap :: !(UArray Int Word64)
- unlinkedBCOLits :: !(SizedSeq BCONPtr)
- unlinkedBCOPtrs :: !(SizedSeq BCOPtr)
- data BCOPtr
- data BCONPtr
- type ItblEnv = NameEnv (Name, ItblPtr)
- newtype ItblPtr = ItblPtr (RemotePtr StgInfoTable)
- type AddrEnv = NameEnv (Name, AddrPtr)
- newtype AddrPtr = AddrPtr (RemotePtr ())
- data CgBreakInfo = CgBreakInfo {
- cgb_tyvars :: ![IfaceTvBndr]
- cgb_vars :: ![Maybe (IfaceIdBndr, Word)]
- cgb_resty :: !IfaceType
- data ModBreaks = ModBreaks {}
- type BreakIndex = Int
- emptyModBreaks :: ModBreaks
- data CCostCentre
Documentation
data CompiledByteCode #
Constructors
CompiledByteCode | |
Instances
Outputable CompiledByteCode # | |
Defined in GHC.ByteCode.Types Methods ppr :: CompiledByteCode -> SDoc # |
seqCompiledByteCode :: CompiledByteCode -> () #
Constructors
RegBitmap | |
Fields |
Instances
data NativeCallType #
Constructors
NativePrimCall | |
NativeTupleReturn |
Instances
Eq NativeCallType # | |
Defined in GHC.ByteCode.Types Methods (==) :: NativeCallType -> NativeCallType -> Bool # (/=) :: NativeCallType -> NativeCallType -> Bool # |
data NativeCallInfo #
Constructors
NativeCallInfo | |
Fields |
Instances
Outputable NativeCallInfo # | |
Defined in GHC.ByteCode.Types Methods ppr :: NativeCallInfo -> SDoc # |
Instances
Enum ByteOff # | |
Num ByteOff # | |
Integral ByteOff # | |
Defined in GHC.ByteCode.Types | |
Real ByteOff # | |
Defined in GHC.ByteCode.Types Methods toRational :: ByteOff -> Rational # | |
Show ByteOff # | |
Outputable ByteOff # | |
Defined in GHC.ByteCode.Types | |
Eq ByteOff # | |
Ord ByteOff # | |
Instances
Enum WordOff # | |
Num WordOff # | |
Integral WordOff # | |
Defined in GHC.ByteCode.Types | |
Real WordOff # | |
Defined in GHC.ByteCode.Types Methods toRational :: WordOff -> Rational # | |
Show WordOff # | |
Outputable WordOff # | |
Defined in GHC.ByteCode.Types | |
Eq WordOff # | |
Ord WordOff # | |
Instances
Enum HalfWord # | |
Defined in GHC.ByteCode.Types | |
Num HalfWord # | |
Integral HalfWord # | |
Defined in GHC.ByteCode.Types | |
Real HalfWord # | |
Defined in GHC.ByteCode.Types Methods toRational :: HalfWord -> Rational # | |
Show HalfWord # | |
Outputable HalfWord # | |
Defined in GHC.ByteCode.Types | |
Eq HalfWord # | |
Ord HalfWord # | |
Defined in GHC.ByteCode.Types |
data UnlinkedBCO #
Constructors
UnlinkedBCO | |
Fields
|
Instances
NFData UnlinkedBCO # | |
Defined in GHC.ByteCode.Types Methods rnf :: UnlinkedBCO -> () # | |
Outputable UnlinkedBCO # | |
Defined in GHC.ByteCode.Types Methods ppr :: UnlinkedBCO -> SDoc # |
Constructors
BCOPtrName !Name | |
BCOPtrPrimOp !PrimOp | |
BCOPtrBCO !UnlinkedBCO | |
BCOPtrBreakArray |
Constructors
BCONPtrWord !Word | |
BCONPtrLbl !FastString | |
BCONPtrItbl !Name | |
BCONPtrAddr !Name | A reference to a top-level string literal; see Note [Generating code for top-level string literal bindings] in GHC.StgToByteCode. |
BCONPtrStr !ByteString | Only used internally in the assembler in an intermediate representation; should never appear in a fully-assembled UnlinkedBCO. Also see Note [Allocating string literals] in GHC.ByteCode.Asm. |
Constructors
ItblPtr (RemotePtr StgInfoTable) |
data CgBreakInfo #
Information about a breakpoint that we know at code-generation time
In order to be used, this needs to be hydrated relative to the current HscEnv by
hydrateCgBreakInfo
. Everything here can be fully forced and that's critical for
preventing space leaks (see #22530)
Constructors
CgBreakInfo | |
Fields
|
Instances
Outputable CgBreakInfo # | |
Defined in GHC.ByteCode.Types Methods ppr :: CgBreakInfo -> SDoc # |
All the information about the breakpoints for a module
Constructors
ModBreaks | |
Fields
|
type BreakIndex = Int #
Breakpoint index
Construct an empty ModBreaks
data CCostCentre #
C CostCentre type