[Mlir-commits] [mlir] [mlir] add an example of using transform dialect standalone (PR #82623)

Martin Paul Lücke llvmlistbot at llvm.org
Tue Feb 27 06:59:37 PST 2024


================
@@ -0,0 +1,21 @@
+// RUN: mlir-transform-opt %s | FileCheck %s
+// RUN: mlir-transform-opt %s --transform=%s | FileCheck %s
+// RUN: mlir-transform-opt %s --transform=%p/external-decl.mlir --verify-diagnostics
+// RUN: mlir-transform-opt %s --transform=%p/external-def.mlir --transform-entry-point=external_def | FileCheck %s --check-prefix=EXTERNAL
+// RUN: mlir-transform-opt %s --transform=%p/external-decl.mlir --transform-library=%p/external-def.mlir | FileCheck %s --check-prefix=EXTERNAL
+// RUN: mlir-transform-opt %s --transform=%p/syntax-error.mlir --verify-diagnostics
+
+// CHECK: IR printer: in self-contained
+// EXTERNAL: IR printer: external_def
+
+// The first occurrences comes from the print operaiton and the second is the
----------------
martin-luecke wrote:

```suggestion
// The first occurrence comes from the print operation and the second is the
```

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


More information about the Mlir-commits mailing list