[HIP] Add HIP scope atomic operations
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Mon, 22 Nov 2021 19:37:02 +0000 (14:37 -0500)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Tue, 23 Nov 2021 15:13:37 +0000 (10:13 -0500)
commite13246a2ec3dfc13838d43099ca9111c780d2c5e
treefc8ef5934ed8348713ffceb9e64e865eb693dfec
parentb0784d1d14246e5d662172e9af6e85776b81fdf0
[HIP] Add HIP scope atomic operations

Add an AtomicScopeModel for HIP and support for OpenCL builtins
that are missing in HIP.

Patch by: Michael Liao

Revised by: Anshil Ghandi

Reviewed by: Yaxun Liu

Differential Revision: https://reviews.llvm.org/D113925
clang/include/clang/AST/Expr.h
clang/include/clang/Basic/Builtins.def
clang/include/clang/Basic/SyncScope.h
clang/lib/AST/Expr.cpp
clang/lib/CodeGen/CGAtomic.cpp
clang/lib/CodeGen/TargetInfo.cpp
clang/lib/Frontend/InitPreprocessor.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGenCUDA/atomic-ops.cu [new file with mode: 0644]