[Mlir-commits] [mlir] [MLIR][Python] add type hints for accessors (PR #158455)

Maksim Levental llvmlistbot at llvm.org
Tue Sep 16 07:39:31 PDT 2025


================
@@ -449,6 +486,72 @@ static void emitResultAccessors(const Operator &op, raw_ostream &os) {
                        getNumResults(op), getResult);
 }
 
+static std::string getPythonAttrName(mlir::tblgen::Attribute attr) {
+  auto storageTypeStr = attr.getStorageType();
----------------
makslevental wrote:

I'd love to hear some of these ideas - the only thing I managed to think of was forking this code downstream 🤷‍♂️

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


More information about the Mlir-commits mailing list