Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
vidsinghal committed Oct 8, 2024
1 parent a6d1ffb commit 40526bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gibbon-compiler/src/Gibbon/Passes/InferLocations.hs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ convertFunTy (from,to,isPar) = do
-- For this simple version, we assume every location is in a separate region:
lrm1 <- concat <$> mapM (toLRM Input) from'
lrm2 <- toLRM Output to'
dbgTraceIt "Print in Inferloc: " dbgTraceIt (sdoc (lrm1, lrm2, from, to, from', to')) dbgTraceIt "\n" return $ ArrowTy2 { locVars = lrm1 ++ lrm2
return $ ArrowTy2 { locVars = lrm1 ++ lrm2
, arrIns = from'
, arrEffs = S.empty
, arrOut = to'
Expand Down Expand Up @@ -224,7 +224,7 @@ inferLocs initPrg = do
fenv <- forM fds $ \(FunDef _ _ (intys, outty) bod _meta) -> do
let has_par = hasSpawns bod
lift $ lift $ convertFunTy (intys,outty,has_par)
let fe = dbgTraceIt "Print Data definitions" dbgTraceIt (sdoc dfs) dbgTraceIt "\n" FullEnv dfs' M.empty fenv
let fe = FullEnv dfs' M.empty fenv
me' <- case me of
-- We ignore the type of the main expression inferred in L1..
-- Probably should add a small check here
Expand Down

0 comments on commit 40526bc

Please sign in to comment.