[all-commits] [llvm/llvm-project] 350579: clang: Allow targets to set custom metadata on ato...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Thu Jun 27 06:21:38 PDT 2024
Branch: refs/heads/users/arsenm/clang-targets-set-custom-atomicrmw-metadata
Home: https://github.com/llvm/llvm-project
Commit: 350579354c8e57c815e4f2f28be9413a1f0a1176
https://github.com/llvm/llvm-project/commit/350579354c8e57c815e4f2f28be9413a1f0a1176
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2024-06-27 (Thu, 27 Jun 2024)
Changed paths:
M clang/lib/CodeGen/CGAtomic.cpp
M clang/lib/CodeGen/CGExprScalar.cpp
M clang/lib/CodeGen/CGStmtOpenMP.cpp
M clang/lib/CodeGen/CodeGenFunction.h
M clang/lib/CodeGen/TargetInfo.h
M clang/lib/CodeGen/Targets/AMDGPU.cpp
A clang/test/CodeGen/AMDGPU/amdgpu-atomic-float.c
M clang/test/CodeGenCUDA/amdgpu-atomic-ops.cu
A clang/test/OpenMP/amdgpu-unsafe-fp-atomics.cpp
Log Message:
-----------
clang: Allow targets to set custom metadata on atomics
Use this to replace the emission of the amdgpu-unsafe-fp-atomics
attribute in favor of per-instruction metadata. In the future
new fine grained controls should be introduced that also cover
the integer cases.
Add a wrapper around CreateAtomicRMW that appends the metadata,
and update a few use contexts to use it.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list