[llvm] Fix bazel build (PR #73942)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 06:20:14 PST 2023
https://github.com/frgossen updated https://github.com/llvm/llvm-project/pull/73942
>From fe5d2da09292317c5b969edcd292926d7232134d Mon Sep 17 00:00:00 2001
From: Frederik Gossen <frgossen at google.com>
Date: Thu, 30 Nov 2023 09:13:54 -0500
Subject: [PATCH] Fix bazel build
---
.../llvm-project-overlay/mlir/BUILD.bazel | 61 +++++++++++++------
1 file changed, 41 insertions(+), 20 deletions(-)
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 6ecf28424ba4a5c..857aa3491d75e69 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -595,6 +595,9 @@ mlir_c_api_cc_library(
capi_deps = [
":CAPIIR",
],
+ header_deps = [
+ "//llvm:Support",
+ ],
includes = ["include"],
deps = [
":LLVMToLLVMIRTranslation",
@@ -602,7 +605,6 @@ mlir_c_api_cc_library(
":ToLLVMIRTranslation",
":ToLLVMIRTranslationRegistration",
"//llvm:Core",
- "//llvm:Support",
],
)
@@ -1972,6 +1974,23 @@ gentbl_cc_library(
deps = [":ArmSMETdFiles"],
)
+gentbl_cc_library(
+ name = "ArmSMEOpInterfacesIncGen",
+ tbl_outs = [
+ (
+ ["-gen-op-interface-decls"],
+ "include/mlir/Dialect/ArmSME/IR/ArmSMEOpInterfaces.h.inc",
+ ),
+ (
+ ["-gen-op-interface-defs"],
+ "include/mlir/Dialect/ArmSME/IR/ArmSMEOpInterfaces.cpp.inc",
+ ),
+ ],
+ tblgen = ":mlir-tblgen",
+ td_file = "include/mlir/Dialect/ArmSME/IR/ArmSMEOps.td",
+ deps = [":ArmSMETdFiles"],
+)
+
gentbl_cc_library(
name = "ArmSMEIntrinsicOpsIncGen",
tbl_outs = [
@@ -1993,14 +2012,31 @@ gentbl_cc_library(
deps = [":ArmSMETdFiles"],
)
+cc_library(
+ name = "ArmSMEEnums",
+ hdrs = [
+ "include/mlir/Dialect/ArmSME/IR/ArmSMEEnums.h",
+ ],
+ deps = [
+ ":ArmSMEIncGen",
+ ":ArmSMEOpsIncGen",
+ ":IR",
+ ],
+)
+
cc_library(
name = "ArmSMEDialect",
- srcs = ["lib/Dialect/ArmSME/IR/ArmSME.cpp"],
- hdrs = ["include/mlir/Dialect/ArmSME/IR/ArmSME.h"],
+ srcs = glob(["lib/Dialect/ArmSME/IR/*.cpp"]),
+ hdrs = [
+ "include/mlir/Dialect/ArmSME/IR/ArmSME.h",
+ "include/mlir/Dialect/ArmSME/Utils/Utils.h",
+ ],
includes = ["include"],
deps = [
+ ":ArmSMEEnums",
":ArmSMEIncGen",
":ArmSMEIntrinsicOpsIncGen",
+ ":ArmSMEOpInterfacesIncGen",
":ArmSMEOpsIncGen",
":IR",
":LLVMDialect",
@@ -2013,19 +2049,6 @@ cc_library(
],
)
-cc_library(
- name = "ArmSMEUtils",
- srcs = glob(["lib/Dialect/ArmSME/Utils/*.cpp"]),
- hdrs = glob(["include/mlir/Dialect/ArmSME/Utils/*.h"]),
- includes = ["include"],
- deps = [
- ":ArithDialect",
- ":ArmSMEDialect",
- ":Dialect",
- ":IR",
- ],
-)
-
cc_library(
name = "ArmSMETransforms",
srcs = glob(["lib/Dialect/ArmSME/Transforms/*.cpp"]),
@@ -2035,7 +2058,7 @@ cc_library(
":ArithDialect",
":ArmSMEDialect",
":ArmSMETransformsPassIncGen",
- ":ArmSMEUtils",
+ ":ControlFlowDialect",
":FuncDialect",
":IR",
":LLVMCommonConversion",
@@ -2044,6 +2067,7 @@ cc_library(
":SCFDialect",
":Transforms",
":VectorDialect",
+ "//llvm:Support",
],
)
@@ -2055,7 +2079,6 @@ cc_library(
deps = [
":ArithDialect",
":ArmSMEDialect",
- ":ArmSMEUtils",
":ConversionPassIncGen",
":Pass",
":SCFDialect",
@@ -2072,7 +2095,6 @@ cc_library(
":ArithDialect",
":ArmSMEDialect",
":ArmSMETransforms",
- ":ArmSMEUtils",
":ConversionPassIncGen",
":FuncDialect",
":LLVMCommonConversion",
@@ -10979,7 +11001,6 @@ cc_library(
includes = ["include"],
deps = [
":ArmSMEDialect",
- ":ArmSMEUtils",
":ConversionPassIncGen",
":IR",
":MemRefDialect",
More information about the llvm-commits
mailing list