This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Check bulk-memory when adjusting lang opts
ClosedPublic

Authored by tlively on Mar 4 2022, 11:20 AM.

Details

Summary

We previously had logic to disable pthreads, set the ThreadModel to Single, and
disable thread-safe statics when the atomics target features is disabled, since
that means that the resulting program will not be used in a threaded context.
Similarly check for the presence of the bulk-memory feature, since that is also
necessary to produce multithreaded programs.

Diff Detail

Event Timeline

tlively created this revision.Mar 4 2022, 11:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2022, 11:20 AM
tlively requested review of this revision.Mar 4 2022, 11:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2022, 11:20 AM
sbc100 accepted this revision.Mar 4 2022, 12:16 PM
This revision is now accepted and ready to land.Mar 4 2022, 12:16 PM
This revision was landed with ongoing or failed builds.Mar 4 2022, 4:07 PM
This revision was automatically updated to reflect the committed changes.
dyung added a subscriber: dyung.Mar 4 2022, 6:26 PM

This change seems to be causing many bots to fail when running the clang :: Preprocessor/init.c test, can you take a look?

https://lab.llvm.org/buildbot/#/builders/139/builds/18081
https://lab.llvm.org/buildbot/#/builders/216/builds/881
https://lab.llvm.org/buildbot/#/builders/109/builds/33853