diff options
author | River Riddle <riverriddle@google.com> | 2020-01-13 13:12:37 -0800 |
---|---|---|
committer | River Riddle <riverriddle@google.com> | 2020-01-13 13:24:39 -0800 |
commit | 4268e4f4b84b85266426e99050d31ec63f3ce8aa (patch) | |
tree | d3a6b4cc366310f7ef6108d029155b06295c5495 /mlir/test/Transforms/affine-data-copy.mlir | |
parent | 26c7a4ed101fae85d2041ee1c8e8483b96e4460e (diff) | |
download | bcm5719-llvm-4268e4f4b84b85266426e99050d31ec63f3ce8aa.tar.gz bcm5719-llvm-4268e4f4b84b85266426e99050d31ec63f3ce8aa.zip |
[mlir] Change the syntax of AffineMapAttr and IntegerSetAttr to avoid conflicts with function types.
Summary: The current syntax for AffineMapAttr and IntegerSetAttr conflict with function types, making it currently impossible to round-trip function types(and e.g. FuncOp) in the IR. This revision changes the syntax for the attributes by wrapping them in a keyword. AffineMapAttr is wrapped with `affine_map<>` and IntegerSetAttr is wrapped with `affine_set<>`.
Reviewed By: nicolasvasilache, ftynse
Differential Revision: https://reviews.llvm.org/D72429
Diffstat (limited to 'mlir/test/Transforms/affine-data-copy.mlir')
-rw-r--r-- | mlir/test/Transforms/affine-data-copy.mlir | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mlir/test/Transforms/affine-data-copy.mlir b/mlir/test/Transforms/affine-data-copy.mlir index 5a0b2eb058c..c83beb18302 100644 --- a/mlir/test/Transforms/affine-data-copy.mlir +++ b/mlir/test/Transforms/affine-data-copy.mlir @@ -7,13 +7,13 @@ // footprint -- so that one could write a definite test case and not have to // update it each time something related to the cost functions change. -#map0 = (d0) -> (d0) -#map1 = (d0) -> (d0 + 128) +#map0 = affine_map<(d0) -> (d0)> +#map1 = affine_map<(d0) -> (d0 + 128)> // Map used to index the original memref while copying. -// CHECK-DAG: [[MEM_IDX_MAP:map[0-9]+]] = (d0, d1) -> (d0 + d1) +// CHECK-DAG: [[MEM_IDX_MAP:map[0-9]+]] = affine_map<(d0, d1) -> (d0 + d1)> // Map used to index the buffer while computing. -// CHECK-DAG: [[BUF_IDX_MAP:map[0-9]+]] = (d0, d1, d2, d3) -> (-d0 + d2, -d1 + d3) +// CHECK-DAG: [[BUF_IDX_MAP:map[0-9]+]] = affine_map<(d0, d1, d2, d3) -> (-d0 + d2, -d1 + d3)> // CHECK-LABEL: func @matmul func @matmul(%A: memref<4096x4096xf32>, %B: memref<4096x4096xf32>, %C: memref<4096x4096xf32>) -> memref<4096x4096xf32> { |