[PATCH] D109327: [OpenCL][Docs] Release 13 notes
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 6 08:23:55 PDT 2021
Anastasia created this revision.
Anastasia added reviewers: azabaznov, olestrohm, Topotuna, svenvh, airlied, stuart, tstellar.
Herald added subscribers: ebevhan, yaxunl.
Anastasia requested review of this revision.
Major OpenCL functionality added in release 13.
https://reviews.llvm.org/D109327
Files:
clang/docs/ReleaseNotes.rst
Index: clang/docs/ReleaseNotes.rst
===================================================================
--- clang/docs/ReleaseNotes.rst
+++ clang/docs/ReleaseNotes.rst
@@ -150,10 +150,82 @@
Objective-C Language Changes in Clang
-------------------------------------
-OpenCL C Language Changes in Clang
-----------------------------------
+OpenCL Kernel Language Changes in Clang
+---------------------------------------
-...
+
+Command-line interface changes:
+
+- All builtin types, macros and functions declarations are now added by default
+ without any command-line flags. A flag is provided ``-cl-no-stdinc`` to
+ suppress the default declarations non-native to the compiler.
+
+- Clang now compiles using OpenCL C version 1.2 by default if no version is
+ specified explicitly from the command line.
+
+- Clang now supports ``.clcpp`` file extension for sources written in
+ C++ for OpenCL.
+
+Misc common changes:
+
+- Added ``NULL`` definition in internal headers for standards prior to the
+ version 2.0.
+
+- Fix OpenCL C language version and SPIR address space reporting in DWARF.
+
+- Simplified use of pragma in extensions for ``double``, images, atomics,
+ subgroups, Arm dot product extension. There are less cases where extension
+ pragma is now required by clang to compile kernel sources.
+
+- Added missing ``as_size``/``as_ptrdiff``/``as_intptr``/``as_uintptr_t``
+ operators to internal headers.
+
+- Added new builtin function for ndrange, ``cl_khr_subgroup_extended_types``,
+ ``cl_khr_subgroup_non_uniform_vote``, ``cl_khr_subgroup_ballot``,
+ ``cl_khr_subgroup_non_uniform_arithmetic``, ``cl_khr_subgroup_shuffle``,
+ ``cl_khr_subgroup_shuffle_relative``, ``cl_khr_subgroup_clustered_reduce``
+ into the default Tablegen-based header.
+
+- Added online documentation for Tablegen-based header, OpenCL 3.0 support,
+ new clang extensions.
+
+New extensions:
+
+- ``cl_khr_integer_dot_product`` for dedicated support of DOT product.
+
+- ``cl_khr_extended_bit_ops`` for dedicated support of extra binary operations.
+
+- ``__cl_clang_bitfields`` for use of bit-fields in the kernel code.
+
+- ``__cl_clang_non_portable_kernel_param_types`` for relaxing some restrictions
+ to types of kernel parameters.
+
+OpenCL C 3.0 related changes:
+
+- Added parsing support for the optionality of generic address space, images
+ (including 3d writes and ``read_write`` access qualifier), pipes, program
+ scope variables, double-precision floating-point support.
+
+- Added optionality support for builtin functions (in ``opencl-c.h`` header)
+ for generic address space, C11 atomics.
+
+- Added ``memory_scope_all_devices`` enum for the atomics in internal headers.
+
+- Enabled use of ``.rgba`` vector components.
+
+C++ for OpenCL related changes:
+
+- Added ``NULL`` macro to internal headers.
+
+- Added ``__remove_address_space`` metaprogramming utility in internal headers
+ to allow removing address spaces from types.
+
+- Improved overloads resolution logic for constructors wrt address spaces.
+
+- Improved diagnostics of OpenCL specific types and address space qualified
+ types in ``reinterpret_cast`` and template functions.
+
+- Fixed use of ``half`` type.
ABI Changes in Clang
--------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109327.370929.patch
Type: text/x-patch
Size: 3260 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210906/9ab53f34/attachment.bin>
More information about the cfe-commits
mailing list