[all-commits] [llvm/llvm-project] e10885: clang: Allow targets to set custom metadata on ato...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Jul 25 22:57:50 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e108853ac8fad27ff22be9303c87d90bcdf0ef53
      https://github.com/llvm/llvm-project/commit/e108853ac8fad27ff22be9303c87d90bcdf0ef53
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-07-26 (Fri, 26 Jul 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 (#96906)

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