summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-05-06 10:08:46 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-05-06 10:08:46 +0000
commit9959db5fa9d4972b6f5510344d502ff4932b0c0e (patch)
treef9022d5800c5e078854567445218a23710ff1cba /clang/lib/CodeGen/CodeGenModule.h
parentfdce7cea931fc6fcb995a1193b3ae7f78a913f0d (diff)
downloadbcm5719-llvm-9959db5fa9d4972b6f5510344d502ff4932b0c0e.tar.gz
bcm5719-llvm-9959db5fa9d4972b6f5510344d502ff4932b0c0e.zip
[OPENMP] Initial codegen for '#pragma omp parallel'
llvm-svn: 208077
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 4a1573b8490..74ffeecd428 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -83,6 +83,7 @@ namespace CodeGen {
class CGDebugInfo;
class CGObjCRuntime;
class CGOpenCLRuntime;
+ class CGOpenMPRuntime;
class CGCUDARuntime;
class BlockFieldFlags;
class FunctionArgList;
@@ -261,6 +262,7 @@ class CodeGenModule : public CodeGenTypeCache {
CGObjCRuntime* ObjCRuntime;
CGOpenCLRuntime* OpenCLRuntime;
+ CGOpenMPRuntime* OpenMPRuntime;
CGCUDARuntime* CUDARuntime;
CGDebugInfo* DebugInfo;
ARCEntrypoints *ARCData;
@@ -414,6 +416,7 @@ class CodeGenModule : public CodeGenTypeCache {
void createObjCRuntime();
void createOpenCLRuntime();
+ void createOpenMPRuntime();
void createCUDARuntime();
bool isTriviallyRecursive(const FunctionDecl *F);
@@ -477,6 +480,12 @@ public:
return *OpenCLRuntime;
}
+ /// getOpenMPRuntime() - Return a reference to the configured OpenMP runtime.
+ CGOpenMPRuntime &getOpenMPRuntime() {
+ assert(OpenMPRuntime != nullptr);
+ return *OpenMPRuntime;
+ }
+
/// getCUDARuntime() - Return a reference to the configured CUDA runtime.
CGCUDARuntime &getCUDARuntime() {
assert(CUDARuntime != 0);
OpenPOWER on IntegriCloud