This is an archive of the discontinued LLVM Phabricator instance.

[Hexagon][VE][WebAssembly] Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP macros
ClosedPublic

Authored by brad on Dec 29 2022, 3:15 AM.

Diff Detail

Event Timeline

brad created this revision.Dec 29 2022, 3:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 29 2022, 3:16 AM
brad requested review of this revision.Dec 29 2022, 3:16 AM
brad updated this revision to Diff 485607.Dec 29 2022, 4:18 AM
brad updated this revision to Diff 485743.Dec 30 2022, 8:42 PM

Remove some whitespace.

brad added a reviewer: MaskRay.Jan 1 2023, 4:20 AM
kparzysz accepted this revision.Jan 2 2023, 7:00 AM

All of Hexagon's atomics are implemented using load-locked/store-conditional. If that meets the expectations of these macros, then this is fine with me.

This revision is now accepted and ready to land.Jan 2 2023, 7:00 AM
aheejin accepted this revision.Jan 4 2023, 7:15 PM

All Wasm atomics are sequentially consistent; If that's supported by this macro, LGTM.

MaskRay accepted this revision.Jan 4 2023, 10:02 PM
MaskRay added inline comments.
clang/test/Preprocessor/predefined-arch-macros.c
4337

Use --target= for new tests. -target is legacy.

brad added inline comments.Jan 5 2023, 1:42 AM
clang/test/Preprocessor/predefined-arch-macros.c
4337

Use --target= for new tests. -target is legacy.

Ok, I will do so.