12 lines
310 B
C
12 lines
310 B
C
#ifndef __IR_OPT_H__
|
|
#define __IR_OPT_H__
|
|
|
|
/* IR 层优化 pass:输入输出都是 spl_ir_t(节点 arena),纯函数式、可开关。
|
|
* 由 splc0 --opt 在 ast2ir 之后、ir2vm 之前调用。 */
|
|
|
|
#include "spl_ir.h"
|
|
|
|
void spl_ir_opt(spl_ir_t *ir, const spl_attr_t *attr);
|
|
|
|
#endif /* __IR_OPT_H__ */
|