| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Futhark.Analysis.HORep.MapNest
Synopsis
- data Nesting = Nesting {
- nestingParamNames :: [VName]
- nestingResult :: [VName]
- nestingReturnType :: [Type]
- nestingWidth :: SubExp
- data MapNest = MapNest {
- mapNestWidth :: SubExp
- mapNestLambda :: Lambda SOACS
- mapNestNestings :: [Nesting]
- mapNestInput :: [Input]
- depth :: MapNest -> Int
- typeOf :: MapNest -> [Type]
- params :: MapNest -> [VName]
- inputs :: MapNest -> [Input]
- setInputs :: [Input] -> MapNest -> MapNest
- fromSOAC :: (MonadFreshNames m, LocalScope SOACS m) => SOAC SOACS -> m (Maybe MapNest)
- toSOAC :: (MonadFreshNames m, HasScope SOACS m) => MapNest -> m (SOAC SOACS)
- reshape :: MonadFreshNames m => StmAux () -> NewShape SubExp -> MapNest -> m MapNest
Documentation
Constructors
| Nesting | |
Fields
| |
Constructors
| MapNest | |
Fields
| |
fromSOAC :: (MonadFreshNames m, LocalScope SOACS m) => SOAC SOACS -> m (Maybe MapNest) Source #
reshape :: MonadFreshNames m => StmAux () -> NewShape SubExp -> MapNest -> m MapNest Source #
Reshape a map nest. It is assumed that any validity tests have already been done, and in particular that the result of the map nest has the same rank as its depth. Will automatically reshape the inputs appropriately.