Find a file
Yaxun Liu 229c78d3a5 [CUDA][HIP] Fix host/device check with -fopenmp
CUDA/HIP program may be compiled with -fopenmp. In this case, -fopenmp is only passed to host compilation
to take advantages of multi-threads computation.

CUDA/HIP and OpenMP both use Sema::DeviceCallGraph to store functions to be analyzed and remove them
once they decide the function is sure to be emitted. CUDA/HIP and OpenMP have different functions to determine
if a function is sure to be emitted.

To check host/device correctly for CUDA/HIP when -fopenmp is enabled, there needs a unified logic to determine
whether a function is to be emitted. The logic needs to be aware of both CUDA and OpenMP logic.

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

llvm-svn: 374263
2019-10-09 23:54:10 +00:00
clang [CUDA][HIP] Fix host/device check with -fopenmp 2019-10-09 23:54:10 +00:00
clang-tools-extra [clangd] Make sure ReplyCallbacks are destroyed before RequestCancelersMutex 2019-10-09 13:59:31 +00:00
compiler-rt [sanitizer_common] Remove OnPrint from Go build. 2019-10-09 22:57:07 +00:00
debuginfo-tests Make nrvo-string test more robust. 2019-06-27 20:38:37 +00:00
libc Add few docs and implementation of strcpy and strcat. 2019-10-04 17:30:54 +00:00
libclc travis: Add LLVM 9 build 2019-09-27 05:58:15 +00:00
libcxx [libc++][test] Miscellaneous MSVC cleanups 2019-10-09 22:19:17 +00:00
libcxxabi [libc++abi] Introduce a LIBCXXABI_LIBRARY_VERSION option 2019-10-07 19:22:04 +00:00
libunwind [libunwind] Adjust libunwind_01.pass.cpp test for ARM EHABI 2019-10-03 17:01:04 +00:00
lld Unify the two CRC implementations 2019-10-09 09:06:30 +00:00
lldb TestMTCSimple.py: allow the test to run on Darwin embedded platforms 2019-10-09 23:52:31 +00:00
llgo
llvm Conservatively add volatility and atomic checks in a few places 2019-10-09 23:43:33 +00:00
openmp [OpenMP] Enable thread affinity on FreeBSD 2019-10-08 21:25:30 +00:00
parallel-libs
polly [Alignment][NFC] Remove StoreInst::setAlignment(unsigned) 2019-10-03 13:17:21 +00:00
pstl [pstl] Allow customizing whether per-TU insulation is provided 2019-08-13 12:49:00 +00:00
.arcconfig
.clang-format
.clang-tidy
.git-blame-ignore-revs Add LLDB reformatting to .git-blame-ignore-revs 2019-09-04 09:31:55 +00:00
.gitignore Add a newline at the end of the file 2019-09-04 06:33:46 +00:00
README.md

The LLVM Compiler Infrastructure

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.