Skip to content

DPC++ daily 2022-10-17

Pre-release
Pre-release
Compare
Choose a tag to compare
@bb-sycl bb-sycl released this 17 Oct 16:40
· 122839 commits to sycl since this release
e6c4c15
[LIBCLC] Fix mangling in atomic functions (#7057)

Hard coding the substitution for `AtomicFAddEXT` meant that for the case
without AS specified, it was pushing the `MemorySemanticFlag` inside
`Scope` namespace creating:
```cpp
__spirv_AtomicFAddEXT(double*, __spv::Scope::Flag, __spv::Scope::MemorySemanticsMask::Flag, double)
```

For the `Increment`, the number of chars for the mangled name `_Z24` was
correct, but the typo in the op name was resulting in the pointer being
lost, resulting in the first argument being just a value:
```cpp
__spirv_AtomicIncrementP(unsigned long AS1, __spv::Scope::Flag, __spv::Scope::MemorySemanticsMask::Flag)
```