From 4ce39e4fc1de9536de7dedfe91b6dee38dec76ae Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Thu, 1 Oct 2026 01:04:30 +0200 Subject: WIP sym + cgen --- src/prc1/cgen/qbe/qbe.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/prc1/cgen/qbe/qbe.h (limited to 'src/prc1/cgen/qbe/qbe.h') diff --git a/src/prc1/cgen/qbe/qbe.h b/src/prc1/cgen/qbe/qbe.h new file mode 100644 index 0000000..b0e66f1 --- /dev/null +++ b/src/prc1/cgen/qbe/qbe.h @@ -0,0 +1,26 @@ +#ifndef QBE_H +#define QBE_H + +#include "call.h" +#include "cgen.h" +#include "print.h" +#include "set.h" +#include "storage.h" +#include + +const char *cgen_sz(const size_t sz); +const char *cgen_tmp(const size_t sz); +const char *cgen_tmp2(struct cgen *c); +const char *cgen_type(const struct type *t); +const char *cgen_abity(const struct type *t); +const char *cgen_load(const struct type *t); +int qbe_print(const struct print *m, struct cgen *c, const char *f); +void cgen_printvar(const struct fn *fn, const struct stentry *e); +int qbe_call(const struct call *m, struct cgen *c); +int qbe_set(const struct set *m, struct cgen *c); +int qbe_gl(const struct storage *gl, struct cgen *c); +int qbe_ws(const struct storage *s, struct cgen *c); +int qbe_fn(const struct fn *fn, struct cgen *c); +void qbe_free(struct cgen_prv *p); + +#endif -- cgit v1.2.3