diff --git a/mlir/include/mlir/Dialect/Utils/StaticValueUtils.h b/mlir/include/mlir/Dialect/Utils/StaticValueUtils.h --- a/mlir/include/mlir/Dialect/Utils/StaticValueUtils.h +++ b/mlir/include/mlir/Dialect/Utils/StaticValueUtils.h @@ -21,6 +21,14 @@ namespace mlir { +/// Represents a range (offset, size, and stride) where each element of the +/// triple may be dynamic or static. +struct Range { + OpFoldResult offset; + OpFoldResult size; + OpFoldResult stride; +}; + /// Helper function to dispatch an OpFoldResult into `staticVec` if: /// a) it is an IntegerAttr /// In other cases, the OpFoldResult is dispached to the `dynamicVec`. diff --git a/mlir/include/mlir/Interfaces/ViewLikeInterface.h b/mlir/include/mlir/Interfaces/ViewLikeInterface.h --- a/mlir/include/mlir/Interfaces/ViewLikeInterface.h +++ b/mlir/include/mlir/Interfaces/ViewLikeInterface.h @@ -21,15 +21,6 @@ namespace mlir { -/// Auxiliary range data structure to unpack the offset, size and stride -/// operands into a list of triples. Such a list can be more convenient to -/// manipulate. -struct Range { - OpFoldResult offset; - OpFoldResult size; - OpFoldResult stride; -}; - /// Return a vector of OpFoldResults given the special value /// that indicates whether of the value is dynamic or not. SmallVector getMixedValues(ArrayAttr staticValues,