Add the "jit_insn_alloca" instruction. - libjit.git - libjit

index : libjit.git
libjit
summary refs log tree commit diff
path: root/jitplus/jit-plus-function.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rweather@southern-storm.com.au>2004年05月21日 04:58:27 +0000
committerRhys Weatherley <rweather@southern-storm.com.au>2004年05月21日 04:58:27 +0000
commita300002e3c9aeb153463e0700a4b0898c8069a0e (patch)
treef244ec8915244f797f21f20f5c7b4abf29dc67fc /jitplus/jit-plus-function.cpp
parentfa4a4c1fdf1dcebd01dff89d58802fbb4be569f8 (diff)
downloadlibjit-a300002e3c9aeb153463e0700a4b0898c8069a0e.tar.gz
Add the "jit_insn_alloca" instruction.
Diffstat (limited to 'jitplus/jit-plus-function.cpp')
-rw-r--r--jitplus/jit-plus-function.cpp 6
1 files changed, 6 insertions, 0 deletions
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);
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月13日 03:40:41 +0000

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