[mlir][transform] Add PackedOrDynamicIndexList helper
authorMatthias Springer <springerm@google.com>
Mon, 19 Dec 2022 06:57:46 +0000 (07:57 +0100)
committerMatthias Springer <springerm@google.com>
Mon, 19 Dec 2022 07:08:04 +0000 (08:08 +0100)
commit411048c1aee4b32b364789112b75e6f28d962f14
tree109d1c9bd4893e2ee27c921a3cde2d138c5da190
parentb26fe2a3e520a520e785dc6b4e5758b7fde6af9d
[mlir][transform] Add PackedOrDynamicIndexList helper

This customer parser/printer is similar to DynamicIndexList, but has special syntax for the case where one handle represents the entire list.

Example:
```
// Regular index list
[10, 20, %val]

// Packed handle (no square parentheses)
%val
```

Differential Revision: https://reviews.llvm.org/D138825
mlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
mlir/include/mlir/Dialect/Transform/Utils/Utils.h [new file with mode: 0644]
mlir/lib/Dialect/Linalg/TransformOps/CMakeLists.txt
mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
mlir/lib/Dialect/Transform/CMakeLists.txt
mlir/lib/Dialect/Transform/Utils/CMakeLists.txt [new file with mode: 0644]
mlir/lib/Dialect/Transform/Utils/Utils.cpp [new file with mode: 0644]
mlir/test/Dialect/Linalg/tile-to-foreach-thread.mlir
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel