ghc-10.0.0.20260917: The GHC API
Safe HaskellNone
LanguageGHC2024

GHC.Platform.Tag

Description

Dynamic pointer tagging

See Note [Data constructor dynamic tags]

Synopsis

Documentation

type DynTag = Int Source #

The tag on a pointer (from the dynamic-tagging paper)

tAG_MASK :: Platform -> Int Source #

Tag bits mask / maximum pointer tag value, derived from the number of tag bits on the platform.

mAX_PTR_TAG :: Platform -> Int Source #

Tag bits mask / maximum pointer tag value, derived from the number of tag bits on the platform.

isSmallFamily :: Platform -> Int -> Bool Source #

Is a data type family small enough that each constructor can get its own pointer tag?