Skip to content

Commit a703b85

Browse files
[spirv][amdgpu] Set atomic size in the clang target info
1 parent 72791fe commit a703b85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Basic/Targets/SPIR.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ class LLVM_LIBRARY_VISIBILITY SPIRV64AMDGCNTargetInfo final
399399
HasLegalHalfType = true;
400400
HasFloat16 = true;
401401
HalfArgsAndReturns = true;
402+
403+
MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
402404
}
403405

404406
bool hasBFloat16Type() const override { return true; }

0 commit comments

Comments
 (0)