From fe43909cda51cb00cfecd8f0e681cb663d9de648 Mon Sep 17 00:00:00 2001 From: "William S. Moses" Date: Mon, 16 Dec 2024 19:50:44 -0600 Subject: [PATCH] reg --- deps/ReactantExtra/API.cpp | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/deps/ReactantExtra/API.cpp b/deps/ReactantExtra/API.cpp index c08b7921..f603105a 100644 --- a/deps/ReactantExtra/API.cpp +++ b/deps/ReactantExtra/API.cpp @@ -473,34 +473,10 @@ extern "C" void RegisterDialects(MlirContext cctx) { #include "mlir/Dialect/LLVMIR/Transforms/InlinerInterfaceImpl.h" extern "C" void InitializeRegistryAndPasses(MlirDialectRegistry creg) { mlir::DialectRegistry ®istry = *unwrap(creg); - - // Register MLIR stuff - registry.insert(); - registry.insert(); - registry.insert(); - registry.insert(); - registry.insert(); - registry.insert(); - registry.insert(); - registry.insert(); - registry.insert(); - registry.insert(); - registry.insert(); - registry.insert(); - registry.insert(); - registry.insert(); - registry.insert(); - registry.insert(); - registry.insert(); - registry.insert(); - - registry.insert(); + prepareRegistry(registry); mlir::registerenzymePasses(); regsiterenzymeXLAPasses(); - mlir::enzyme::registerXLAAutoDiffInterfaces(registry); - - mlir::func::registerInlinerExtension(registry); // Register the standard passes we want. mlir::registerCSEPass(); @@ -517,7 +493,6 @@ extern "C" void InitializeRegistryAndPasses(MlirDialectRegistry creg) { mlir::registerLLVMDialectImport(registry); mlir::registerNVVMDialectImport(registry); - mlir::LLVM::registerInlinerInterface(registry); /* registry.addExtension(+[](MLIRContext *ctx, LLVM::LLVMDialect *dialect) { @@ -535,15 +510,10 @@ extern "C" void InitializeRegistryAndPasses(MlirDialectRegistry creg) { }); */ - // Register the autodiff interface implementations for upstream dialects. - enzyme::registerCoreDialectAutodiffInterfaces(registry); - // Transform dialect and extensions. mlir::transform::registerInterpreterPass(); - mlir::linalg::registerTransformDialectExtension(registry); mlir::enzyme::registerGenerateApplyPatternsPass(); mlir::enzyme::registerRemoveTransformPass(); - mlir::enzyme::registerEnzymeJaxTransformExtension(registry); }