TileToForeachThreadOp now accepts mixed SSA value operands / index attributes for tile_sizes and num_threads. (Reusing OperandsOrIntegersSizesList.) In case of an operand, a PDL_Operation must be specified that is mapped to a payload op that returns the tile size or number of threads.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Generally LGTM once comments are addressed.
| mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp | ||
|---|---|---|
| 1028 | Some comment for this plz? | |
| 1048 | nit: add the index for better debugging: "num_threads #" << index << "..." | |
| 1056 | nit: add the index for better debugging: "num_threads #" << index << "..." | |
| 1067 | Seems like an opportunity to factor out all this duplicated code | |
| 1140 | Hmm this is frustrating .. I think I saw @Mogball touch something related to these lists of index or attr recently ? | |
| 1217 | There should already be code available to avoid duplicating all this, see dispatchIndexOpFoldResults | |
| 1231 | ditto | |
| mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp | ||
|---|---|---|
| 1140 | oilist did the trick! | |
| mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp | ||
|---|---|---|
| 1140 | great! | |
Some comment for this plz?