[Mlir-commits] [mlir] 3ef4099 - [mlir] Fix BUILD issues and dependencies.
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Apr 15 12:06:54 PDT 2022
Author: rdzhabarov
Date: 2022-04-15T19:05:02Z
New Revision: 3ef4099a6110b44aadbf085aec132d6a987aaabe
URL: https://github.com/llvm/llvm-project/commit/3ef4099a6110b44aadbf085aec132d6a987aaabe
DIFF: https://github.com/llvm/llvm-project/commit/3ef4099a6110b44aadbf085aec132d6a987aaabe.diff
LOG: [mlir] Fix BUILD issues and dependencies.
Differential Revision: https://reviews.llvm.org/D123868
Added:
Modified:
mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td
mlir/include/mlir/Dialect/Func/IR/FuncOps.td
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td b/mlir/include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td
index b7ca06448db44..e6f9c6dbcd61b 100644
--- 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
index ca5df245ef616..55da92a34c5c1 100644
--- 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
index fa44a3a738b2f..821b5fbf4fbb7 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -949,11 +949,18 @@ cc_binary(
##---------------------------------------------------------------------------##
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 @@ td_library(
"include/mlir/IR/TensorEncoding.td",
],
includes = ["include"],
+ deps = [
+ ":AttrTdFiles",
+ ],
)
td_library(
@@ -2066,6 +2076,7 @@ td_library(
],
includes = ["include"],
deps = [
+ ":AttrTdFiles",
":CallInterfacesTdFiles",
":CastInterfacesTdFiles",
":ControlFlowInterfacesTdFiles",
@@ -2800,6 +2811,7 @@ td_library(
],
includes = ["include"],
deps = [
+ ":AttrTdFiles",
":CallInterfacesTdFiles",
":CastInterfacesTdFiles",
":ControlFlowInterfacesTdFiles",
@@ -2840,7 +2852,10 @@ gentbl_cc_library(
],
tblgen = ":mlir-tblgen",
td_file = "include/mlir/Dialect/ControlFlow/IR/ControlFlowOps.td",
- deps = [":ControlFlowOpsTdFiles"],
+ deps = [
+ ":AttrTdFiles",
+ ":ControlFlowOpsTdFiles",
+ ],
)
cc_library(
@@ -3322,7 +3337,10 @@ gentbl_cc_library(
],
tblgen = ":mlir-tblgen",
td_file = "include/mlir/Dialect/GPU/ParallelLoopMapperAttr.td",
- deps = [":GPUOpsTdFiles"],
+ deps = [
+ ":AttrTdFiles",
+ ":GPUOpsTdFiles",
+ ],
)
gentbl_cc_library(
More information about the Mlir-commits
mailing list