From d37b2cfec1cfcbc3b6cfcedc88a9c6775312f8eb Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Thu, 18 Apr 2019 23:24:56 +0200 Subject: Lower to isa WIP --- Intermediate.hs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Intermediate.hs') diff --git a/Intermediate.hs b/Intermediate.hs index c72e81c..c677ddd 100644 --- a/Intermediate.hs +++ b/Intermediate.hs @@ -28,12 +28,21 @@ data Ref deriving Eq data InsCode + -- | Get value of the ref = IAssign Ref + -- | Get i'th parameter to current function | IParam Int + -- | Get i'th closure entry for current function | IClosure Int + -- | Get i'th entry in global data table | IData Int + -- | | ICallC Ref [Ref] + -- | Allocate memory containing: + -- - Function pointer for function with the given name + -- - The values of each of the references | IAllocClo Name [Ref] + -- | Do nothing? | IDiscard Ref deriving Eq -- cgit v1.2.3-54-g00ecf