#ifndef __SCC_IR_H__ #define __SCC_IR_H__ #include "ir_def.h" void scc_ir_type_init(scc_ir_type_t *in, scc_ir_type_tag_t tag); void scc_ir_bblock_init(scc_ir_bblock_t *in, const char *label); void scc_ir_func_init(scc_ir_func_t *in, const char *name); // node name can be null ptr void scc_ir_node_init(scc_ir_node_t *in, const char *name, scc_ir_node_tag_t tag); void scc_ir_cprog_init(ir_cprog_t *in); scc_ir_type_t *scc_ir_type_alloc(scc_ir_type_tag_t tag); scc_ir_bblock_t *scc_ir_bblock_alloc(const char *label); scc_ir_func_t *scc_ir_func_alloc(const char *name); scc_ir_node_t *scc_ir_node_alloc(const char *name, scc_ir_node_tag_t tag); // scc_ir_type_t *scc_ir_type_alloc_with_ctx(scc_ir_type_tag_t tag); // scc_ir_bblock_t *scc_ir_bblock_alloc_with_ctx(const char *label); // scc_ir_func_t *scc_ir_func_alloc_with_ctx(const char *name); // scc_ir_node_t *scc_ir_node_alloc_with_ctx(const char *name, // scc_ir_node_tag_t tag); #endif /* __SCC_IR_H__ */