Commit 17723e4
authored
[mlir][Linalg] Allow PartialReductionOpInterface ops in tile_reduction_using_forall (#157932)
Following [PR
#120118](#120118), this PR
extends transform.structured.tile_reduction_using_forall so that it can
be applied to any operation implementing `PartialReductionOpInterface`,
rather than being restricted to LinalgOp.
Existing tests relevant to linalg ops remain valid:
https://github.com/llvm/llvm-project/blob/2a2296b1aab4614bf6c95c3003000832c9d43de5/mlir/test/Dialect/Linalg/transform-tile-reduction.mlir#L114
Additional tests for non-Linalg operations (e.g., IREE custom ops that
implement `PartialReductionOpInterface`) will be added on the IREE side.
Signed-off-by: Bangtian Liu <[email protected]>1 parent c745c54 commit 17723e4
File tree
2 files changed
+14
-7
lines changed- mlir
- include/mlir/Dialect/Linalg/TransformOps
- lib/Dialect/Linalg/TransformOps
2 files changed
+14
-7
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2017 | 2017 | | |
2018 | 2018 | | |
2019 | 2019 | | |
2020 | | - | |
2021 | | - | |
| 2020 | + | |
| 2021 | + | |
2022 | 2022 | | |
2023 | 2023 | | |
2024 | 2024 | | |
| |||
2042 | 2042 | | |
2043 | 2043 | | |
2044 | 2044 | | |
2045 | | - | |
| 2045 | + | |
2046 | 2046 | | |
2047 | 2047 | | |
2048 | 2048 | | |
| |||
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3033 | 3033 | | |
3034 | 3034 | | |
3035 | 3035 | | |
3036 | | - | |
| 3036 | + | |
3037 | 3037 | | |
3038 | 3038 | | |
3039 | 3039 | | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
| 3043 | + | |
| 3044 | + | |
| 3045 | + | |
| 3046 | + | |
3040 | 3047 | | |
3041 | 3048 | | |
3042 | 3049 | | |
| |||
3058 | 3065 | | |
3059 | 3066 | | |
3060 | 3067 | | |
3061 | | - | |
| 3068 | + | |
3062 | 3069 | | |
3063 | 3070 | | |
3064 | 3071 | | |
3065 | 3072 | | |
3066 | 3073 | | |
3067 | | - | |
3068 | | - | |
| 3074 | + | |
| 3075 | + | |
3069 | 3076 | | |
3070 | 3077 | | |
3071 | 3078 | | |
| |||
0 commit comments