[PATCH] D135902: [SPIR-V] Add atomic_init builtin and fix atomic explicit lowering

Michal Paszkowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 13 11:54:16 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 for atomic_init builtin
- Fixes atomic_exchange_explicit lowering
- Fixes atomic_store_explicit lowering
- Adds a new line char to LLVM_DEBUG messages printed from SPIRVBuiltins.cpp

The AtomicsBuiltinsFloat.ll test comes from the SPIR-V translator and was extended with additional checks.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135902

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135902.467554.patch
Type: text/x-patch
Size: 8012 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221013/7c0fcb97/attachment.bin>


More information about the llvm-commits mailing list