getDynOperands behavior is commonly used in a number of passes. Refactored to
use a helper function and avoid code reuse.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/lib/Dialect/Linalg/Utils/Utils.cpp | ||
|---|---|---|
| 372 | This looks like something that would go wherever DimOp is defined. Adding here creates an otherwise unnecessary dependency on Linalg in several places. | |
| mlir/lib/Dialect/Linalg/Utils/Utils.cpp | ||
|---|---|---|
| 372 | Either we need to add a Utils.h in StandardDialect or we could make it a static method on the DimOp class itself? | |
| mlir/include/mlir/Dialect/StandardOps/Utils/Utils.h | ||
|---|---|---|
| 19 ↗ | (On Diff #315554) | This doesn't look necessary. Can you trim the scope of this include? |
| mlir/lib/Dialect/StandardOps/Utils/Utils.cpp | ||
| 24 ↗ | (On Diff #315554) | nit: Remove the trivial braces here. |
| mlir/lib/Transforms/BufferDeallocation.cpp | ||
| 56 | Is this necessary? | |
| mlir/lib/Transforms/PipelineDataTransfer.cpp | ||
| 20 | Is this necessary? | |
Comment Actions
LGTM, Thanks!
| mlir/include/mlir/Dialect/StandardOps/Utils/Utils.h | ||
|---|---|---|
| 17 ↗ | (On Diff #315557) | The clang-tidy warning is because you're missing a UTILS_ for the directory |
This looks like something that would go wherever DimOp is defined. Adding here creates an otherwise unnecessary dependency on Linalg in several places.