[all-commits] [llvm/llvm-project] 6bd4d2: [AMDGPU] Introduce asyncmark/wait intrinsics

Sameer Sahasrabuddhe via All-commits all-commits at lists.llvm.org
Sun Feb 8 20:44:25 PST 2026


  Branch: refs/heads/users/ssahasra/asyncmark-wait
  Home:   https://github.com/llvm/llvm-project
  Commit: 6bd4d28fe07d130589d39cb9c4e73c935f84b2f4
      https://github.com/llvm/llvm-project/commit/6bd4d28fe07d130589d39cb9c4e73c935f84b2f4
  Author: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
  Date:   2026-02-09 (Mon, 09 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



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