[llvm] add bazel build rule for IndexToSPIRV (PR #69743)

Jeremy Kun via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 20 10:47:30 PDT 2023


https://github.com/j2kun created https://github.com/llvm/llvm-project/pull/69743

To restore the bazel build after https://github.com/llvm/llvm-project/pull/68085

>From ae23f44c2462eedeefdd6323f0d33e8d322bbe51 Mon Sep 17 00:00:00 2001
From: Jeremy Kun <jkun at google.com>
Date: Fri, 20 Oct 2023 10:45:38 -0700
Subject: [PATCH] add bazel build rule for IndexToSPIRV

---
 .../llvm-project-overlay/mlir/BUILD.bazel     | 27 ++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index eb670ad50163c38..7df1ee0ce8b9181 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -5989,7 +5989,6 @@ cc_library(
     ],
 )
 
-
 cc_library(
     name = "NVVMToLLVM",
     srcs = glob(["lib/Conversion/NVVMToLLVM/NVVMToLLVM.cpp"]),
@@ -7426,6 +7425,7 @@ cc_library(
         ":FuncDialect",
         ":FuncToSPIRV",
         ":IR",
+        ":IndexToSPIRV",
         ":MemRefToSPIRV",
         ":Pass",
         ":SCFDialect",
@@ -9843,6 +9843,31 @@ cc_library(
     ],
 )
 
+cc_library(
+    name = "IndexToSPIRV",
+    srcs = glob([
+        "lib/Conversion/IndexToSPIRV/*.cpp",
+        "lib/Conversion/IndexToSPIRV/*.h",
+    ]),
+    hdrs = glob([
+        "include/mlir/Conversion/IndexToSPIRV/*.h",
+    ]),
+    includes = ["include"],
+    deps = [
+        ":ConversionPassIncGen",
+        ":IR",
+        ":IndexDialect",
+        ":Pass",
+        ":SPIRVCommonConversion",
+        ":SPIRVConversion",
+        ":SPIRVDialect",
+        ":Support",
+        ":Transforms",
+        "//llvm:Core",
+        "//llvm:Support",
+    ],
+)
+
 cc_library(
     name = "IndexDialect",
     srcs = glob(["lib/Dialect/Index/IR/*.cpp"]),



More information about the llvm-commits mailing list