getOrCreateRanges is a helper function for ViewLikeInterface. This function is currently defined in the MemRefDialect (and pre-declared in the TensorDialect).
Depends On D104676
Paths
| Differential D104690
[mlir][NFC] Move getOrCreateRanges to ViewLikeInterface AbandonedPublic Authored by springerm on Jun 21 2021, 11:13 PM.
Details
Summary getOrCreateRanges is a helper function for ViewLikeInterface. This function is currently defined in the MemRefDialect (and pre-declared in the TensorDialect). Depends On D104676
Diff Detail
Event TimelineComment Actions This is adding a dialect dependency to an interface, which is generally a code smell for something being off. Why does this interface need to depend on the standard dialect?
This revision now requires changes to proceed.Jun 21 2021, 11:22 PM Comment Actions
The purpose of this revision is to move getOrCreateRanges from MemRefOps.cpp to some other place. (As part of cleaning up MemRefOps.cpp.) This function does not conceptually belong to the MemRef dialect. Also, this function is predeclared in MemRef dialect and in the Tensor dialect, but only defined in the MemRef dialect. Actually, it doesn't necessarily have to go to ViewLikeInterface.cpp. Moving it into a util file...
Revision Contents
Diff 353568 mlir/include/mlir/Dialect/MemRef/IR/MemRef.h
mlir/include/mlir/Dialect/Tensor/IR/Tensor.h
mlir/include/mlir/Dialect/Utils/StaticValueUtils.h
mlir/include/mlir/IR/OpBase.td
mlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
mlir/lib/Dialect/Utils/CMakeLists.txt
mlir/lib/Dialect/Utils/StaticValueUtils.cpp
|