[openmp] Use llvm GridValues from devicertl
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Mon, 23 Aug 2021 19:25:23 +0000 (20:25 +0100)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Mon, 23 Aug 2021 19:25:24 +0000 (20:25 +0100)
commit842f875c8b38ea46dfb973a062585889cc60d277
treea66587d2fe1e754d2386c68149179614bc9bda3a
parent401a45c61bac76378735ef94fd507e5fbf763edc
[openmp] Use llvm GridValues from devicertl

Add include path to the cmakefiles and set the target_impl enums
from the llvm constants instead of copying the values.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D108391
openmp/libomptarget/DeviceRTL/CMakeLists.txt
openmp/libomptarget/DeviceRTL/src/Mapping.cpp
openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h