21 lines
506 B
C
21 lines
506 B
C
#ifndef __SPL_AST2IR_H__
|
|
#define __SPL_AST2IR_H__
|
|
|
|
#include "spl_ir.h"
|
|
#include "spl_sema.h"
|
|
|
|
typedef MAP(spl_def_id_t, spl_ir_node_ref_t) spl_def2ir_map_t;
|
|
typedef struct {
|
|
const spl_sema_t *sema;
|
|
spl_ir_builder_t *ir;
|
|
spl_def2ir_map_t def2ir_map;
|
|
int err_count;
|
|
} spl_ast2ir_t;
|
|
|
|
void spl_ast2ir_init(spl_ast2ir_t *ast2ir, spl_ir_builder_t *ir, const spl_sema_t *sema);
|
|
void spl_ast2ir_drop(spl_ast2ir_t *ast2ir);
|
|
|
|
void spl_ast2ir_run(spl_ast2ir_t *ast2ir);
|
|
|
|
#endif /* __SPL_AST2IR_H__ */
|