summaryrefslogtreecommitdiff
path: root/src/lj_iropt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_iropt.h')
-rw-r--r--src/lj_iropt.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lj_iropt.h b/src/lj_iropt.h
index db99c118..1c94e91c 100644
--- a/src/lj_iropt.h
+++ b/src/lj_iropt.h
@@ -84,8 +84,6 @@ LJ_FUNC void lj_ir_kvalue(lua_State *L, TValue *tv, const IRIns *ir);
84/* Convert IR operand types. */ 84/* Convert IR operand types. */
85LJ_FUNC TRef LJ_FASTCALL lj_ir_tonum(jit_State *J, TRef tr); 85LJ_FUNC TRef LJ_FASTCALL lj_ir_tonum(jit_State *J, TRef tr);
86LJ_FUNC TRef LJ_FASTCALL lj_ir_tostr(jit_State *J, TRef tr); 86LJ_FUNC TRef LJ_FASTCALL lj_ir_tostr(jit_State *J, TRef tr);
87LJ_FUNC TRef LJ_FASTCALL lj_ir_tobit(jit_State *J, TRef tr);
88LJ_FUNC TRef LJ_FASTCALL lj_ir_toint(jit_State *J, TRef tr);
89 87
90/* Miscellaneous IR ops. */ 88/* Miscellaneous IR ops. */
91LJ_FUNC int lj_ir_numcmp(lua_Number a, lua_Number b, IROp op); 89LJ_FUNC int lj_ir_numcmp(lua_Number a, lua_Number b, IROp op);
@@ -134,9 +132,17 @@ LJ_FUNC TRef LJ_FASTCALL lj_opt_dse_xstore(jit_State *J);
134 132
135/* Narrowing. */ 133/* Narrowing. */
136LJ_FUNC TRef LJ_FASTCALL lj_opt_narrow_convert(jit_State *J); 134LJ_FUNC TRef LJ_FASTCALL lj_opt_narrow_convert(jit_State *J);
135LJ_FUNC TRef LJ_FASTCALL lj_opt_narrow_index(jit_State *J, TRef key);
136LJ_FUNC TRef LJ_FASTCALL lj_opt_narrow_toint(jit_State *J, TRef tr);
137LJ_FUNC TRef LJ_FASTCALL lj_opt_narrow_tobit(jit_State *J, TRef tr);
138#if LJ_HASFFI
139LJ_FUNC TRef LJ_FASTCALL lj_opt_narrow_cindex(jit_State *J, TRef key);
140#endif
141LJ_FUNC TRef lj_opt_narrow_arith(jit_State *J, TRef rb, TRef rc,
142 TValue *vb, TValue *vc, IROp op);
137LJ_FUNC TRef lj_opt_narrow_mod(jit_State *J, TRef rb, TRef rc); 143LJ_FUNC TRef lj_opt_narrow_mod(jit_State *J, TRef rb, TRef rc);
138LJ_FUNC TRef lj_opt_narrow_pow(jit_State *J, TRef rb, TRef rc, TValue *vc); 144LJ_FUNC TRef lj_opt_narrow_pow(jit_State *J, TRef rb, TRef rc, TValue *vc);
139LJ_FUNC IRType lj_opt_narrow_forl(cTValue *forbase); 145LJ_FUNC IRType lj_opt_narrow_forl(jit_State *J, cTValue *forbase);
140 146
141/* Optimization passes. */ 147/* Optimization passes. */
142LJ_FUNC void lj_opt_dce(jit_State *J); 148LJ_FUNC void lj_opt_dce(jit_State *J);