diff options
author | River Riddle <riddleriver@gmail.com> | 2022-04-20 21:39:22 -0700 |
---|---|---|
committer | River Riddle <riddleriver@gmail.com> | 2022-05-06 13:36:15 -0700 |
commit | a8308020ac2fce5ad7d616b2dbdbe7ccae0585a4 (patch) | |
tree | 969e81af2ce9837e841e58db87e2ed2fdd44cb53 /mlir/test/Analysis | |
parent | b331a7ebc1e02f9939d1a4a1509e7eb6cdda3d38 (diff) | |
download | llvm-a8308020ac2fce5ad7d616b2dbdbe7ccae0585a4.zip llvm-a8308020ac2fce5ad7d616b2dbdbe7ccae0585a4.tar.gz llvm-a8308020ac2fce5ad7d616b2dbdbe7ccae0585a4.tar.bz2 |
[mlir] Remove special case parsing/printing of `func` operations
This was leftover from when the standard dialect was destroyed, and
when FuncOp moved to the func dialect. Now that these transitions
have settled a bit we can drop these.
Most updates were handled using a simple regex: replace `^( *)func` with `$1func.func`
Differential Revision: https://reviews.llvm.org/D124146
Diffstat (limited to 'mlir/test/Analysis')
-rw-r--r-- | mlir/test/Analysis/test-data-flow.mlir | 2 | ||||
-rw-r--r-- | mlir/test/Analysis/test-liveness.mlir | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mlir/test/Analysis/test-data-flow.mlir b/mlir/test/Analysis/test-data-flow.mlir index 3d13f39..52372fa 100644 --- a/mlir/test/Analysis/test-data-flow.mlir +++ b/mlir/test/Analysis/test-data-flow.mlir @@ -2,7 +2,7 @@ // CHECK-LABEL: Testing : "loop-arg-pessimistic" module attributes {test.name = "loop-arg-pessimistic"} { - func @f() -> index { + func.func @f() -> index { // CHECK: Visiting : %{{.*}} = arith.constant 0 // CHECK-NEXT: Result 0 moved from uninitialized to 1 %c0 = arith.constant 0 : index diff --git a/mlir/test/Analysis/test-liveness.mlir b/mlir/test/Analysis/test-liveness.mlir index 2fa291c..6477597 100644 --- a/mlir/test/Analysis/test-liveness.mlir +++ b/mlir/test/Analysis/test-liveness.mlir @@ -211,7 +211,7 @@ func.func @nested_region( // CHECK-NEXT: val_8 // CHECK-NEXT: %1 = arith.addi // CHECK-NEXT: scf.for - // CHECK: // return %1 + // CHECK: // func.return %1 // CHECK: EndLiveness %0 = arith.addi %arg3, %arg4 : i32 %1 = arith.addi %arg4, %arg5 : i32 @@ -245,7 +245,7 @@ func.func @nested_region2( // CHECK-NEXT: val_8 // CHECK-NEXT: %1 = arith.addi // CHECK-NEXT: scf.for - // CHECK: // return %1 + // CHECK: // func.return %1 // CHECK: EndLiveness %arg0 : index, %arg1 : index, %arg2 : index, %arg3 : i32, %arg4 : i32, %arg5 : i32, |