]> granicus.if.org Git - clang/commitdiff
[WebAssembly] Fix __builtin_wasm_tls_base intrinsic
authorGuanzhong Chen <gzchen@google.com>
Thu, 18 Jul 2019 21:17:52 +0000 (21:17 +0000)
committerGuanzhong Chen <gzchen@google.com>
Thu, 18 Jul 2019 21:17:52 +0000 (21:17 +0000)
Summary:
Properly generate the outchain for the `__builtin_wasm_tls_base` intrinsic.

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

Reviewers: tlively, aheejin, sbc100, sunfish

Reviewed By: tlively

Subscribers: dschuff, jgravelle-google, hiraditya, cfe-commits, llvm-commits, sunfish

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D64949

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366499 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/BuiltinsWebAssembly.def

index 68cecdf63094d817ec9a0fdfc6af48d7d7819efa..0c0ca9e9308b44b73b5734067262d1ccc611c3f2 100644 (file)
@@ -31,7 +31,7 @@ TARGET_BUILTIN(__builtin_wasm_data_drop, "vIUi", "", "bulk-memory")
 
 // Thread-local storage
 TARGET_BUILTIN(__builtin_wasm_tls_size, "z", "nc", "bulk-memory")
-TARGET_BUILTIN(__builtin_wasm_tls_base, "v*", "n", "bulk-memory")
+TARGET_BUILTIN(__builtin_wasm_tls_base, "v*", "nU", "bulk-memory")
 
 // Floating point min/max
 BUILTIN(__builtin_wasm_min_f32, "fff", "nc")