[Mlir-commits] [mlir] [mlir][func] Refactor FuncToLLVM discardable attributes algorithm (PR #188232)
Mehdi Amini
llvmlistbot at llvm.org
Tue Mar 24 05:23:43 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();
+}
----------------
joker-eph wrote:
This does not do anything right now.
https://github.com/llvm/llvm-project/pull/188232
More information about the Mlir-commits
mailing list