diff --git a/mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td b/mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td --- a/mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td +++ b/mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td @@ -14,6 +14,7 @@ #ifndef MLIR_DIALECTS_CONTROLFLOW_IR_CONTROLFLOWOPS_TD #define MLIR_DIALECTS_CONTROLFLOW_IR_CONTROLFLOWOPS_TD +include "mlir/IR/EnumAttr.td" include "mlir/IR/OpAsmInterface.td" include "mlir/Interfaces/ControlFlowInterfaces.td" include "mlir/Interfaces/SideEffectInterfaces.td" diff --git a/mlir/include/mlir/Dialect/Func/IR/FuncOps.td b/mlir/include/mlir/Dialect/Func/IR/FuncOps.td --- a/mlir/include/mlir/Dialect/Func/IR/FuncOps.td +++ b/mlir/include/mlir/Dialect/Func/IR/FuncOps.td @@ -9,6 +9,7 @@ #ifndef MLIR_DIALECT_FUNC_IR_FUNCOPS_TD #define MLIR_DIALECT_FUNC_IR_FUNCOPS_TD +include "mlir/IR/EnumAttr.td" include "mlir/IR/OpAsmInterface.td" include "mlir/IR/SymbolInterfaces.td" include "mlir/Interfaces/CallInterfaces.td" diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -949,11 +949,18 @@ ##---------------------------------------------------------------------------## td_library( - name = "OpBaseTdFiles", + name = "AttrTdFiles", srcs = [ "include/mlir/IR/AttrTypeBase.td", - "include/mlir/IR/DialectBase.td", "include/mlir/IR/EnumAttr.td", + ], + includes = ["include"], +) + +td_library( + name = "OpBaseTdFiles", + srcs = [ + "include/mlir/IR/DialectBase.td", "include/mlir/IR/OpAsmInterface.td", "include/mlir/IR/OpBase.td", "include/mlir/IR/PatternBase.td", @@ -962,6 +969,9 @@ "include/mlir/IR/TensorEncoding.td", ], includes = ["include"], + deps = [ + ":AttrTdFiles", + ], ) td_library( @@ -2066,6 +2076,7 @@ ], includes = ["include"], deps = [ + ":AttrTdFiles", ":CallInterfacesTdFiles", ":CastInterfacesTdFiles", ":ControlFlowInterfacesTdFiles", @@ -2799,6 +2810,7 @@ ], includes = ["include"], deps = [ + ":AttrTdFiles", ":CallInterfacesTdFiles", ":CastInterfacesTdFiles", ":ControlFlowInterfacesTdFiles", @@ -2839,7 +2851,10 @@ ], tblgen = ":mlir-tblgen", td_file = "include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td", - deps = [":ControlFlowOpsTdFiles"], + deps = [ + ":AttrTdFiles", + ":ControlFlowOpsTdFiles", + ], ) cc_library( @@ -3320,7 +3335,10 @@ ], tblgen = ":mlir-tblgen", td_file = "include/mlir/Dialect/GPU/ParallelLoopMapperAttr.td", - deps = [":GPUOpsTdFiles"], + deps = [ + ":AttrTdFiles", + ":GPUOpsTdFiles", + ], ) gentbl_cc_library(