[Mlir-commits] [mlir] [mlir][python] value casting (PR #69644)

Maksim Levental llvmlistbot at llvm.org
Tue Oct 31 06:09:33 PDT 2023


================
@@ -116,6 +127,11 @@ class PyGlobals {
   /// Cache for map of MlirTypeID to custom type caster.
   llvm::DenseMap<MlirTypeID, pybind11::object> typeCasterMapCache;
 
+  /// Map of MlirTypeID to custom value caster.
+  llvm::DenseMap<MlirTypeID, pybind11::object> valueCasterMap;
+  /// Cache for map of MlirTypeID to custom value caster.
----------------
makslevental wrote:

I wholly agree about the redundancy https://github.com/llvm/llvm-project/pull/70264, so in fact i say we ditch them all together here.

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


More information about the Mlir-commits mailing list