futhark
Safe HaskellNone
LanguageGHC2021

Futhark.Internalise.AccurateSizes

Synopsis

Documentation

ensureArgShapes :: Typed (TypeBase Shape o) => ErrorMsg SubExp -> [VName] -> [TypeBase Shape o] -> [SubExp] -> InternaliseM [SubExp] Source #

Reshape the arguments to a function so that they fit the expected shape declarations. Not used to change rank of arguments. Assumes everything is otherwise type-correct.