[Mlir-commits] [mlir] [mlir][linalg] Add support to pass attributes to the packed ops (PR #79526)

Han-Chung Wang llvmlistbot at llvm.org
Thu Jan 25 20:18:18 PST 2024


================
@@ -369,7 +369,9 @@ struct GenerateLoopNest {
 /// Returns an attribute list that excludes pre-defined attributes.
 template <typename OpTy>
 SmallVector<NamedAttribute> getPrunedAttributeList(OpTy op) {
-  auto elidedAttrs = llvm::to_vector(op.getAttributeNames());
+  // op.getAttributeNames() doesn't work when the op is linalg::LinalgOp.
----------------
hanhanW wrote:

What do you mean by does not work? Can you elaborate or add a test/example to the PR...? Should we just have a template partial specialization for LinalgOp?

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


More information about the Mlir-commits mailing list