[Mlir-commits] [mlir] [MLIR] Add ODS support for generating helpers for dialect (discardable) attributes (PR #77024)

Jacques Pienaar llvmlistbot at llvm.org
Wed Jan 10 12:11:15 PST 2024


================
@@ -34,6 +34,8 @@ class Dialect {
   // pattern or interfaces.
   list<string> dependentDialects = [];
 
+  dag discardableAttrs = (ins);
----------------
jpienaar wrote:

Is my mental model correct that these are all effectively optional attributes for which there are helpers generated? But they are different than the others as not verified, most likely empty? (e.g., I'm not sure if doing this vs making these optional attributes when one would select which ...)

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


More information about the Mlir-commits mailing list