This change will bring all helpers that work with iterator types to one place.
Currently getDimsOfType is is declared in Linalg.h, but not directly included by
LinalgInterfaces. It worked so far only because all the places that include
LinalgInterfaces.h also include Linalg.h directly or indirectly.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td | ||
---|---|---|
261–262 | If you're not passing the operation itself, then the function becomes more general and just computes positions of x: type in vector<type>. In that case, you probably want to rename it to findPositions or smth like that. | |
mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h | ||
117 | nit: use (auto en : llvm::enumerate(iteratorType...)) and then en.index() and en.value() |
If you're not passing the operation itself, then the function becomes more general and just computes positions of x: type in vector<type>. In that case, you probably want to rename it to findPositions or smth like that.