blob: dc99404d4781d7692b8ed1d9ba4bd4152bc98786 (
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
|
#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
|