summaryrefslogtreecommitdiff
path: root/includes/compiler/LiveInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/compiler/LiveInfo.h')
-rw-r--r--includes/compiler/LiveInfo.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/includes/compiler/LiveInfo.h b/includes/compiler/LiveInfo.h
new file mode 100644
index 0000000..6f70c59
--- /dev/null
+++ b/includes/compiler/LiveInfo.h
@@ -0,0 +1,18 @@
+#ifndef COMPILER_LIVEINFO_H
+#define COMPILER_LIVEINFO_H
+
+#include "compiler/common.h"
+
+typedef struct LiveInfo {
+ UInt32 *vec0; // use
+ UInt32 *vec4; // def
+ UInt32 *vec8; // in
+ UInt32 *vecC; // out
+} LiveInfo;
+
+extern LiveInfo *liveinfo;
+
+extern void computelivevariables(Object *proc);
+extern int dead(PCode *instr, char rclass, UInt32 *vec);
+
+#endif