aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2016-02-07 15:43:09 +0000
committerRenato Golin <renato.golin@linaro.org>2016-02-07 15:43:09 +0000
commit1cf4c0a6ee24807db3285537f2dc03f85e1945f5 (patch)
tree0b48c751524ec305160d5624ea913d0eac8126ff /clang/lib/CodeGen/CodeGenModule.cpp
parentf03808162b5deeddfcd3e4859ea45e2976ef49fe (diff)
downloadllvm-1cf4c0a6ee24807db3285537f2dc03f85e1945f5.zip
llvm-1cf4c0a6ee24807db3285537f2dc03f85e1945f5.tar.gz
llvm-1cf4c0a6ee24807db3285537f2dc03f85e1945f5.tar.bz2
Revert "Re-apply r259977 - [OpenMP] Reorganize code to allow specialized code generation for different devices."
This reverts commit r259985, as it still fails one buildbot. llvm-svn: 260036
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index aabcc52..a30e624 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -20,7 +20,6 @@
#include "CGObjCRuntime.h"
#include "CGOpenCLRuntime.h"
#include "CGOpenMPRuntime.h"
-#include "CGOpenMPRuntimeNVPTX.h"
#include "CodeGenFunction.h"
#include "CodeGenPGO.h"
#include "CodeGenTBAA.h"
@@ -201,20 +200,7 @@ void CodeGenModule::createOpenCLRuntime() {
}
void CodeGenModule::createOpenMPRuntime() {
- // Select a specialized code generation class based on the target, if any.
- // If it does not exist use the default implementation.
- switch (getTarget().getTriple().getArch()) {
-
- case llvm::Triple::nvptx:
- case llvm::Triple::nvptx64:
- assert(getLangOpts().OpenMPIsDevice &&
- "OpenMP NVPTX is only prepared to deal with device code.");
- OpenMPRuntime = new CGOpenMPRuntimeNVPTX(*this);
- break;
- default:
- OpenMPRuntime = new CGOpenMPRuntime(*this);
- break;
- }
+ OpenMPRuntime = new CGOpenMPRuntime(*this);
}
void CodeGenModule::createCUDARuntime() {