[Mlir-commits] [mlir] [mlir][func] Refactor FuncToLLVM discardable attributes algorithm (PR #188232)

Hocky Yudhiono llvmlistbot at llvm.org
Tue Mar 24 05:28:02 PDT 2026


================
@@ -280,6 +280,16 @@ FuncOp FuncOp::clone() {
   return clone(mapper);
 }
 
+/// TODO: Should we add some exception for attributes that are not
+/// dialect-prefixed?
+LogicalResult FuncOp::verify() {
+  for (const NamedAttribute &attr : (*this)->getDiscardableAttrs()) {
+    if (attr.getNameDialect())
+      continue;
+  }
+  return success();
+}
----------------
hockyy wrote:

ill remove it for now

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


More information about the Mlir-commits mailing list