This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Encapsulate more in checkDeviceAndCtors
ClosedPublic

Authored by jdenny on Mar 3 2021, 7:55 PM.

Details

Summary

This patch just encapsulates some repeated code. To do so, it
relocates some functions from interface.cpp to omptarget.cpp. It also
adjusts them to the LLVM coding style.

This patch is almost NFC except some DP messages are a bit
different. For example, messages like "Entering target region" are
now emitted even if offload is disabled, but a subsequent "Offload is
disabled" is then emitted.

Diff Detail

Event Timeline

jdenny created this revision.Mar 3 2021, 7:55 PM
jdenny requested review of this revision.Mar 3 2021, 7:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2021, 7:55 PM
Herald added a subscriber: sstefan1. · View Herald Transcript
jdoerfert accepted this revision.Mar 3 2021, 7:58 PM

LG, nice cleanup

This revision is now accepted and ready to land.Mar 3 2021, 7:58 PM
grokos accepted this revision.Mar 4 2021, 4:00 AM

LGTM, thanks!

This revision was landed with ongoing or failed builds.Mar 4 2021, 9:13 AM
This revision was automatically updated to reflect the committed changes.
jdenny added a comment.Mar 4 2021, 9:19 AM

Thanks for the reviews!