Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully update threading support for LLVM 9 #1688

Merged
merged 1 commit into from
Jul 30, 2019

Conversation

alexcrichton
Copy link
Contributor

@alexcrichton alexcrichton commented Jul 30, 2019

Support has landed in rust-lang/rust for full support for LLVM 9's
interpretation of WebAssembly threads. This commit updates our thread
transformation pass to take all this into account, namely:

  • The threading pass now runs by default and is keyed on whether memory
    is shared, not off an env var.
  • TLS is initialized in addition to memory on each thread.
  • Stack pointer finding is tweaked to account for the TLS base also
    being a mutable global.
  • The build of the parallel raytrace example was updated to use today's
    nightly.

Support has landed in rust-lang/rust for full support for LLVM 9's
interpretation of WebAssembly threads. This commit updates our thread
transformation pass to take all this into account, namely:

* The threadign pass now runs by default and is keyed on whether memory
  is shared, not off an env var.
* TLS is initialized in addition to memory on each thread.
* Stack pointer finding is tweaked to account for the TLS base also
  being a mutable global.
* The build of the parallel raytrace example was updated to use today's
  nightly.
@alexcrichton alexcrichton merged commit 38b8232 into rustwasm:master Jul 30, 2019
@alexcrichton alexcrichton deleted the llvm-9-threads branch July 30, 2019 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant