Skip to content

Commit

Permalink
Add ManifestExpr
Browse files Browse the repository at this point in the history
  • Loading branch information
0scar committed Oct 9, 2023
1 parent 91439d1 commit afd3e44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Futhark/Pass/CoalesceAccess.hs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ transformSegOp pat ctx op = do
| (arrayName, permutations) <- arrayToPermutationMap
]

manifestExpr :: (MonadBuilder CoalesceM) => (VName, Permutation) -> CoalesceM VName
manifestExpr (arrayName, manifest) =
letExp (baseString arrayName) $ BasicOp $ Manifest manifest arrayName

-- =================== Replace array names in AST ===================

replaceArrayNamesInBody :: ArrayNameReplacements -> Body GPU -> Body GPU
Expand Down

0 comments on commit afd3e44

Please sign in to comment.