aboutsummaryrefslogtreecommitdiff
path: root/gcc/jit/libgccjit++.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/jit/libgccjit++.h')
-rw-r--r--gcc/jit/libgccjit++.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/jit/libgccjit++.h b/gcc/jit/libgccjit++.h
index ea277f8c51b..a83ccf6fb29 100644
--- a/gcc/jit/libgccjit++.h
+++ b/gcc/jit/libgccjit++.h
@@ -333,6 +333,7 @@ namespace gccjit
type get_const ();
type get_volatile ();
type get_aligned (size_t alignment_in_bytes);
+ type get_vector (size_t num_units);
// Shortcuts for getting values of numeric types:
rvalue zero ();
@@ -1306,6 +1307,13 @@ type::get_aligned (size_t alignment_in_bytes)
alignment_in_bytes));
}
+inline type
+type::get_vector (size_t num_units)
+{
+ return type (gcc_jit_type_get_vector (get_inner_type (),
+ num_units));
+}
+
inline rvalue
type::zero ()
{