[Mlir-commits] [mlir] ad99b78 - Add missing dependent test dialect in a MLIR test pass

Mehdi Amini llvmlistbot at llvm.org
Mon Jun 26 07:38:47 PDT 2023


Author: Mehdi Amini
Date: 2023-06-26T16:38:40+02:00
New Revision: ad99b7843159ff7543b580b21dcb288d05fd13be

URL: https://github.com/llvm/llvm-project/commit/ad99b7843159ff7543b580b21dcb288d05fd13be
DIFF: https://github.com/llvm/llvm-project/commit/ad99b7843159ff7543b580b21dcb288d05fd13be.diff

LOG: Add missing dependent test dialect in a MLIR test pass

Fix #62317

Added: 
    

Modified: 
    mlir/test/lib/Tools/PDLL/TestPDLL.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/test/lib/Tools/PDLL/TestPDLL.cpp b/mlir/test/lib/Tools/PDLL/TestPDLL.cpp
index eb607b9f8941a..db45d0eadf818 100644
--- a/mlir/test/lib/Tools/PDLL/TestPDLL.cpp
+++ b/mlir/test/lib/Tools/PDLL/TestPDLL.cpp
@@ -6,6 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "TestDialect.h"
 #include "mlir/Dialect/PDL/IR/PDL.h"
 #include "mlir/Dialect/PDLInterp/IR/PDLInterp.h"
 #include "mlir/Interfaces/CastInterfaces.h"
@@ -25,7 +26,7 @@ struct TestPDLLPass : public PassWrapper<TestPDLLPass, OperationPass<>> {
   StringRef getArgument() const final { return "test-pdll-pass"; }
   StringRef getDescription() const final { return "Test PDLL functionality"; }
   void getDependentDialects(DialectRegistry &registry) const override {
-    registry.insert<pdl::PDLDialect, pdl_interp::PDLInterpDialect>();
+    registry.insert<pdl::PDLDialect, pdl_interp::PDLInterpDialect, test::TestDialect>();
   }
   LogicalResult initialize(MLIRContext *ctx) override {
     // Build the pattern set within the `initialize` to avoid recompiling PDL


        


More information about the Mlir-commits mailing list