From a300002e3c9aeb153463e0700a4b0898c8069a0e Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: 2004年5月21日 04:58:27 +0000 Subject: Add the "jit_insn_alloca" instruction. --- jitplus/jit-plus-function.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'jitplus/jit-plus-function.cpp') diff --git a/jitplus/jit-plus-function.cpp b/jitplus/jit-plus-function.cpp index 9b64830..2a574c5 100644 --- a/jitplus/jit-plus-function.cpp +++ b/jitplus/jit-plus-function.cpp @@ -644,6 +644,7 @@ jit_value jit_function::get_struct_pointer() * @deftypemethodx jit_function void insn_memcpy ({const jit_value&} dest, {const jit_value&} src, {const jit_value&} size) * @deftypemethodx void insn_memmove ({const jit_value&} dest, {const jit_value&} src, {const jit_value&} size) * @deftypemethodx void jit_insn_memset ({const jit_value&} dest, {const jit_value&} value, {const jit_value&} size) + * @deftypemethodx jit_value jit_insn_alloca ({const jit_value&} size) * Create instructions of various kinds. @xref{Instructions}, for more * information on the individual instructions and their arguments. * @end deftypemethod @@ -1187,6 +1188,11 @@ void jit_function::insn_memset } } +jit_value jit_function::insn_alloca(const jit_value& size) +{ + value_wrap(jit_insn_alloca(func, size.raw())); +} + void jit_function::register_on_demand() { jit_function_set_on_demand_compiler(func, on_demand_compiler); -- cgit v1.2.3

AltStyle によって変換されたページ (->オリジナル) /