diff options
Diffstat (limited to 'Intermediate.hs')
-rw-r--r-- | Intermediate.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Intermediate.hs b/Intermediate.hs index 8c07980..2729493 100644 --- a/Intermediate.hs +++ b/Intermediate.hs @@ -44,6 +44,8 @@ data InsCode | IAllocClo Name [Ref] -- | Do nothing? | IDiscard Ref + -- | Do stuff on function entry + | IFunctionEntry deriving Eq data Terminator @@ -95,6 +97,7 @@ instance Show InsCode where show (ICallC r as) = "callc " ++ show r ++ " " ++ show as show (IAllocClo name vs) = "alloc-closure \"" ++ name ++ "\" " ++ show vs show (IDiscard r) = "discard " ++ show r + show IFunctionEntry = "function-entry" instance Show Terminator where show (IBr r b1 b2) = "br " ++ show r ++ " " ++ show b1 ++ " " ++ show b2 |