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 ↗ | (On Diff #315512) | 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 ↗ | (On Diff #315512) | 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 | ||
|---|---|---|
| 20 | This doesn't look necessary. Can you trim the scope of this include? | |
| mlir/lib/Dialect/StandardOps/Utils/Utils.cpp | ||
| 25 | 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 | ||
|---|---|---|
| 18 | The clang-tidy warning is because you're missing a UTILS_ for the directory | |
The clang-tidy warning is because you're missing a UTILS_ for the directory