[mlir] NFC - move declaration of `Range` to StaticValueUtils.h
authorChristopher Bate <cbate@nvidia.com>
Thu, 8 Sep 2022 20:33:57 +0000 (14:33 -0600)
committerChristopher Bate <cbate@nvidia.com>
Thu, 8 Sep 2022 22:29:56 +0000 (16:29 -0600)
commitfb98a623fb06f2d557a88cbf1fa51377b38c64bd
treee05934a0b79d9ee28936483c7a26c0501235643e
parentb7d47ed1da974bdba4d2b74589c985e7190b8d21
[mlir] NFC - move declaration of `Range` to StaticValueUtils.h

`ViewLikeInterface.h` defines a struct `Range`, and it also depends on
`StaticValueUtils.h/cpp`. This change moves the definition of `Range` to
`StaticValueUtils.h`, which should not violate any existing dependency
requirement. This is done to support adding utilities using `Range`
under `Dialect/Utils` without creating a circular dependency on
`ViewLikeInterface`. It is possible that some targets depend on
`ViewLikeInterface` just for the `Range` struct. These can be later
updated to depend on the `MLIRDialectUtils` target.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D133523
mlir/include/mlir/Dialect/Utils/StaticValueUtils.h
mlir/include/mlir/Interfaces/ViewLikeInterface.h