author | Rhys Weatherley <rweather@southern-storm.com.au> | 2004年05月21日 04:58:27 +0000 |
---|---|---|
committer | Rhys Weatherley <rweather@southern-storm.com.au> | 2004年05月21日 04:58:27 +0000 |
commit | a300002e3c9aeb153463e0700a4b0898c8069a0e (patch) | |
tree | f244ec8915244f797f21f20f5c7b4abf29dc67fc /jitplus/jit-plus-function.cpp | |
parent | fa4a4c1fdf1dcebd01dff89d58802fbb4be569f8 (diff) | |
download | libjit-a300002e3c9aeb153463e0700a4b0898c8069a0e.tar.gz |
-rw-r--r-- | jitplus/jit-plus-function.cpp | 6 |
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); |