[Mlir-commits] [mlir] [mlir] NamedAttribute utility generator (PR #75118)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Dec 12 14:45:44 PST 2023
================
@@ -283,6 +283,78 @@ class AttrDef<Dialect dialect, string name, list<Trait> traits = [],
"::" # cppClassName # ">($_self)">;
}
+// Define a StringAttr wrapper for the NamedAttribute `name`
----------------
sjw36 wrote:
Yes, this is no different than a StringAttr, so the usual interface works, but the new `get` only takes MLIRContext*. And once it is created, there is no way to get back to the wrapper class but it is mostly static lookup methods anyway.
https://github.com/llvm/llvm-project/pull/75118
More information about the Mlir-commits
mailing list