[PATCH] D156316: [mlir][capi] Add a Bazel target for the C bindings to the SCF dialect

Adam Paszke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 26 04:52:01 PDT 2023


apaszke created this revision.
apaszke added reviewers: ftynse, jpienaar.
Herald added subscribers: bviyer, Moerafaat, zero9178, bzcheeseman, sdasgup3, wenzhicui, wrengr, cota, teijeong, rdzhabarov, tatianashp, msifontes, jurahul, Kayjukh, grosul1, Joonsoo, liufengdb, aartbik, mgester, arpith-jacob, antiagainst, shauheen, rriddle, mehdi_amini.
Herald added a project: All.
apaszke requested review of this revision.
Herald added subscribers: llvm-commits, stephenneuendorffer, nicolasvasilache.
Herald added a project: LLVM.

The SCF bindings are already wired up in CMake, but are missing from the Bazel files.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156316

Files:
  utils/bazel/llvm-project-overlay/mlir/BUILD.bazel


Index: utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -562,6 +562,19 @@
     ],
 )
 
+mlir_c_api_cc_library(
+    name = "CAPISCF",
+    srcs = ["lib/CAPI/Dialect/SCF.cpp"],
+    hdrs = ["include/mlir-c/Dialect/SCF.h"],
+    capi_deps = [
+        ":CAPIIR",
+    ],
+    includes = ["include"],
+    deps = [
+        ":SCFDialect",
+    ],
+)
+
 mlir_c_api_cc_library(
     name = "CAPISparseTensor",
     srcs = [


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156316.544311.patch
Type: text/x-patch
Size: 599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230726/17b871c4/attachment.bin>


More information about the llvm-commits mailing list