[all-commits] [llvm/llvm-project] 7995fc: [AMDGPU] Introduce asyncmark/wait intrinsics

Sameer Sahasrabuddhe via All-commits all-commits at lists.llvm.org
Tue Feb 10 22:30:58 PST 2026


  Branch: refs/heads/users/ssahasra/asyncmark-wait
  Home:   https://github.com/llvm/llvm-project
  Commit: 7995fc0a562018b4f63fbe01a49ff28949383685
      https://github.com/llvm/llvm-project/commit/7995fc0a562018b4f63fbe01a49ff28949383685
  Author: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
  Date:   2026-02-11 (Wed, 11 Feb 2026)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsAMDGPU.td
    A clang/test/CodeGenOpenCL/builtins-amdgcn-asyncmark-errs.cl
    A clang/test/CodeGenOpenCL/builtins-amdgcn-asyncmark.cl
    M llvm/include/llvm/IR/IntrinsicsAMDGPU.td
    M llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
    M llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
    M llvm/lib/Target/AMDGPU/SIInstrInfo.h
    M llvm/lib/Target/AMDGPU/SOPInstructions.td
    M llvm/test/CodeGen/AMDGPU/async-buffer-loads.ll
    A llvm/test/CodeGen/AMDGPU/asyncmark-err.ll
    A llvm/test/CodeGen/AMDGPU/asyncmark-max-pregfx12.ll
    M llvm/test/CodeGen/AMDGPU/asyncmark-pregfx12.ll

  Log Message:
  -----------
  [AMDGPU] Introduce asyncmark/wait intrinsics

Asynchronous operations are memory transfers (usually between the global memory
and LDS) that are completed independently at an unspecified scope. A thread that
requests one or more asynchronous transfers can use async marks to track their
completion. The thread waits for each mark to be completed, which indicates that
requests initiated in program order before this mark have also completed.

For now, we implement asyncmark/wait operations on pre-GFX12 architectures that
support "LDS DMA" operations. Future work will extend support to GFX12Plus
architectures that support "true" async operations.

Co-authored-by: Ryan Mitchell ryan.mitchell at amd.com

Fixes: SWDEV-521121


  Commit: f63477f5981544809e217c16ee83c01431eb98e6
      https://github.com/llvm/llvm-project/commit/f63477f5981544809e217c16ee83c01431eb98e6
  Author: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
  Date:   2026-02-11 (Wed, 11 Feb 2026)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInstrInfo.h

  Log Message:
  -----------
  don't move usesLGKM_CNT()


Compare: https://github.com/llvm/llvm-project/compare/3f6a67c48113...f63477f59815

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