[OpenMP] Replace OpenMP RTL Functions With OMPIRBuilder and OMPKinds.def
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 28 Sep 2020 14:23:14 +0000 (10:23 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Wed, 30 Sep 2020 18:00:01 +0000 (14:00 -0400)
commit90eaedda9b8ef46e2c0c1b8bce33e98a3adbb68c
treeeb2736bceedbba293885c670f59d6f51418cbaa6
parent9d2378b59150f6f1cb5c9cf42ea06b0bb57029a1
[OpenMP] Replace OpenMP RTL Functions With OMPIRBuilder and OMPKinds.def

Summary:
Replace the OpenMP Runtime Library functions used in CGOpenMPRuntimeGPU
for OpenMP device code generation with ones in OMPKinds.def and use
OMPIRBuilder for generating runtime calls. This allows us to consolidate
more OpenMP code generation into the OMPIRBuilder. This patch also
invalidates specifying target architectures with conflicting pointer
sizes.

Reviewers: jdoerfert

Subscribers: aaron.ballman cfe-commits guansong llvm-commits sstefan1 yaxunl

Tags: #OpenMP #Clang #LLVM

Differential Revision: https://reviews.llvm.org/D88430
clang/lib/CodeGen/CGOpenMPRuntime.h
clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
clang/lib/CodeGen/CodeGenModule.h
clang/test/OpenMP/nvptx_parallel_codegen.cpp
llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
llvm/test/Transforms/OpenMP/add_attributes.ll