summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/task_firstprivate_codegen.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2015-05-21 09:47:46 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2015-05-21 09:47:46 +0000
commit5129d3a4f58c7514a31d49da5c7c70c17aaa9a8f (patch)
tree949ba9c1c89f75d50cc59e708639b8a4db3e0a74 /clang/test/OpenMP/task_firstprivate_codegen.cpp
parent2db1a03b07ce4d22ad32ebbecdc2099b0e67524e (diff)
downloadbcm5719-llvm-5129d3a4f58c7514a31d49da5c7c70c17aaa9a8f.tar.gz
bcm5719-llvm-5129d3a4f58c7514a31d49da5c7c70c17aaa9a8f.zip
[OPENMP] Fixed codegen for parameters privatization.
For parameters we shall take a derived type of parameters, not the original one. llvm-svn: 237882
Diffstat (limited to 'clang/test/OpenMP/task_firstprivate_codegen.cpp')
-rw-r--r--clang/test/OpenMP/task_firstprivate_codegen.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/clang/test/OpenMP/task_firstprivate_codegen.cpp b/clang/test/OpenMP/task_firstprivate_codegen.cpp
index a5eb20cf460..449be6815af 100644
--- a/clang/test/OpenMP/task_firstprivate_codegen.cpp
+++ b/clang/test/OpenMP/task_firstprivate_codegen.cpp
@@ -408,15 +408,11 @@ struct St {
~St() {}
};
-void array_func(int a[3], St s[2]) {
+void array_func(int n, float a[n], St s[2]) {
// ARRAY: call i8* @__kmpc_omp_task_alloc(
-// ARRAY: call void @llvm.memcpy.p0i8.p0i8.i64(i8* %{{.+}}, i8* %{{.+}}, i64 12, i32 4, i1 false)
-// ARRAY: call void @_ZN2StC1ERKS_(%struct.St* %{{.+}}, %struct.St* dereferenceable(8) %{{.+}})
-// ARRAY: store i32 (i32, i8*)* bitcast (i32 (i32, %{{[^*]+}}*)* [[DESTRUCTORS:@.+]] to i32 (i32, i8*)*), i32 (i32, i8*)** %{{.+}},
+// ARRAY: store float** %{{.+}}, float*** %{{.+}},
+// ARRAY: store %struct.St** %{{.+}}, %struct.St*** %{{.+}},
// ARRAY: call i32 @__kmpc_omp_task(
-// ARRAY: define internal i32 [[DESTRUCTORS]](i32,
-// ARRAY: call void @_ZN2StD1Ev(%struct.St* %{{.+}})
-// ARRAY: br i1
#pragma omp task firstprivate(a, s)
;
}
OpenPOWER on IntegriCloud