File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ add_mlir_dialect_library(
1616 MLIRIR
1717 MLIRInferTypeOpInterface
1818 MLIRFuncDialect
19+ MLIRRegisterAllDialects
20+ MLIRRegisterAllPasses
1921)
2022
2123add_mlir_public_c_api_library(MinimalCAPI
Original file line number Diff line number Diff line change 1212#include " mlir/IR/Builders.h"
1313#include " mlir/IR/DialectImplementation.h"
1414#include " mlir/IR/PatternMatch.h"
15- #include " mlir/InitAllDialects.h"
16- #include " mlir/InitAllPasses.h"
1715#include " mlir/Rewrite/FrozenRewritePatternSet.h"
1816#include " mlir/Support/LogicalResult.h"
1917#include " mlir/Tools/mlir-opt/MlirOptMain.h"
2018#include " mlir/Transforms/GreedyPatternRewriteDriver.h"
19+ #include " llvm/ADT/TypeSwitch.h"
2120
2221using namespace mlir ;
2322using namespace mlir ::minimal;
@@ -32,6 +31,7 @@ void MinimalDialect::initialize() {
3231 addOperations<
3332#define GET_OP_LIST
3433#include " MinimalOps.cpp.inc"
34+
3535 >();
3636 registerTypes ();
3737}
@@ -92,5 +92,6 @@ void MinimalDialect::registerTypes() {
9292 addTypes<
9393#define GET_TYPEDEF_LIST
9494#include " MinimalTypes.cpp.inc"
95+
9596 >();
9697}
Original file line number Diff line number Diff line change 88
99#include " MinimalDialect.h"
1010
11+ #include " mlir/Dialect/Arith/IR/Arith.h"
1112#include " mlir/Dialect/Func/IR/FuncOps.h"
1213#include " mlir/InitAllDialects.h"
1314#include " mlir/InitAllPasses.h"
You can’t perform that action at this time.
0 commit comments