blob: b0e66f1705d4370ab50185141c9cd4f6688a428f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef QBE_H
#define QBE_H
#include "call.h"
#include "cgen.h"
#include "print.h"
#include "set.h"
#include "storage.h"
#include <stddef.h>
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
|