Skip to content

Commit

Permalink
also include them in the convert-linalg-to-memref-stream pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jorendumoulin committed Jul 23, 2024
1 parent ffccfe1 commit 9a38bd5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ linalg.generic {
affine_map<() -> ()>,
affine_map<() -> ()>
],
iterator_types = []
iterator_types = [],
doc = "documentation string",
library_call = "library call"
} ins(%A, %B : memref<f64>, memref<f64>) outs(%C : memref<f64>) {
^0(%a : f64, %b : f64, %acc_old : f64):
%prod = arith.mulf %a, %b : f64
Expand All @@ -29,7 +31,9 @@ linalg.generic {
// CHECK-NEXT: affine_map<() -> ()>,
// CHECK-NEXT: affine_map<() -> ()>
// CHECK-NEXT: ],
// CHECK-NEXT: iterator_types = []
// CHECK-NEXT: iterator_types = [],
// CHECK-NEXT: doc = "documentation string",
// CHECK-NEXT: library_call = "library call"
// CHECK-NEXT: } ins(%A, %B : memref<f64>, memref<f64>) outs(%C : memref<f64>) {
// CHECK-NEXT: ^0(%a : f64, %b : f64, %acc_old : f64):
// CHECK-NEXT: %prod = arith.mulf %a, %b : f64
Expand Down
2 changes: 2 additions & 0 deletions xdsl/transforms/convert_linalg_to_memref_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def match_and_rewrite(self, op: linalg.Generic, rewriter: PatternRewriter) -> No
iterator_types,
bounds,
ArrayAttr(()),
op.doc,
op.library_call,
)
)

Expand Down

0 comments on commit 9a38bd5

Please sign in to comment.