futhark-0.25.32: An optimising compiler for a functional, array-oriented language.
Safe HaskellNone
LanguageGHC2021

Futhark.IR.Mem.Interval

Synopsis

Documentation

data Interval Source #

Instances

Instances details
FreeIn Interval Source # 
Instance details

Defined in Futhark.IR.Mem.Interval

Methods

freeIn' :: Interval -> FV Source #

Show Interval Source # 
Instance details

Defined in Futhark.IR.Mem.Interval

Methods

showsPrec :: Int -> Interval -> ShowS

show :: Interval -> String

showList :: [Interval] -> ShowS

Eq Interval Source # 
Instance details

Defined in Futhark.IR.Mem.Interval

Methods

(==) :: Interval -> Interval -> Bool

(/=) :: Interval -> Interval -> Bool

distributeOffset :: MonadFail m => SofP -> [Interval] -> m [Interval] Source #

selfOverlap :: scope -> asserts -> [(VName, PrimExp VName)] -> [PrimExp VName] -> [Interval] -> Maybe Interval Source #

Returns true if the intervals are self-overlapping, meaning that for a given dimension d, the stride of d is larger than the aggregate spans of the lower dimensions.

primBool :: TPrimExp Bool VName -> Maybe Bool Source #