This is the mail archive of the
mailing list for the GCC project.
Re: [RFC, VECTOR ABI] Allow __attribute__((vector)) in GCC by default.
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Kirill Yukhin <kirill dot yukhin at gmail dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, <gcc at gcc dot gnu dot org>, <libc-alpha at sourceware dot org>
- Date: Mon, 5 Oct 2015 13:24:34 +0000
- Subject: Re: [RFC, VECTOR ABI] Allow __attribute__((vector)) in GCC by default.
- Authentication-results: sourceware.org; auth=none
- References: <20151005130733 dot GB62312 at msticlxl57 dot ims dot intel dot com>
On Mon, 5 Oct 2015, Kirill Yukhin wrote:
> To enable vectorization of loops w/ calls to math functions it is reasonable
> to enable parsing of attribute vector for functions unconditionally and
> change GlibC's header file not to use `omp declare simd', but use
> __attribute__((vector)) instead.
I assume you mean __vector__, for namespace reasons. Obviously you need
appropriate GCC version conditionals in the headers to use the attribute
only when supported. In addition, (a) this attribute doesn't seem to be
documented in extend.texi, and you'll need to include documentation in
your GCC patch that makes this a generic extension rather than just part
of Cilkplus, and (b) you'll need to agree with the x86_64 ABI mailing list
an extension of the ABI document (as attached to
<https://sourceware.org/glibc/wiki/libmvec>) to cover this attribute, and
update the document there.
Joseph S. Myers