OSDN Git Service

[OpenMP][NFC] Generalize CGOpenMPRuntimeNVPTX as CGOpenMPRuntimeGPU
authorSaiyedul Islam <Saiyedul.Islam@amd.com>
Fri, 17 Jul 2020 14:17:32 +0000 (14:17 +0000)
committerSaiyedul Islam <Saiyedul.Islam@amd.com>
Fri, 17 Jul 2020 14:38:04 +0000 (14:38 +0000)
commitc7562e77b3ace370679398b1325c66cd79418f41
tree01e8f656ca3c4929690ab682e20c0a3a7926c91d
parent079b49b3fb22b9f1f7dfd9b18ab0179d0ad7e158
[OpenMP][NFC] Generalize CGOpenMPRuntimeNVPTX as CGOpenMPRuntimeGPU

Refactors CGOpenMPRuntimeNVPTX as CGOpenMPRuntimeGPU to make it a
generalization for OpenMP GPU Codegen. Target specific specialized
methods for NVPTX are defined in class CGOpenMPRuntimeNVPTX. This
paves the way for a clean and maintainable extension to more GPU
targets for OpenMP Codegen.

For original author (git blame) list of CGOpenMPRuntimeGPU code,
look in history of CGOpenMPRuntimeNVPTX.cpp and .h, after this commit.

Reviewed By: ABataev

Differential Revision: https://reviews.llvm.org/D83723
clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp [new file with mode: 0644]
clang/lib/CodeGen/CGOpenMPRuntimeGPU.h [new file with mode: 0644]
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h
clang/lib/CodeGen/CMakeLists.txt