[nfc][libomptarget] Reorganise support header
authorJonChesterfield <jonathanchesterfield@gmail.com>
Thu, 31 Oct 2019 17:14:17 +0000 (17:14 +0000)
committerJonChesterfield <jonathanchesterfield@gmail.com>
Thu, 31 Oct 2019 17:15:02 +0000 (17:15 +0000)
commit764c8420e4b8fc11a9fa94d00f4ee617aa754cb2
treefcd0f6ec71b1e1bf16a6a2fe793dee28e7e229b4
parenta2240f57e7a4106db2887f00868dbf14d5106dc1
[nfc][libomptarget] Reorganise support header

Summary:
[nfc][libomptarget] Reorganise support header

All functions defined in support implementation are now declared in support.h
Reordered functions in support implementation to match the sequence in support.h
Added include guards to support.h
Added #include interface to support.h to provide kmp_Ident declaration
Move supporti.h to support.cu and s/INLINE/EXTERN/g
Add remaining includes to support.cu

A minor side effect is to change the name mangling of the support functions to
extern "C". If this matters another macro along the lines of INLINE/EXTERN
can be added - perhaps DEVICE as that's the obvious implementation.

Reviewers: jdoerfert, ABataev, grokos

Reviewed By: jdoerfert

Subscribers: mgorny, jfb, openmp-commits

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D69652
openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h
openmp/libomptarget/deviceRTLs/nvptx/src/support.cu [moved from openmp/libomptarget/deviceRTLs/nvptx/src/supporti.h with 98% similarity]
openmp/libomptarget/deviceRTLs/nvptx/src/support.h
openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
openmp/libomptarget/deviceRTLs/nvptx/unity.cu