diff options
author | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2025-02-25 18:31:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-25 18:31:10 +0000 |
commit | 43999deb370113945ef86680014f838f55315ee7 (patch) | |
tree | b4d090e047d0f804c513cd208d49826754d5bee7 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 0a7809c644485d6650ea01bfe616623f580b24d1 (diff) | |
download | llvm-43999deb370113945ef86680014f838f55315ee7.zip llvm-43999deb370113945ef86680014f838f55315ee7.tar.gz llvm-43999deb370113945ef86680014f838f55315ee7.tar.bz2 |
[spirv][amdgpu] Set atomic size in the clang target info (#128569)
Problem identified by Joseph. The openmp device runtime uses
__scoped_atomic_load_n and similar which presently hit
```
error: large atomic operation may incur significant performance
penalty; the access size (4 bytes) exceeds the max lock-free size (0 bytes) [-Werror,-Watomic-alignment]
```
This is because the spirv class doesn't set the corresponding field. The
base does, but only if there's a host toolchain, which there isn't.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions