[Mlir-commits] [mlir] [mlir][linalg] Add support to pass attributes to the packed ops (PR #79526)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Jan 25 20:32:02 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.
----------------
MaheshRavishankar wrote:
`LinalgOp` is an interface op... so it doesnt have that method. All `Linalg` ops have the same attributes as a `linalg.generic`. So this works. We could do partial specialization of `LinalgOp`. That would be cleaner. cc @yzhang93
https://github.com/llvm/llvm-project/pull/79526
More information about the Mlir-commits
mailing list