[all-commits] [llvm/llvm-project] 0aa97a: [mlir] Change generate-test-checks.py to `%[[V:.*]...
Sean Silva via All-commits
all-commits at lists.llvm.org
Wed May 13 14:50:46 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 0aa97ad5c8a6153de1479e50fcbe03a6a425e193
https://github.com/llvm/llvm-project/commit/0aa97ad5c8a6153de1479e50fcbe03a6a425e193
Author: Sean Silva <silvasean at google.com>
Date: 2020-05-13 (Wed, 13 May 2020)
Changed paths:
M mlir/utils/generate-test-checks.py
Log Message:
-----------
[mlir] Change generate-test-checks.py to `%[[V:.*]]` style
Summary:
This style seems to be the preferred style lately as it plays better
with op syntaxes that include `[` and `]`.
Input:
```
module {
func @f(%arg0 : i32) -> i32 {
%0 = addi %arg0, %arg0 : i32
%1 = muli %arg0, %0 : i32
return %1 : i32
}
}
```
New output:
```
// NOTE: Assertions have been autogenerated by utils/generate-test-checks.py
// CHECK: module {
// CHECK-LABEL: func @f(
// CHECK-SAME: %[[VAL_0:.*]] : i32) -> i32 {
// CHECK: %[[VAL_1:.*]] = addi %[[VAL_0]], %[[VAL_0]] : i32
// CHECK: %[[VAL_2:.*]] = muli %[[VAL_0]], %[[VAL_1]] : i32
// CHECK: return %[[VAL_2]] : i32
// CHECK: }
// CHECK: }
```
Old output:
```
// NOTE: Assertions have been autogenerated by utils/generate-test-checks.py
// CHECK: module {
// CHECK-LABEL: func @f(
// CHECK-SAME: [[VAL_0:%.*]] : i32) -> i32 {
// CHECK: [[VAL_1:%.*]] = addi [[VAL_0]], [[VAL_0]] : i32
// CHECK: [[VAL_2:%.*]] = muli [[VAL_0]], [[VAL_1]] : i32
// CHECK: return [[VAL_2]] : i32
// CHECK: }
// CHECK: }
```
Differential Revision: https://reviews.llvm.org/D79836
More information about the All-commits
mailing list