diff options
| author | Tobias Grosser <tobias@grosser.es> | 2015-09-08 06:22:17 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2015-09-08 06:22:17 +0000 |
| commit | a89dc57b41186c45aa3f7d641bab0ddb02ebd4cf (patch) | |
| tree | b8395740651ed7509bdf983bc317a514073067ad /polly/test/Isl/CodeGen/OpenMP | |
| parent | 2f9aa579279ba7ba2daa262ef271f6ee27456bdc (diff) | |
| download | bcm5719-llvm-a89dc57b41186c45aa3f7d641bab0ddb02ebd4cf.tar.gz bcm5719-llvm-a89dc57b41186c45aa3f7d641bab0ddb02ebd4cf.zip | |
Do not use '.' in subfunction names
Certain backends, e.g. NVPTX, do not support '.' in function names. Hence,
we ensure all '.' are replaced by '_' when generating function names for
subfunctions. For the current OpenMP code generation, this is not strictly
necessary, but future uses cases (e.g. GPU offloading) need this issue to be
fixed.
llvm-svn: 246980
Diffstat (limited to 'polly/test/Isl/CodeGen/OpenMP')
9 files changed, 15 insertions, 15 deletions
diff --git a/polly/test/Isl/CodeGen/OpenMP/alias-metadata.ll b/polly/test/Isl/CodeGen/OpenMP/alias-metadata.ll index 096cb2031d6..fcb6bd511cb 100644 --- a/polly/test/Isl/CodeGen/OpenMP/alias-metadata.ll +++ b/polly/test/Isl/CodeGen/OpenMP/alias-metadata.ll @@ -8,7 +8,7 @@ ; target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" -; CHECK: define internal void @foo.polly.subfn +; CHECK: define internal void @foo_polly_subfn define void @foo(float* %A, float* %B) { bb: diff --git a/polly/test/Isl/CodeGen/OpenMP/loop-body-references-outer-iv.ll b/polly/test/Isl/CodeGen/OpenMP/loop-body-references-outer-iv.ll index a8e28a266c4..17b0b281041 100644 --- a/polly/test/Isl/CodeGen/OpenMP/loop-body-references-outer-iv.ll +++ b/polly/test/Isl/CodeGen/OpenMP/loop-body-references-outer-iv.ll @@ -9,7 +9,7 @@ ; AST: for (int c0 = 0; c0 <= 1023; c0 += 1) ; AST: Stmt_for_j(c0); -; IR: @single_parallel_loop.polly.subfn +; IR: @single_parallel_loop_polly_subfn target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" diff --git a/polly/test/Isl/CodeGen/OpenMP/loop-body-references-outer-values-3.ll b/polly/test/Isl/CodeGen/OpenMP/loop-body-references-outer-values-3.ll index a2b1a847520..b79503aa3e8 100644 --- a/polly/test/Isl/CodeGen/OpenMP/loop-body-references-outer-values-3.ll +++ b/polly/test/Isl/CodeGen/OpenMP/loop-body-references-outer-values-3.ll @@ -12,7 +12,7 @@ ; AST: for (int c0 = 0; c0 < cols; c0 += 1) ; AST: Stmt_for_body(c0); -; IR: @foo.polly.subfn +; IR: @foo_polly_subfn target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" @@ -42,7 +42,7 @@ end: ; AST: for (int c0 = 0; c0 < cols; c0 += 1) ; AST: Stmt_for_body(c0); -; IR: @bar.polly.subfn +; IR: @bar_polly_subfn define void @bar(i64 %cols, i8* noalias %call) { entry: diff --git a/polly/test/Isl/CodeGen/OpenMP/loop-bounds-reference-outer-ids.ll b/polly/test/Isl/CodeGen/OpenMP/loop-bounds-reference-outer-ids.ll index 6d9d2ff98c7..7e472e9a4f7 100644 --- a/polly/test/Isl/CodeGen/OpenMP/loop-bounds-reference-outer-ids.ll +++ b/polly/test/Isl/CodeGen/OpenMP/loop-bounds-reference-outer-ids.ll @@ -32,7 +32,7 @@ ; IR-NEXT: store i64 %polly.indvar, i64* %[[R2]] ; IR-NEXT: %polly.par.userContext1 = bitcast { i64, i64 }* %polly.par.userContext to i8* -; IR-LABEL: @loop_references_outer_ids.polly.subfn(i8* %polly.par.userContext) +; IR-LABEL: @loop_references_outer_ids_polly_subfn(i8* %polly.par.userContext) ; IR: %polly.par.userContext1 = bitcast i8* %polly.par.userContext to { i64, i64 }* ; IR-NEXT: %[[R3:[0-9a-z.]+]] = getelementptr inbounds { i64, i64 }, { i64, i64 }* %polly.par.userContext1, i32 0, i32 0 ; IR-NEXT: %[[R4:[0-9a-z.]+]] = load i64, i64* %[[R3]] diff --git a/polly/test/Isl/CodeGen/OpenMP/reference-other-bb.ll b/polly/test/Isl/CodeGen/OpenMP/reference-other-bb.ll index 0f63e9f3cc4..6ad1521ab5b 100644 --- a/polly/test/Isl/CodeGen/OpenMP/reference-other-bb.ll +++ b/polly/test/Isl/CodeGen/OpenMP/reference-other-bb.ll @@ -1,6 +1,6 @@ ; RUN: opt %loadPolly -polly-detect-unprofitable -polly-parallel -polly-parallel-force -polly-codegen -S -verify-dom-info < %s | FileCheck %s -check-prefix=IR -; IR: @foo.polly.subfn +; IR: @foo_polly_subfn target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" define void @foo(i32 %sendcount, i8* %recvbuf) { diff --git a/polly/test/Isl/CodeGen/OpenMP/reference-preceeding-loop.ll b/polly/test/Isl/CodeGen/OpenMP/reference-preceeding-loop.ll index 50208227cf7..68086d7d80c 100644 --- a/polly/test/Isl/CodeGen/OpenMP/reference-preceeding-loop.ll +++ b/polly/test/Isl/CodeGen/OpenMP/reference-preceeding-loop.ll @@ -17,8 +17,8 @@ ; AST-NEXT: for (int c0 = 0; c0 <= p_0 + p_2; c0 += 1) ; AST-NEXT: Stmt_while_body(c0); -; IR: @update_model.polly.subfn -; IR: @update_model.polly.subfn.1 +; IR: @update_model_polly_subfn +; IR: @update_model_polly_subfn_1 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/polly/test/Isl/CodeGen/OpenMP/single_loop.ll b/polly/test/Isl/CodeGen/OpenMP/single_loop.ll index 2cd576f22a2..335c338532b 100644 --- a/polly/test/Isl/CodeGen/OpenMP/single_loop.ll +++ b/polly/test/Isl/CodeGen/OpenMP/single_loop.ll @@ -36,14 +36,14 @@ ; IR-NEXT: %0 = bitcast {}* %polly.par.userContext to i8* ; IR-NEXT: call void @llvm.lifetime.start(i64 0, i8* %0) ; IR-NEXT: %polly.par.userContext1 = bitcast {}* %polly.par.userContext to i8* -; IR-NEXT: call void @GOMP_parallel_loop_runtime_start(void (i8*)* @single_parallel_loop.polly.subfn, i8* %polly.par.userContext1, i32 0, i64 0, i64 1024, i64 1) -; IR-NEXT: call void @single_parallel_loop.polly.subfn(i8* %polly.par.userContext1) +; IR-NEXT: call void @GOMP_parallel_loop_runtime_start(void (i8*)* @single_parallel_loop_polly_subfn, i8* %polly.par.userContext1, i32 0, i64 0, i64 1024, i64 1) +; IR-NEXT: call void @single_parallel_loop_polly_subfn(i8* %polly.par.userContext1) ; IR-NEXT: call void @GOMP_parallel_end() ; IR-NEXT: %1 = bitcast {}* %polly.par.userContext to i8* ; IR-NEXT: call void @llvm.lifetime.end(i64 8, i8* %1) ; IR-NEXT: br label %polly.merge_new_and_old -; IR: define internal void @single_parallel_loop.polly.subfn(i8* %polly.par.userContext) #2 +; IR: define internal void @single_parallel_loop_polly_subfn(i8* %polly.par.userContext) #2 ; IR-LABEL: polly.par.setup: ; IR-NEXT: %polly.par.LBPtr = alloca i64 ; IR-NEXT: %polly.par.UBPtr = alloca i64 @@ -85,7 +85,7 @@ ; IR: attributes #2 = { "polly.skip.fn" } -; IR-STRIDE4: call void @GOMP_parallel_loop_runtime_start(void (i8*)* @single_parallel_loop.polly.subfn, i8* %polly.par.userContext1, i32 0, i64 0, i64 1024, i64 4) +; IR-STRIDE4: call void @GOMP_parallel_loop_runtime_start(void (i8*)* @single_parallel_loop_polly_subfn, i8* %polly.par.userContext1, i32 0, i64 0, i64 1024, i64 4) ; IR-STRIDE4: add nsw i64 %polly.indvar, 3 ; IR-STRIDE4: %polly.indvar_next = add nsw i64 %polly.indvar, 4 ; IR-STRIDE4 %polly.adjust_ub = sub i64 %polly.par.UBAdjusted, 4 diff --git a/polly/test/Isl/CodeGen/OpenMP/single_loop_with_loop_invariant_baseptr.ll b/polly/test/Isl/CodeGen/OpenMP/single_loop_with_loop_invariant_baseptr.ll index 10318295cc0..44718810e17 100644 --- a/polly/test/Isl/CodeGen/OpenMP/single_loop_with_loop_invariant_baseptr.ll +++ b/polly/test/Isl/CodeGen/OpenMP/single_loop_with_loop_invariant_baseptr.ll @@ -15,7 +15,7 @@ ; AST: for (int c0 = 0; c0 <= 1023; c0 += 1) ; AST: Stmt_S(c0); -; IR: @single_parallel_loop.polly.subfn +; IR: @single_parallel_loop_polly_subfn target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" define void @single_parallel_loop(float** %A) nounwind { diff --git a/polly/test/Isl/CodeGen/OpenMP/two-parallel-loops-reference-outer-indvar.ll b/polly/test/Isl/CodeGen/OpenMP/two-parallel-loops-reference-outer-indvar.ll index 9ba3f4a3a33..8755af28455 100644 --- a/polly/test/Isl/CodeGen/OpenMP/two-parallel-loops-reference-outer-indvar.ll +++ b/polly/test/Isl/CodeGen/OpenMP/two-parallel-loops-reference-outer-indvar.ll @@ -15,8 +15,8 @@ ; AST: for (int c0 = 0; c0 <= p_0 + p_2; c0 += 1) ; AST: Stmt_for_body35(c0); -; IR: @foo.polly.subfn -; IR: @foo.polly.subfn.1 +; IR: @foo_polly_subfn +; IR: @foo_polly_subfn_1 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" |

