Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
vidsinghal committed Oct 7, 2024
1 parent 62f686c commit 03bbf81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
13 changes: 8 additions & 5 deletions gibbon-compiler/src/Gibbon/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,16 @@ toEndV = varAppend "end_"
toSeqV :: Var -> Var
toSeqV v = varAppend v (toVar "_seq")

-- | Abstract location variables.
-- type LocVar = Var

-- | A location variable stores the abstract location.
-- | the second element stores locs for fields if factored out for an SoA optimization.
-- | If the list is empty it signifies a single location per type.
type LocVar = (Var, [((String, Int), Var)])
-- | If the list is empty it signifies a single location per type (AoS).
-- | For each packed type, there is a data constructor, and corresponding fields.
-- | LocVar = (Location of Data Constructor buffer,
-- [((Name of Constructor from, Field Index), Location of field buffer)])

type FieldIndex = Int
type DataConstructorName = String
type LocVar = (Var, [((DataConstructorName, FieldIndex), Var)])

-- | Abstract region variables.
type RegVar = Var
Expand Down
4 changes: 0 additions & 4 deletions gibbon-compiler/src/Gibbon/L2/Syntax.hs
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ type Exp2 = E2 LocVar Ty2
-- | L1 Types extended with abstract Locations.
type Ty2 = UrTy LocVar

--type Ty2SoA = UrTy [LocVar]

--instance Out Ty2SoA

--------------------------------------------------------------------------------

-- | Shorthand for recursions.
Expand Down

0 comments on commit 03bbf81

Please sign in to comment.