Mercurial > octave-antonio
diff libinterp/parse-tree/pt-eval.cc @ 18325:2a8243d8327a
jit compiler: Add support for the do_until statement
* libinterp/corefcn/pt-jit.cc (jit_convert::visit_do_until_command):
Compile do_until loop.
* libinterp/corefcn/pt-eval.cc (tree_evaluator::visit_do_until_command):
Use jit compiler if available.
* test/jit.tst: do until tests added
author | LYH <lyh.kernel@gmail.com> |
---|---|
date | Fri, 27 Dec 2013 13:01:39 +0100 |
parents | 75d7cde2dda4 |
children | 6443693a176f |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-eval.cc Fri Aug 23 11:33:21 2013 +0800 +++ b/libinterp/parse-tree/pt-eval.cc Fri Dec 27 13:01:39 2013 +0100 @@ -1121,6 +1121,11 @@ if (error_state) return; +#if HAVE_LLVM + if (tree_jit::execute (cmd)) + return; +#endif + unwind_protect frame; frame.protect_var (in_loop_command);