[Mlir-commits] [mlir] [mlir][python] automatically bundle builtin dialect with core sources (PR #72338)

Maksim Levental llvmlistbot at llvm.org
Tue Nov 14 19:58:33 PST 2023


makslevental wrote:

> I don't think that early exit is right. It is perfectly fine to use the python API without generated dialect helper modules. Trying to load the helper module may make sense but not sure why it is required.

The reasoning for the exit (for type and attribute casters) was that if your dialect isn't loaded then you're types aren't regsitered either. Indeed there isn't anything that fails if you don't load the helper module _except you shouldn't be able to get type casting_.

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


More information about the Mlir-commits mailing list