[all-commits] [llvm/llvm-project] fb4acd: [OPENMP]Fix PR47158, case 2: do not report host-on...
Alexey Bataev via All-commits
all-commits at lists.llvm.org
Wed Aug 19 13:15:21 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: fb4acd37fe60a08a0077560d2814053d76ea1c41
https://github.com/llvm/llvm-project/commit/fb4acd37fe60a08a0077560d2814053d76ea1c41
Author: Alexey Bataev <a.bataev at hotmail.com>
Date: 2020-08-19 (Wed, 19 Aug 2020)
Changed paths:
M clang/lib/Sema/Sema.cpp
M clang/test/OpenMP/declare_target_messages.cpp
Log Message:
-----------
[OPENMP]Fix PR47158, case 2: do not report host-only functions in unused function in device mode.
If the function is not marked exlicitly as declare target and it calls
function(s), marked as declare target device_type(host), these host-only
functions should not be dignosed as used in device mode, if the caller
function is not used in device mode too.
Differential Revision: https://reviews.llvm.org/D86164
More information about the All-commits
mailing list