File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
flang/test/Transforms/OpenMP Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ func.func @wsfunc() {
24
24
// CHECK-LABEL: func.func private @_workshare_copy_i32(
25
25
// CHECK-SAME: %[[VAL_0:.*]]: !fir.ref<i32>,
26
26
// CHECK-SAME: %[[VAL_1:.*]]: !fir.ref<i32>) {
27
- // CHECK: %[[VAL_2:.*]] = fir.load %[[VAL_0 ]] : !fir.ref<i32>
28
- // CHECK: fir.store %[[VAL_2]] to %[[VAL_1 ]] : !fir.ref<i32>
27
+ // CHECK: %[[VAL_2:.*]] = fir.load %[[VAL_1 ]] : !fir.ref<i32>
28
+ // CHECK: fir.store %[[VAL_2]] to %[[VAL_0 ]] : !fir.ref<i32>
29
29
// CHECK: return
30
30
// CHECK: }
31
31
Original file line number Diff line number Diff line change 1
- // RUN: %not_todo_cmd fir-opt --lower-workshare --allow-unregistered-dialect %s 2>&1 | FileCheck %s
1
+ // RUN: fir-opt --lower-workshare --allow-unregistered-dialect %s 2>&1 | FileCheck %s
2
2
3
- // CHECK: not yet implemented: omp workshare with unstructured control flow
3
+ // CHECK: omp.parallel
4
+ // CHECK-NEXT: omp.single
4
5
5
- // Check that the definition of %r dominates its use post-transform
6
+ // TODO Check that the definition of %r dominates its use post-transform
6
7
func.func @wsfunc () {
7
8
%a = fir.alloca i32
8
9
omp.parallel {
Original file line number Diff line number Diff line change 1
- // RUN: %not_todo_cmd fir-opt --lower-workshare --allow-unregistered-dialect %s 2>&1 | FileCheck %s
1
+ // RUN: fir-opt --lower-workshare --allow-unregistered-dialect %s 2>&1 | FileCheck %s
2
2
3
- // CHECK: not yet implemented: omp workshare with unstructured control flow
3
+ // CHECK: omp.parallel
4
+ // CHECK-NEXT: omp.single
4
5
5
- // Check transforming a simple CFG
6
+ // TODO Check transforming a simple CFG
6
7
func.func @wsfunc () {
7
8
%a = fir.alloca i32
8
9
omp.parallel {
You can’t perform that action at this time.
0 commit comments