[all-commits] [llvm/llvm-project] d7460d: [mlir][utils] Update generate-test-checks.py (#136...
Andrzej Warzyński via All-commits
all-commits at lists.llvm.org
Tue Apr 22 12:29:08 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d7460da554e3d5efdc5b9db3901078c9bf650fad
https://github.com/llvm/llvm-project/commit/d7460da554e3d5efdc5b9db3901078c9bf650fad
Author: Andrzej Warzyński <andrzej.warzynski at arm.com>
Date: 2025-04-22 (Tue, 22 Apr 2025)
Changed paths:
M mlir/utils/generate-test-checks.py
Log Message:
-----------
[mlir][utils] Update generate-test-checks.py (#136721)
Following #128083, all `CHECK-SAME` lines generated by
generate-test-checks.py use a strict regex:
```mlir
// CHECK-SAME: %[[VAL_0:[0-9]+|[a-zA-Z$._-][a-zA-Z0-9$._-]*]]: memref<128x256x512xf32>,
```
However, in most cases this strict form is unnecessary and can obscure
readability. In such cases, the following would be sufficient:
```mlir
// CHECK-SAME: %[[VAL_0:.*]]: memref<128x256x512xf32>,
```
This patch adds a command-line flag to make the strict mode optional. To
enable strict regex matching, use:
```bash
generate-test-checks.py --strict_name_re=true file.mlir
```
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list