[Mlir-commits] [mlir] [mlir][ArmSME] Add `enable_arm_streaming_ignore` attribute (PR #66911)

Benjamin Maxwell llvmlistbot at llvm.org
Fri Sep 22 01:58:28 PDT 2023


================
@@ -9,3 +9,11 @@
 // CHECK-ENABLE-ZA-LABEL: @arm_streaming
 // CHECK-ENABLE-ZA-SAME: attributes {arm_streaming, arm_za}
 func.func @arm_streaming() { return }
+
+// CHECK-LABEL: @not_arm_streaming
+// CHECK-SAME: attributes {enable_arm_streaming_ignore}
+// CHECK-LOCALLY-LABEL: @not_arm_streaming
+// CHECK-LOCALLY-SAME: attributes {enable_arm_streaming_ignore}
+// CHECK-ENABLE-ZA-LABEL: @not_arm_streaming
+// CHECK-ENABLE-ZA-SAME: attributes {enable_arm_streaming_ignore}
----------------
MacDue wrote:

You have to do:
```
// CHECK-LABEL: @not_arm_streaming
// CHECK-NOT: arm_streaming
// CHECK-LOCALLY-LABEL: @not_arm_streaming
// CHECK-NOT: arm_streaming
```
Because `arm_streaming` is a substring of `enable_arm_streaming_ignore`. There's probably some syntax for whole word matches, but I think that just using ` // CHECK-SAME:` is a little simpler and easier to understand here.

https://github.com/llvm/llvm-project/pull/66911


More information about the Mlir-commits mailing list