[libomptarget][nfc] Move some source into common from nvptx
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Mon, 18 Nov 2019 18:16:35 +0000 (18:16 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Mon, 18 Nov 2019 18:17:36 +0000 (18:17 +0000)
commit5a4a05d776d3adacad344b2b5e15cf594c906bce
tree393f00d5726723ce9908e64c7d1d940e8219f8b7
parent17e37ba57a696198c9744eeba4f8f293f155587a
[libomptarget][nfc] Move some source into common from nvptx

Summary:
[libomptarget][nfc] Move some source into common from nvptx

Moves some source that compiles cleanly under amdgcn into a common subdirectory
Includes some non-trivial files and some headers. Keeps the cuda file extension.

The build systems for different architectures seem unlikely to have much in
common. The idea is therefore to set include paths such that files under
common/src compile as if they were under arch/src as the mechanism for sharing.
In particular, files under common/src need to be able to include target_impl.h.

The corresponding -Icommon is left out in favour of explicit includes on the
basis that the it makes it clearer which files under common are used by a given
architecture.

Reviewers: jdoerfert, ABataev, grokos

Reviewed By: ABataev

Subscribers: jfb, mgorny, openmp-commits

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D70328
openmp/libomptarget/deviceRTLs/common/debug.h [moved from openmp/libomptarget/deviceRTLs/nvptx/src/debug.h with 100% similarity]
openmp/libomptarget/deviceRTLs/common/src/cancel.cu [moved from openmp/libomptarget/deviceRTLs/nvptx/src/cancel.cu with 97% similarity]
openmp/libomptarget/deviceRTLs/common/src/critical.cu [moved from openmp/libomptarget/deviceRTLs/nvptx/src/critical.cu with 97% similarity]
openmp/libomptarget/deviceRTLs/common/src/loop.cu [moved from openmp/libomptarget/deviceRTLs/nvptx/src/loop.cu with 100% similarity]
openmp/libomptarget/deviceRTLs/common/src/task.cu [moved from openmp/libomptarget/deviceRTLs/nvptx/src/task.cu with 100% similarity]
openmp/libomptarget/deviceRTLs/common/state-queue.h [moved from openmp/libomptarget/deviceRTLs/nvptx/src/state-queue.h with 100% similarity]
openmp/libomptarget/deviceRTLs/common/state-queuei.h [moved from openmp/libomptarget/deviceRTLs/nvptx/src/state-queuei.h with 100% similarity]
openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h
openmp/libomptarget/deviceRTLs/nvptx/src/support.cu