[nfc][libomptarget] Decrease coupling between files
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Sun, 27 Oct 2019 05:01:24 +0000 (05:01 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Sun, 27 Oct 2019 14:27:54 +0000 (14:27 +0000)
commit174967f15369fafb0c0bfc13d35963f7890b2c8b
tree3aec6a31e53e29f2bf65d5f8b25b260b4064f749
parentad4c42666dd8ace31d0283765b75ef9146f2179b
[nfc][libomptarget] Decrease coupling between files

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.

Reviewers: ABataev, jdoerfert, grokos

Subscribers: openmp-commits

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D69473
openmp/libomptarget/deviceRTLs/interface.h
openmp/libomptarget/deviceRTLs/nvptx/src/cancel.cu
openmp/libomptarget/deviceRTLs/nvptx/src/critical.cu
openmp/libomptarget/deviceRTLs/nvptx/src/debug.h
openmp/libomptarget/deviceRTLs/nvptx/src/device_environment.h [new file with mode: 0644]
openmp/libomptarget/deviceRTLs/nvptx/src/omp_data.cu
openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h