[Mlir-commits] [mlir] 99fd12f - Add the test dialect as dependent for the "test-legalize-patterns" test pass

Mehdi Amini llvmlistbot at llvm.org
Sat Jan 21 18:42:22 PST 2023


Author: Mehdi Amini
Date: 2023-01-22T03:40:37+01:00
New Revision: 99fd12f20ee8d4559bad67146e28ed6523fd2a06

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

LOG: Add the test dialect as dependent for the "test-legalize-patterns" test pass

Fixes #60183

Added: 
    

Modified: 
    mlir/test/lib/Dialect/Test/TestPatterns.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/test/lib/Dialect/Test/TestPatterns.cpp b/mlir/test/lib/Dialect/Test/TestPatterns.cpp
index 286d0de72cc9a..726d8100c4c65 100644
--- a/mlir/test/lib/Dialect/Test/TestPatterns.cpp
+++ b/mlir/test/lib/Dialect/Test/TestPatterns.cpp
@@ -857,7 +857,7 @@ struct TestLegalizePatternDriver
   TestLegalizePatternDriver(ConversionMode mode) : mode(mode) {}
 
   void getDependentDialects(DialectRegistry &registry) const override {
-    registry.insert<func::FuncDialect>();
+    registry.insert<func::FuncDialect, test::TestDialect>();
   }
 
   void runOnOperation() override {


        


More information about the Mlir-commits mailing list