Skip to content

Commit

Permalink
Set max bitwidths for atomic operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Maqrkk committed Feb 8, 2024
1 parent 75fc054 commit 875c395
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang/lib/Basic/Targets/WebAssembly.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ class CheerpTargetInfo : public TargetInfo {
LongDoubleWidth = LongDoubleAlign = 64;
LongDoubleFormat = &llvm::APFloat::IEEEdouble();
SizeType = UnsignedInt;
// We define these as 32-bit for now, since AsmJS cannot handle 64-bit atomic operations currently.
MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 32;

// Use 32-bit integers for two separated bit fields.
UseBitFieldTypeAlignment = true;
Expand Down

0 comments on commit 875c395

Please sign in to comment.