[OpenMP] Refined CUDA plugin to put all CUDA operations into class
authorShilei Tian <tianshilei1992@gmail.com>
Mon, 13 Apr 2020 17:32:21 +0000 (13:32 -0400)
committerShilei Tian <tianshilei1992@gmail.com>
Mon, 13 Apr 2020 17:32:46 +0000 (13:32 -0400)
commit4031bb982b7a9bf8603851516ad72374ccc09a6f
treeef3453ad8f3595889205b878fdca68aa3f4fa534
parent68eb08646c012555bb6b1ab1678d6d745b0a3ebe
[OpenMP] Refined CUDA plugin to put all CUDA operations into class

Summary: Current implementation mixed everything up so that there is almost no encapsulation. In this patch, all CUDA related operations are put into a new class DeviceRTLTy and only necessary functions are exposed. In addition, all C++ code now conforms with LLVM code standard, keeping those API functions following C style.

Reviewers: jdoerfert

Reviewed By: jdoerfert

Subscribers: jfb, yaxunl, guansong, openmp-commits

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D77951
openmp/libomptarget/plugins/cuda/src/rtl.cpp