aboutsummaryrefslogtreecommitdiff
path: root/node.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2018-01-24 22:46:14 +0100
committertomsmeding <tom.smeding@gmail.com>2018-01-24 22:46:14 +0100
commitf36879c1d42e34d593dff204e26ecfb10eb6dfac (patch)
tree6cf7247f6b9ecca271a529ebf05c194e99dcdae2 /node.h
parent20d898496b7371872bfd128a895d39465f13c970 (diff)
Asm literals and hwi
Diffstat (limited to 'node.h')
-rw-r--r--node.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/node.h b/node.h
index b6489d0..63575f8 100644
--- a/node.h
+++ b/node.h
@@ -1,6 +1,7 @@
#pragma once
#include "type.h"
+#include "ir.h"
enum node_type {
@@ -19,6 +20,7 @@ enum node_type {
N_BINOP, // [left] oper [right]
N_UNOP, // oper [arg]
N_CALL, // name [args]
+ N_IRINS, // irins
};
enum operator {
@@ -38,6 +40,7 @@ struct node {
char *name;
int value;
enum operator oper;
+ struct irins *irins;
struct type *valuetype; // filled in by type checker
};