[PATCH] D136310: [SPIR-V] Add atomic_flag builtin implementation

Michal Paszkowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 19 18:06:39 PDT 2022


mpaszkowski created this revision.
mpaszkowski added reviewers: iliya-diyachkov, konrad.trifunovic, zuban32, andreytr, arsenm, MaskRay, rengolin.
Herald added subscribers: StephenFan, ThomasRaoux, hiraditya.
Herald added a project: All.
mpaszkowski requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

This change:

- Adds implementation details for the atomic_flag_test_and_set, atomic_flag_test_and_set_explicit, atomic_flag_clear, atomic_flag_clear_explicit builtins
- Adds an atomic_flag.ll test from the SPIR-V translator with additional checks

The atomic_flag.ll passes after this change.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136310

Files:
  llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
  llvm/lib/Target/SPIRV/SPIRVBuiltins.td
  llvm/test/CodeGen/SPIRV/transcoding/atomic_flag.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136310.469095.patch
Type: text/x-patch
Size: 7697 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221020/c75fff6e/attachment.bin>


More information about the llvm-commits mailing list