[OpenMP] Use the OpenMPIRBuilder for `omp parallel`
authorJohannes Doerfert <johannes@jdoerfert.de>
Thu, 26 Dec 2019 17:23:38 +0000 (11:23 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Mon, 30 Dec 2019 19:57:13 +0000 (13:57 -0600)
commit10fedd94b4326225de4a8a1fc53594cebd501246
treedd879d47e38f020829c97fa830e87480af181aa1
parent000c6a5038bc654946b4348e586d685077b06943
[OpenMP] Use the OpenMPIRBuilder for `omp parallel`

This allows to use the OpenMPIRBuilder for parallel regions. Code was
extracted from D61953 and adapted to work with the new version (D70109).

All but one feature should be supported. An update of this patch will
provide test coverage and privatization other than shared.

Reviewed By: fghanim

Differential Revision: https://reviews.llvm.org/D70290
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/OpenMP/cancel_codegen.cpp
clang/test/OpenMP/parallel_codegen.cpp
llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
llvm/lib/Frontend/OpenMP/OMPConstants.cpp
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp