diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-12-01 21:31:08 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-12-01 21:31:08 +0000 |
commit | 50a1c7860f26d8a993a6b13b4df407122586aa80 (patch) | |
tree | 9310e9caad088fe6d5216ab56667aa959e8594fd /clang/test/OpenMP/teams_distribute_dist_schedule_codegen.cpp | |
parent | 7bfcc058306fc10422ae6767fbaa79b0ee16e597 (diff) | |
download | bcm5719-llvm-50a1c7860f26d8a993a6b13b4df407122586aa80.tar.gz bcm5719-llvm-50a1c7860f26d8a993a6b13b4df407122586aa80.zip |
[OPENMP] Emit `__tgt_target_teams` for all teams directives.
Previously we emitted `__tgt_target_teams` only for standalone teams
directives. This patch allows emit this function for all teams-based
directives.
llvm-svn: 319585
Diffstat (limited to 'clang/test/OpenMP/teams_distribute_dist_schedule_codegen.cpp')
-rw-r--r-- | clang/test/OpenMP/teams_distribute_dist_schedule_codegen.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/clang/test/OpenMP/teams_distribute_dist_schedule_codegen.cpp b/clang/test/OpenMP/teams_distribute_dist_schedule_codegen.cpp index 685180c26b6..8bd8825e00c 100644 --- a/clang/test/OpenMP/teams_distribute_dist_schedule_codegen.cpp +++ b/clang/test/OpenMP/teams_distribute_dist_schedule_codegen.cpp @@ -18,21 +18,21 @@ struct SS{ // CK1: define {{.*}}i32 @{{.+}}foo{{.+}}( int foo(void) { - // CK1: call i32 @__tgt_target( + // CK1: call i32 @__tgt_target_teams( // CK1: call void @[[OFFL1:.+]]( #pragma omp target #pragma omp teams distribute for(int i = 0; i < X; i++) { a[i] = (T)0; } - // CK1: call i32 @__tgt_target( + // CK1: call i32 @__tgt_target_teams( // CK1: call void @[[OFFL2:.+]]( #pragma omp target #pragma omp teams distribute dist_schedule(static) for(int i = 0; i < X; i++) { a[i] = (T)0; } - // CK1: call i32 @__tgt_target( + // CK1: call i32 @__tgt_target_teams( // CK1: call void @[[OFFL3:.+]]( #pragma omp target #pragma omp teams distribute dist_schedule(static, X/2) @@ -129,11 +129,11 @@ int main (int argc, char **argv) { } // CK2: define {{.*}}i32 @{{[^,]+}}(i{{.+}}{{.+}} %[[ARGC:.+]], {{.+}}) -// CK2: call i32 @__tgt_target( +// CK2: call i32 @__tgt_target_teams( // CK2: call void @[[OFFL1:.+]]({{.+}}) -// CK2: call i32 @__tgt_target( +// CK2: call i32 @__tgt_target_teams( // CK2: call void @[[OFFL2:.+]]({{.+}}) -// CK2: call i32 @__tgt_target( +// CK2: call i32 @__tgt_target_teams( // CK2: call void @[[OFFL3:.+]]({{.+}}) // CK2: {{%.+}} = call{{.*}} i32 @[[TMAIN:.+]]({{.+}}) // CK2: ret @@ -166,11 +166,11 @@ int main (int argc, char **argv) { // CK2: ret void // CK2: define {{.*}}i32 @[[TMAIN]]({{.+}}) -// CK2: call i32 @__tgt_target( +// CK2: call i32 @__tgt_target_teams( // CK2: call void @[[OFFLT1:.+]]({{.+}}) -// CK2: call i32 @__tgt_target( +// CK2: call i32 @__tgt_target_teams( // CK2: call void @[[OFFLT2:.+]]({{.+}}) -// CK2: call i32 @__tgt_target( +// CK2: call i32 @__tgt_target_teams( // CK2: call void @[[OFFLT3:.+]]({{.+}}) // CK2: ret // CK2-NEXT: } |