summary refs log tree commit diff
path: root/lisc/lisc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lisc/lisc.h')
-rw-r--r--lisc/lisc.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h
index d1c25f0..7f558b0 100644
--- a/lisc/lisc.h
+++ b/lisc/lisc.h
@@ -1,5 +1,5 @@
 #include <assert.h>
-#include <stdint.h>
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -13,6 +13,7 @@ typedef struct Ins Ins;
 typedef struct Phi Phi;
 typedef struct Blk Blk;
 typedef struct Sym Sym;
+typedef struct Const Const;
 typedef struct Fn Fn;
 
 enum {
@@ -158,9 +159,20 @@ struct Sym {
 	int hint;
 };
 
+struct Const {
+	enum {
+		CUndef,
+		CNum,
+		CAddr,
+	} type;
+	char label[NString];
+	int64_t val;
+};
+
 struct Fn {
 	Blk *start;
 	Sym *sym;
+	Const *cst;
 	int ntmp;
 	int nblk;
 	Blk **rpo;