This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Add atomics target option
ClosedPublic

Authored by aheejin on Feb 5 2019, 5:29 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

aheejin created this revision.Feb 5 2019, 5:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 5 2019, 5:29 PM
aheejin updated this revision to Diff 185454.Feb 5 2019, 5:31 PM
  • Fix typo
tlively added inline comments.Feb 5 2019, 5:31 PM
lib/Basic/Targets/WebAssembly.cpp
172 ↗(On Diff #185453)

-atomics

aheejin marked an inline comment as done.Feb 5 2019, 5:35 PM
tlively accepted this revision.Feb 5 2019, 5:36 PM

LGTM

lib/Basic/Targets/WebAssembly.cpp
172 ↗(On Diff #185453)

You won the race!

test/Preprocessor/wasm-target-features.c
89 ↗(On Diff #185454)

Nice.

This revision is now accepted and ready to land.Feb 5 2019, 5:36 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 5 2019, 5:42 PM
sbc100 added a comment.Feb 5 2019, 6:35 PM

How does this relate to the existing -mattr=+atomics of llc? Will it also result in attributes #0 = { "target-features"="+atomics" } in the bitcode?

How does this relate to the existing -mattr=+atomics of llc? Will it also result in attributes #0 = { "target-features"="+atomics" } in the bitcode?

Yes