diff options
author | Edward Smith-Rowland <3dw4rd@verizon.net> | 2017-08-12 19:09:40 +0000 |
---|---|---|
committer | Edward Smith-Rowland <3dw4rd@verizon.net> | 2017-08-12 19:09:40 +0000 |
commit | 40fa8ee5f9da161462fde48776ef6262366f9a13 (patch) | |
tree | d3c3bf913950c59ef83b8d9ede50b0978ec0c12f /gcc/jit/docs/cp/topics/types.rst | |
parent | 3acaf2e51caf356a9afc763cfd70b91d1ab094b5 (diff) |
Merged revisions r232323 through r251067 to the branchtr29124
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/tr29124@251068 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jit/docs/cp/topics/types.rst')
-rw-r--r-- | gcc/jit/docs/cp/topics/types.rst | 14 |
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 --------------------- |