[mlir] Move getDimsOfType to StructuredOpsUtils.h.
authorOleg Shyshkov <shyshkov@google.com>
Wed, 21 Sep 2022 12:47:21 +0000 (12:47 +0000)
committerOleg Shyshkov <shyshkov@google.com>
Wed, 21 Sep 2022 12:49:25 +0000 (12:49 +0000)
commit9926ad17525a3424618b710a5bb882b392793e8d
treee25e1538efd59fdf5c40283ee1f8ded0f95a165e
parent839ba13c3e8c63c10dfef8da7fe5e21cb133f3c9
[mlir] Move getDimsOfType to StructuredOpsUtils.h.

Summary:
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.

Differential Revision: https://reviews.llvm.org/D134350
mlir/include/mlir/Dialect/Linalg/IR/Linalg.h
mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td
mlir/include/mlir/Dialect/Utils/StructuredOpsUtils.h
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp