[OpenMP] [OMPIRBuilder] Create a new datatype to hold the unique target region info
authorJan Sjodin <jan_sjodin@yahoo.com>
Mon, 24 Oct 2022 13:36:30 +0000 (09:36 -0400)
committerJan Sjodin <jan_sjodin@yahoo.com>
Tue, 25 Oct 2022 15:15:36 +0000 (11:15 -0400)
commit3d0e9edd8e53fb72e85084f4170513159212839a
treefeb0a23d34bcff000d510c84483950ee9ed9f0da
parentcb088e8c3abf30456e2891f90b5194d0070c387a
[OpenMP] [OMPIRBuilder] Create a new datatype to hold the unique target region info

This patch puts the individual target region information attributes into a
struct so that the nested mappings are not needed and passing the information
around is simplified.

Reviewed By: jdoerfert, mikerice

Differential Revision: https://reviews.llvm.org/D136601
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/test/OpenMP/declare_target_codegen.cpp
clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp