This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP]Fix PR47158, case 2: do not report host-only functions in unused function in device mode.
ClosedPublic

Authored by ABataev on Aug 18 2020, 12:17 PM.

Details

Summary

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 be dignosed as used in device mode, if the caller
function is not used in device mode too.

Diff Detail

Event Timeline

ABataev created this revision.Aug 18 2020, 12:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2020, 12:17 PM
ABataev requested review of this revision.Aug 18 2020, 12:17 PM
jdoerfert accepted this revision.Aug 18 2020, 12:25 PM

LGTM, nit: Is there a "not" missing in the the commit message?

This revision is now accepted and ready to land.Aug 18 2020, 12:25 PM

LGTM, nit: Is there a "not" missing in the the commit message?

Yes, will add it, thanks!