#ifndef __SCC_IR2MCODE_H__ #define __SCC_IR2MCODE_H__ #include "reg_alloc.h" #include #include #include #include typedef struct { scc_ir_cprog_t *cprog; scc_ir_cprog_ctx_t *ir_ctx; scc_mcode_t mcode; sccf_builder_t builder; scc_reg_alloc_t reg_alloc; scc_hashtable_t *noderef2regloc; } scc_ir2mcode_ctx_t; // amd64 void scc_ir2mcode_init(scc_ir2mcode_ctx_t *ctx, scc_ir_cprog_t *cprog, scc_ir_cprog_ctx_t *ir_ctx, scc_mcode_arch_t arch); void scc_ir2mcode(scc_ir2mcode_ctx_t *ctx); #endif /* __SCC_IR2MCODE_H__ */