This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] libomptarget: Remove obsolete negative device IDs -2/-3
ClosedPublic

Authored by grokos on Apr 20 2017, 4:30 PM.

Details

Summary

Early implementations of IBM's internal declare target implementation would call __tgt_target with device IDs -2 and -3 to denote constructors and destructors, respectively. The upcoming declare target patch for clang uses dedicated bits (__tgt_offload_entry::flags) to denote ctors/dtors, so the code handling calls to __tgt_target with devices IDs -2 and -3 is obsolete.

Diff Detail

Repository
rL LLVM

Event Timeline

grokos created this revision.Apr 20 2017, 4:30 PM
Hahnfeld accepted this revision.Apr 20 2017, 10:55 PM

LGTM, not currently used in Clang.

This revision is now accepted and ready to land.Apr 20 2017, 10:55 PM
This revision was automatically updated to reflect the committed changes.