[llvm] Fix bazel build (PR #73880)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 29 16:31:30 PST 2023
https://github.com/frgossen created https://github.com/llvm/llvm-project/pull/73880
None
>From 010b57b5e5a5f162700f98f8e4c5a269e36aa264 Mon Sep 17 00:00:00 2001
From: Frederik Gossen <frgossen at google.com>
Date: Wed, 29 Nov 2023 19:30:59 -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..8896b94c1927017 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",
+ "//third_party/llvm/llvm-project/llvm:Core",
+ "//third_party/llvm/llvm-project/llvm:Support",
+ ],
+)
+
mlir_c_api_cc_library(
name = "CAPIGPU",
srcs = [
More information about the llvm-commits
mailing list