aboutsummaryrefslogtreecommitdiff
path: root/src/prc1/cgen/prv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/prc1/cgen/prv.h')
-rw-r--r--src/prc1/cgen/prv.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/prc1/cgen/prv.h b/src/prc1/cgen/prv.h
new file mode 100644
index 0000000..dc99404
--- /dev/null
+++ b/src/prc1/cgen/prv.h
@@ -0,0 +1,23 @@
+#ifndef CGEN_PRV_H
+#define CGEN_PRV_H
+
+#include "cgen.h"
+#include "call.h"
+#include "print.h"
+#include "set.h"
+#include "storage.h"
+
+struct cgen_drv
+{
+ int (*print)(const struct print *, struct cgen *, const char *);
+ int (*gl)(const struct storage *, struct cgen *);
+ int (*ws)(const struct storage *, struct cgen *);
+ int (*call)(const struct call *, struct cgen *);
+ int (*set)(const struct set *, struct cgen *);
+ int (*fn)(const struct fn *, struct cgen *);
+ void (*free)(struct cgen_prv *);
+};
+
+int cgen_qbe(const struct ast *ast, struct cgen *c);
+
+#endif