aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Threading.cpp
diff options
context:
space:
mode:
authorMichael Liao <michael.hliao@gmail.com>2021-06-29 11:03:52 -0400
committerMichael Liao <michael.hliao@gmail.com>2021-07-08 10:48:19 -0400
commit4e5d9c88033f1fc5d5206a02d8303bc6de43cf2b (patch)
treea51ae6f37e6a07bf2b92f44b5bb7ae54b62104ac /llvm/lib/Support/Threading.cpp
parent3e6d2cbf268e66e350ebd321345c7d846933da68 (diff)
downloadllvm-4e5d9c88033f1fc5d5206a02d8303bc6de43cf2b.zip
llvm-4e5d9c88033f1fc5d5206a02d8303bc6de43cf2b.tar.gz
llvm-4e5d9c88033f1fc5d5206a02d8303bc6de43cf2b.tar.bz2
[Internalize] Preserve variables externally initialized.
- ``externally_initialized`` variables would be initialized or modified elsewhere. Particularly, CUDA or HIP may have host code to initialize or modify ``externally_initialized`` device variables, which may not be explicitly referenced on the device side but may still be used through the host side interfaces. Not preserving them triggers the elimination of them in the GlobalDCE and breaks the user code. Reviewed By: yaxunl Differential Revision: https://reviews.llvm.org/D105135
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
0 files changed, 0 insertions, 0 deletions