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 | ||
|---|---|---|
| 1027 | Some comment for this plz? | |
| 1047 | nit: add the index for better debugging: "num_threads #" << index << "..." | |
| 1055 | nit: add the index for better debugging: "num_threads #" << index << "..." | |
| 1066 | Seems like an opportunity to factor out all this duplicated code | |
| 1136 | Hmm this is frustrating .. I think I saw @Mogball touch something related to these lists of index or attr recently ? | |
| 1213 | There should already be code available to avoid duplicating all this, see dispatchIndexOpFoldResults | |
| 1227 | ditto | |
| mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp | ||
|---|---|---|
| 1136 | oilist did the trick! | |
| mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp | ||
|---|---|---|
| 1136 | great! | |
Some comment for this plz?