diff --git a/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp b/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp index 048e4d89186c..641cd6f9324d 100644 --- a/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp +++ b/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp @@ -8,7 +8,6 @@ #include "mlir/Dialect/Arithmetic/IR/Arithmetic.h" #include "mlir/Dialect/CommonFolders.h" -#include "mlir/Dialect/MemRef/IR/MemRef.h" #include "mlir/IR/Builders.h" #include "mlir/IR/Matchers.h" #include "mlir/IR/OpImplementation.h" diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel index ea11a63d6154..00b339e1fa5c 100644 --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -965,6 +965,7 @@ td_library( ], includes = ["include"], deps = [ + ":ArithmeticOpsTdFiles", ":LoopLikeInterfaceTdFiles", ":OpBaseTdFiles", ":SideEffectInterfacesTdFiles", @@ -985,11 +986,17 @@ gentbl_cc_library( "include/mlir/Dialect/Affine/IR/AffineOps.cpp.inc", ), ( - ["-gen-dialect-decls"], + [ + "-gen-dialect-decls", + "-dialect=affine", + ], "include/mlir/Dialect/Affine/IR/AffineOpsDialect.h.inc", ), ( - ["-gen-dialect-defs"], + [ + "-gen-dialect-defs", + "-dialect=affine", + ], "include/mlir/Dialect/Affine/IR/AffineOpsDialect.cpp.inc", ), ], @@ -1864,7 +1871,6 @@ td_library( name = "StdOpsTdFiles", srcs = [ "include/mlir/Dialect/StandardOps/IR/Ops.td", - "include/mlir/Dialect/StandardOps/IR/StandardOpsBase.td", ], includes = ["include"], deps = [