]> granicus.if.org Git - clang/commit
[WebAssembly] Implement __builtin_wasm_tls_base intrinsic
authorGuanzhong Chen <gzchen@google.com>
Thu, 18 Jul 2019 17:53:22 +0000 (17:53 +0000)
committerGuanzhong Chen <gzchen@google.com>
Thu, 18 Jul 2019 17:53:22 +0000 (17:53 +0000)
commit19057e1a3e9894d48daabeaccffa85091c8458a5
tree96db0d1077fa0cdb651dc08a4132a570e0260b36
parent2bc7885ac1167b5fc89f6daef73699a035cf8cc5
[WebAssembly] Implement __builtin_wasm_tls_base intrinsic

Summary:
Add `__builtin_wasm_tls_base` so that LeakSanitizer can find the thread-local
block and scan through it for memory leaks.

Reviewers: tlively, aheejin, sbc100

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

Tags: #clang, #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366475 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/BuiltinsWebAssembly.def
lib/CodeGen/CGBuiltin.cpp
test/CodeGen/builtins-wasm.c