[all-commits] [llvm/llvm-project] fecc0b: AMDGPU: Add llvm.amdgcn.s.wait.event intrinsic
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Fri Feb 6 03:32:34 PST 2026
Branch: refs/heads/users/arsenm/amdgpu/add-s-wait-event-intrinsic
Home: https://github.com/llvm/llvm-project
Commit: fecc0bfc218892d83ae7871d3ecde0ebd746e06c
https://github.com/llvm/llvm-project/commit/fecc0bfc218892d83ae7871d3ecde0ebd746e06c
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2026-02-06 (Fri, 06 Feb 2026)
Changed paths:
M clang/include/clang/Basic/BuiltinsAMDGPU.td
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaAMDGPU.cpp
A clang/test/SemaOpenCL/builtins-amdgcn-s-wait-event.cl
M llvm/include/llvm/IR/IntrinsicsAMDGPU.td
M llvm/lib/Target/AMDGPU/SOPInstructions.td
M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.wait.event.ll
Log Message:
-----------
AMDGPU: Add llvm.amdgcn.s.wait.event intrinsic
Exactly match the s_wait_event instruction. For some reason we already
had this instruction used through llvm.amdgcn.s.wait.event.export.ready,
but that hardcodes a specific value. This should really be a bitmask that
can combine multiple wait types.
gfx11 -> gfx12 broke compatabilty in a weird way, by inverting the
interpretation of the bit but also shifting the used bit by 1. Simplify
the selection of the old intrinsic by just using the magic number 2, which
should satisfy both cases.
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