futhark
Safe HaskellNone
LanguageGHC2021

Futhark.Internalise.Bindings

Description

Internalising bindings.

Synopsis

Documentation

data FunParams Source #

The internalised parameters of a function. Computing these assigns fresh names, so we split it from binding them in scope (bindFParams): that way a caller can internalise the parameters once, and both register the function's calling information and later bind the parameters for its body without recomputing them.

Constructors

FunParams 

Fields

internaliseFParams :: [TypeParam] -> [Pat ParamType] -> InternaliseM FunParams Source #

Internalise a function's parameters (see FunParams).

bindFParams :: FunParams -> InternaliseM a -> InternaliseM a Source #

Bind already-internalised parameters (see internaliseFParams) in scope.