diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-06-25 15:06:43 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-06-28 19:05:42 +0200 |
commit | 6201277441db4023b833e6d643de8077fe38ed6e (patch) | |
tree | f352e3cda43ffefe86c022ec52655ebee1dc9f89 /gcc/d/d-codegen.cc | |
parent | ed06274eacc17a224b87f23111d7ca874ea53b7c (diff) | |
download | gcc-6201277441db4023b833e6d643de8077fe38ed6e.zip gcc-6201277441db4023b833e6d643de8077fe38ed6e.tar.gz gcc-6201277441db4023b833e6d643de8077fe38ed6e.tar.bz2 |
d: Add `@simd` and `@simd_clones` attributes to compiler and library
The `@simd` attribute is equivalent to `__attribute__((simd))`, and
`@simd_clones` is a convenience alias to allow specifying whether the
compiler should generated masked or non-masked simd clones.
gcc/d/ChangeLog:
* d-attribs.cc (handle_omp_declare_simd_attribute): New function.
(d_handle_simd_attribute): New function.
(d_langhook_common_attribute_table): Add 'omp declare simd' attribute.
(d_langhook_attribute_table): Add simd attribute.
libphobos/ChangeLog:
* libdruntime/gcc/attributes.d (simd): Define.
gcc/testsuite/ChangeLog:
* gdc.dg/attr_simd1.d: New test.
* gdc.dg/attr_simd2.d: New test.
Diffstat (limited to 'gcc/d/d-codegen.cc')
0 files changed, 0 insertions, 0 deletions