[all-commits] [llvm/llvm-project] 478854: [Clang][AMDGPU] Add amdgcn_av("none") attribute fo...

Sameer Sahasrabuddhe via All-commits all-commits at lists.llvm.org
Mon Jul 13 01:17:10 PDT 2026


  Branch: refs/heads/users/ssahasra/av-metadata-clang
  Home:   https://github.com/llvm/llvm-project
  Commit: 4788542685f82933c2df59e25727d4b6ab8b274e
      https://github.com/llvm/llvm-project/commit/4788542685f82933c2df59e25727d4b6ab8b274e
  Author: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
  Date:   2026-07-13 (Mon, 13 Jul 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-amdgpu-atomic.cpp
    A clang/test/CodeGen/AMDGPU/amdgcn-av-none-attr-c-atomic.c
    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