This is an archive of the discontinued LLVM Phabricator instance.

[nfc][libomptarget] Decrease coupling between files
ClosedPublic

Authored by JonChesterfield on Oct 26 2019, 10:06 PM.

Details

Summary

[nfc][libomptarget] Decrease coupling between files

debug.h used the symbol omptarget_device_environment so implicitly required
an include of omptarget-nvptx.h to compile. Similarly interface.h uses size_t.

Moving this declaration to a new header means cancel, critical can now build
without omptarget-nvptx.h. After this change, debug.h, cancel.cu, critical.cu
could move under a common source directory.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptOct 26 2019, 10:06 PM
This revision is now accepted and ready to land.Oct 27 2019, 5:25 AM
This revision was automatically updated to reflect the committed changes.