[OpenMP][OMPIRBuilder] Add a configuration class that captures flags that affect...
authorJan Sjodin <jan_sjodin@yahoo.com>
Wed, 16 Nov 2022 13:54:05 +0000 (08:54 -0500)
committerJan Sjodin <jan_sjodin@yahoo.com>
Tue, 22 Nov 2022 14:25:04 +0000 (09:25 -0500)
commit969d787a470a801ad23be1fd53bcc166f75454a5
treed440768a016f89463a227b041efb06d81716698c
parentcb261e30fbb174085d2eea4f4afc3cef2838b7f7
[OpenMP][OMPIRBuilder] Add a configuration class that captures flags that affect codegen

This patch introudces the OpenMPIRBuilderConfig class which contains various
flags that are needed to lower OMP constructs to LLVM-IR. The purpose is to
keep the flags in one place so they do not have to be passed in every time.
The flags can be set optionally since some uses cases don't rely on functions
that depend on these flags.

Reviewed By: jdoerfert, tschuett

Differential Revision: https://reviews.llvm.org/D138220
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGOpenMPRuntime.h
clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp