[all-commits] [llvm/llvm-project] d03a68: [Clang][AMDGPU] Add ``amdgcn_av("none")`` attribut...

Sameer Sahasrabuddhe via All-commits all-commits at lists.llvm.org
Wed Jun 10 22:38:14 PDT 2026


  Branch: refs/heads/users/ssahasra/av-metadata-clang
  Home:   https://github.com/llvm/llvm-project
  Commit: d03a68a37b3c775ae68d21eef81871fc36cf55bd
      https://github.com/llvm/llvm-project/commit/d03a68a37b3c775ae68d21eef81871fc36cf55bd
  Author: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
  Date:   2026-06-11 (Thu, 11 Jun 2026)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/CodeGen/CGAtomic.cpp
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/CodeGen/CGStmt.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp
    M clang/lib/CodeGen/Targets/AMDGPU.cpp
    M clang/lib/Sema/SemaStmtAttr.cpp
    A clang/test/CodeGen/AMDGPU/amdgcn-av-non-atomic.cpp
    A clang/test/CodeGen/AMDGPU/amdgcn-av-none-attr.cpp

  Log Message:
  -----------
  [Clang][AMDGPU] Add ``amdgcn_av("none")`` attribute for atomic expressions

Add a statement attribute that suppresses MakeAvailable/MakeVisible
cache operations on AMDGPU atomic instructions while preserving memory
ordering (waits).

The attribute takes a string argument specifying the mode. Currently
"none" is the only supported mode. The resulting atomic or fence
instruction carries !mmra !{!"amdgcn-av", !"none"} metadata.

Assisted-By: Claude Opus 4.6



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