aboutsummaryrefslogtreecommitdiff
path: root/gcc/jit/docs/cp/topics/types.rst
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/jit/docs/cp/topics/types.rst')
-rw-r--r--gcc/jit/docs/cp/topics/types.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/jit/docs/cp/topics/types.rst b/gcc/jit/docs/cp/topics/types.rst
index e85a4925896..1df896e5c28 100644
--- a/gcc/jit/docs/cp/topics/types.rst
+++ b/gcc/jit/docs/cp/topics/types.rst
@@ -109,6 +109,20 @@ Pointers, `const`, and `volatile`
Param "loc" is optional.
+Vector types
+------------
+
+.. function:: gccjit::type gccjit::type::get_vector (size_t num_units)
+
+ Given type "T", get type:
+
+ .. code-block:: c
+
+ T __attribute__ ((vector_size (sizeof(T) * num_units))
+
+ T must be integral or floating point; num_units must be a power of two.
+
+
Structures and unions
---------------------