With f3b4f99007cdcb3306484c9a39d31addc20aaa69, the exclusive source of truth for whether threads are supported is the -matomics flag. Accordingly, strip TLS flags when -matomic is not specified, even if bulk-memory is specified and it would theoretically be supportable. This allows the backend to compile TLS variables when -mbulk-memory is enabled but threads are not enabled.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
The addition of -mcpu seem seperate to the TLS issue.. maybe it can land separately? I wonder if we should rename or alias mvp to something more widely understandable such as v1 ?
llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | ||
---|---|---|
207–208 | Why not else if here and avoid running stripThreadLocals twice? |
Comment Actions
I think I've got a test case pending that actually needs this change.. can this be landed?
Why not else if here and avoid running stripThreadLocals twice?