summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-10-05 15:08:53 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-10-05 15:08:53 +0000
commitfd006c44eeffe1f018f7fda13eacb67a6606ec9c (patch)
treef109d0337a0888e5048c30920ed8e1cec54a72bd /clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp
parent00216bca66242fadfd22165d4efd1479d1d2ae82 (diff)
downloadbcm5719-llvm-fd006c44eeffe1f018f7fda13eacb67a6606ec9c.tar.gz
bcm5719-llvm-fd006c44eeffe1f018f7fda13eacb67a6606ec9c.zip
[OPENMP] Fix emission of the __kmpc_global_thread_num.
Fixed emission of the __kmpc_global_thread_num() so that it is not messed up with alloca instructions anymore. Plus, fixes emission of the __kmpc_global_thread_num() functions in the target outlined regions so that they are not called before runtime is initialized. llvm-svn: 343856
Diffstat (limited to 'clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp')
-rw-r--r--clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp b/clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp
index 90b03c653ef..02a5ba664e5 100644
--- a/clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp
+++ b/clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp
@@ -43,12 +43,12 @@ int main(int argc, char **argv) {
// CHECK: [[A:%.+]] = alloca i32,
// CHECK: [[B:%.+]] = alloca float,
// CHECK: [[C:%.+]] = alloca [5 x %struct.S],
-// CHECK: [[GTID:%.+]] = call i32 @__kmpc_global_thread_num(%struct.ident_t*
// CHECK: [[RD_IN1:%.+]] = alloca [3 x [[T1:%[^,]+]]],
// CHECK: [[TD1:%.+]] = alloca i8*,
// CHECK: [[RD_IN2:%.+]] = alloca [2 x [[T2:%[^,]+]]],
// CHECK: [[TD2:%.+]] = alloca i8*,
+// CHECK: [[GTID:%.+]] = call i32 @__kmpc_global_thread_num(%struct.ident_t*
// CHECK: [[VLA:%.+]] = alloca i16, i64 [[VLA_SIZE:%[^,]+]],
// CHECK: call void @__kmpc_taskgroup(%struct.ident_t* {{[^,]+}}, i32 [[GTID]])
OpenPOWER on IntegriCloud