[Mlir-commits] [mlir] [MLIR][Python] add type hints for accessors (PR #158455)
Jacques Pienaar
llvmlistbot at llvm.org
Wed Sep 17 02:48:50 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();
----------------
jpienaar wrote:
I'd do it standalone from the TD type, but in the TD processed by python generator and only it. Its just a mapping there. We did something like this for TFLite ages ago, but can't find it quickly now.
https://github.com/llvm/llvm-project/pull/158455
More information about the Mlir-commits
mailing list