This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Fix __builtin_wasm_tls_base intrinsic
ClosedPublic

Authored by quantum on Jul 18 2019, 1:43 PM.

Details

Summary

Properly generate the outchain for the __builtin_wasm_tls_base intrinsic.

Also marked the intrinsic pure, per @sunfish's suggestion.

Diff Detail

Repository
rL LLVM

Event Timeline

quantum created this revision.Jul 18 2019, 1:43 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 18 2019, 1:43 PM
tlively accepted this revision.Jul 18 2019, 2:08 PM

LGTM modulo a test!

This revision is now accepted and ready to land.Jul 18 2019, 2:08 PM
quantum updated this revision to Diff 210675.Jul 18 2019, 2:16 PM

Add a test with a memory dependency on __builtin_wasm_tls_base.

This revision was automatically updated to reflect the committed changes.