diff options
author | sstefan1 <sstipanovic@s-energize.com> | 2020-07-05 15:24:36 +0200 |
---|---|---|
committer | sstefan1 <sstipanovic@s-energize.com> | 2020-07-08 17:23:55 +0200 |
commit | 6aab27ba851f132f01ea8e87f92243918dc23cfd (patch) | |
tree | 6f3da4eaae91e61645b97ee2f9179be5615f9eb7 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 64030099c378062131fa1b29742a783f2ca14c17 (diff) | |
download | llvm-6aab27ba851f132f01ea8e87f92243918dc23cfd.zip llvm-6aab27ba851f132f01ea8e87f92243918dc23cfd.tar.gz llvm-6aab27ba851f132f01ea8e87f92243918dc23cfd.tar.bz2 |
[OpenMPIRBuilder][Fix] Move llvm::omp::types to OpenMPIRBuilder.
Summary:
D82193 exposed a problem with global type definitions in
`OMPConstants.h`. This causes a race when running in thinLTO mode.
Types now live inside of OpenMPIRBuilder to prevent this from happening.
Reviewers: jdoerfert
Subscribers: yaxunl, hiraditya, guansong, dexonsmith, aaron.ballman, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D83176
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 71778ac..4ae8ce7 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -222,14 +222,6 @@ void CodeGenModule::createOpenMPRuntime() { OpenMPRuntime.reset(new CGOpenMPRuntime(*this)); break; } - - // The OpenMP-IR-Builder should eventually replace the above runtime codegens - // but we are not there yet so they both reside in CGModule for now and the - // OpenMP-IR-Builder is opt-in only. - if (LangOpts.OpenMPIRBuilder) { - OMPBuilder.reset(new llvm::OpenMPIRBuilder(TheModule)); - OMPBuilder->initialize(); - } } void CodeGenModule::createCUDARuntime() { |