[Mlir-commits] [mlir] [mlir][python] remove various caching mechanism (PR #70831)

Maksim Levental llvmlistbot at llvm.org
Tue Oct 31 16:27:29 PDT 2023


================
@@ -34,7 +34,6 @@ PYBIND11_MODULE(_mlir, m) {
           "append_dialect_search_prefix",
           [](PyGlobals &self, std::string moduleName) {
             self.getDialectSearchPrefixes().push_back(std::move(moduleName));
-            self.clearImportCache();
----------------
makslevental wrote:

On second thought, let's make `loadDialectModule` do the right thing - report whether a dialect is actually registered or not (instead of just "pretending" a dialect is loaded).

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


More information about the Mlir-commits mailing list