[Mlir-commits] [llvm] [mlir] [MLIR] Generalize expand_shape to take shape as explicit input (PR #69267)

Scott Todd llvmlistbot at llvm.org
Tue Apr 16 10:59:27 PDT 2024


================
@@ -8,6 +8,7 @@
 
 #include "mlir/Dialect/Utils/ReshapeOpsUtils.h"
 
+#include "mlir/Dialect/Arith/IR/Arith.h"
 #include "mlir/IR/AffineMap.h"
 #include "mlir/IR/Builders.h"
----------------
ScottTodd wrote:

Is this dependency from `Dialect/Utils/` onto the Arith dialect acceptable, or should this new `inferExpandShapeOutputShape()` function be moved to somewhere else (`Dialect/Arith/Utils`? Or memref _and_ tensor where the code is used, with some code duplication?)

https://github.com/llvm/llvm-project/pull/69267


More information about the Mlir-commits mailing list