From 5321ffedee1b4e05b7fa56cab64c595516fd9533 Mon Sep 17 00:00:00 2001 From: jamborm Date: Mon, 14 Aug 2017 14:33:54 +0000 Subject: Merged trunk revision 251080 into the hsa branch git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/hsa@251093 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/jit/libgccjit.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gcc/jit/libgccjit.h') diff --git a/gcc/jit/libgccjit.h b/gcc/jit/libgccjit.h index 898ee989b83..b863b07e959 100644 --- a/gcc/jit/libgccjit.h +++ b/gcc/jit/libgccjit.h @@ -1403,6 +1403,21 @@ extern gcc_jit_type * gcc_jit_type_get_aligned (gcc_jit_type *type, size_t alignment_in_bytes); +#define LIBGCCJIT_HAVE_gcc_jit_type_get_vector + +/* Given type "T", get type: + + T __attribute__ ((vector_size (sizeof(T) * num_units)) + + T must be integral/floating point; num_units must be a power of two. + + This API entrypoint was added in LIBGCCJIT_ABI_8; you can test for its + presence using + #ifdef LIBGCCJIT_HAVE_gcc_jit_type_get_vector +*/ +extern gcc_jit_type * +gcc_jit_type_get_vector (gcc_jit_type *type, size_t num_units); + #ifdef __cplusplus } #endif /* __cplusplus */ -- cgit v1.2.1