[llvm] Fix bazel build (PR #73741)

via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 19:55:40 PST 2023


https://github.com/frgossen created https://github.com/llvm/llvm-project/pull/73741

None

>From 2270c913d025501051d3ca955bb937cbbf7dcbef Mon Sep 17 00:00:00 2001
From: Frederik Gossen <frgossen at google.com>
Date: Tue, 28 Nov 2023 22:55:11 -0500
Subject: [PATCH] Fix bazel build

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

diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 0d5c6acb2f051b2..2a5de5572ec4047 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -588,6 +588,24 @@ mlir_c_api_cc_library(
     ],
 )
 
+mlir_c_api_cc_library(
+    name = "CAPITarget",
+    srcs = ["lib/CAPI/Target/LLVMIR.cpp"],
+    hdrs = ["include/mlir-c/Target/LLVMIR.h"],
+    capi_deps = [
+        ":CAPIIR",
+    ],
+    includes = ["include"],
+    deps = [
+        ":LLVMToLLVMIRTranslation",
+        ":Support",
+        ":ToLLVMIRTranslation",
+        ":ToLLVMIRTranslationRegistration",
+        "//llvm:Core",
+        "//llvm:Support",
+    ],
+)
+
 mlir_c_api_cc_library(
     name = "CAPIGPU",
     srcs = [



More information about the llvm-commits mailing list