diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-08-14 14:33:54 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-08-14 14:33:54 +0000 |
commit | 5321ffedee1b4e05b7fa56cab64c595516fd9533 (patch) | |
tree | ffda4ecce65bb72e54a07d8ed2c09288fa207b43 /gcc/jit/libgccjit.h | |
parent | b31856d3ac23cf3dab1e95cb96230dc81564c84a (diff) | |
download | gcc-hsa.tar.gz |
Merged trunk revision 251080 into the hsa branchhsa
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/hsa@251093 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jit/libgccjit.h')
-rw-r--r-- | gcc/jit/libgccjit.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 */ |