[PATCH] D64537: [WebAssembly] Implement thread-local storage (local-exec model)
Derek Schuff via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 15 15:21:32 PDT 2019
dschuff added a comment.
The `offset` field of a segment can be a constant expression <https://webassembly.github.io/spec/core/valid/instructions.html#constant-expressions> which can be a `global.get` of an imported global. So we could have an imported global `__tls_base` which is different for each thread, and have an active segment with that as its segment offset?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64537/new/
https://reviews.llvm.org/D64537
More information about the cfe-commits
mailing list