summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/taskgroup_codegen.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2016-03-28 12:52:58 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2016-03-28 12:52:58 +0000
commit424be9283188be74ef68f017858a383833ec46c1 (patch)
tree6de0dbe038b99e7b0c77e493ba0e8d00b88b671c /clang/test/OpenMP/taskgroup_codegen.cpp
parent52ae58259d0fd83448b82dd9e13782f230c1fd79 (diff)
downloadbcm5719-llvm-424be9283188be74ef68f017858a383833ec46c1.tar.gz
bcm5719-llvm-424be9283188be74ef68f017858a383833ec46c1.zip
[OPENMP] Allow runtime insert its own code inside OpenMP regions.
Solution unifies interface of RegionCodeGenTy type to allow insert runtime-specific code before/after main codegen action defined in CGStmtOpenMP.cpp file. Runtime should not define its own RegionCodeGenTy for general OpenMP directives, but must be allowed to insert its own (required) code to support target specific codegen. llvm-svn: 264576
Diffstat (limited to 'clang/test/OpenMP/taskgroup_codegen.cpp')
-rw-r--r--clang/test/OpenMP/taskgroup_codegen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/OpenMP/taskgroup_codegen.cpp b/clang/test/OpenMP/taskgroup_codegen.cpp
index d1bc2aafc7b..0f6e81b3ba0 100644
--- a/clang/test/OpenMP/taskgroup_codegen.cpp
+++ b/clang/test/OpenMP/taskgroup_codegen.cpp
@@ -32,6 +32,7 @@ int main() {
foo();
// CHECK-NOT: call {{.*}}void @__kmpc_taskgroup
// CHECK-NOT: call {{.*}}void @__kmpc_end_taskgroup
+// CHECK: ret
return a;
}
OpenPOWER on IntegriCloud