[all-commits] [llvm/llvm-project] 769cc3: [OpenCL] Simplify use of C11 atomic types.

Anastasia Stulova via All-commits all-commits at lists.llvm.org
Fri May 14 09:43:38 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 769cc335e6e63e5eac0c0ac849de44714326e20b
      https://github.com/llvm/llvm-project/commit/769cc335e6e63e5eac0c0ac849de44714326e20b
  Author: Anastasia Stulova <anastasia.stulova at arm.com>
  Date:   2021-05-14 (Fri, 14 May 2021)

  Changed paths:
    M clang/lib/Sema/Sema.cpp
    M clang/test/Parser/opencl-atomics-cl20.cl

  Log Message:
  -----------
  [OpenCL] Simplify use of C11 atomic types.

Remove requirements on extension pragma in atomic types
because it has not respected the spec wrt disabling types
and hasn't been useful either. With this change, the
developers can use atomic types from the extensions if they
are supported without enabling the pragma just like the builtin
functions

This patch does not break backward compatibility since the
extension pragma is still supported and it makes the behavior of
the compiler less strict by accepting code without needless and
inconsistent pragma statements.

Differential Revision: https://reviews.llvm.org/D100976




More information about the All-commits mailing list