summaryrefslogtreecommitdiff
path: root/src/lj_iropt.h
diff options
context:
space:
mode:
authorMike Pall <mike>2011-02-02 02:29:37 +0100
committerMike Pall <mike>2011-02-02 02:29:37 +0100
commitb613216efc7447dae645d8834e4d6f3185cd1bcc (patch)
tree0859fed377f00ebeada70ba45d02496b7fb4a249 /src/lj_iropt.h
parentc539c0cac8f668e66a5ce9e5fd645cb45e3c5063 (diff)
downloadluajit-b613216efc7447dae645d8834e4d6f3185cd1bcc.tar.gz
luajit-b613216efc7447dae645d8834e4d6f3185cd1bcc.tar.bz2
luajit-b613216efc7447dae645d8834e4d6f3185cd1bcc.zip
Add SPLIT pass to split 64 bit IR instructions for 32 bit CPUs.
Add generic HIOP instruction for extra backend functionality. Add support for HIOP to x86 backend. Use POWI for 64 bit integer x^k, too. POWI is lowered to a call by SPLIT or the x64 backend.
Diffstat (limited to 'src/lj_iropt.h')
-rw-r--r--src/lj_iropt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lj_iropt.h b/src/lj_iropt.h
index 43c414c1..db99c118 100644
--- a/src/lj_iropt.h
+++ b/src/lj_iropt.h
@@ -141,6 +141,12 @@ LJ_FUNC IRType lj_opt_narrow_forl(cTValue *forbase);
141/* Optimization passes. */ 141/* Optimization passes. */
142LJ_FUNC void lj_opt_dce(jit_State *J); 142LJ_FUNC void lj_opt_dce(jit_State *J);
143LJ_FUNC int lj_opt_loop(jit_State *J); 143LJ_FUNC int lj_opt_loop(jit_State *J);
144#if LJ_HASFFI && LJ_32
145LJ_FUNC void lj_opt_split(jit_State *J);
146#else
147#define lj_opt_split(J) UNUSED(J)
148#endif
149
144#endif 150#endif
145 151
146#endif 152#endif