[SPIR-V] Add atomic_flag builtin implementation
authorMichal Paszkowski <michal.paszkowski@outlook.com>
Wed, 21 Dec 2022 21:51:59 +0000 (22:51 +0100)
committerMichal Paszkowski <michal.paszkowski@outlook.com>
Wed, 21 Dec 2022 21:59:18 +0000 (22:59 +0100)
commit8708089896767fe8bcaf95b24ff7b472d928a65f
tree6d730b549d783846de787144045d95318b6fd789
parent2cb393590ea537b06fa66e6d847a1159c227a313
[SPIR-V] Add atomic_flag builtin implementation

This change provides implementation details for atomic_flag builtins and
adds an extended atomic_flag.ll test from the LLVM SPIR-V Translator.

Differential Revision: https://reviews.llvm.org/D136310
llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
llvm/lib/Target/SPIRV/SPIRVBuiltins.td
llvm/test/CodeGen/SPIRV/transcoding/atomic_flag.ll [new file with mode: 0644]