[OpenMP][DeviceRTL][NFC] Use `OMPTgtExecModeFlags` from `llvm/include/llvm/Frontend...
authorShilei Tian <i@tianshilei.me>
Mon, 23 Jan 2023 00:10:46 +0000 (19:10 -0500)
committerShilei Tian <i@tianshilei.me>
Mon, 23 Jan 2023 00:10:54 +0000 (19:10 -0500)
commit693358d78721f4fa516cc703bffa4ae35080dca8
tree6fe659197808b827ceb09b38e6b26db2f28f7fb9
parent2275e325e4bc7db4ea0f4fa527774be524c2c287
[OpenMP][DeviceRTL][NFC] Use `OMPTgtExecModeFlags` from `llvm/include/llvm/Frontend/OpenMP/OMPDeviceConstants.h`

This patch makes preparation for a series that will enable per-kernel information
used in both host and device runtime. Some variables/enums, such as `OMPTgtExecModeFlags`,
have to be shared by both of them. A new header `OMPDeviceConstants.h` is added,
containing code that will be shared by them. We will introduce more variables soon.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D142320
llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
llvm/include/llvm/Frontend/OpenMP/OMPDeviceConstants.h [new file with mode: 0644]
openmp/libomptarget/DeviceRTL/include/Types.h
openmp/libomptarget/DeviceRTL/src/Kernel.cpp