Skip to content

Commit 7775ef6

Browse files
authored
[mlir][bzl] Add CAPI targets for Shape and Tensor. (#163579)
1 parent cf1cdde commit 7775ef6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,19 @@ mlir_c_api_cc_library(
712712
],
713713
)
714714

715+
mlir_c_api_cc_library(
716+
name = "CAPIShape",
717+
srcs = ["lib/CAPI/Dialect/Shape.cpp"],
718+
hdrs = ["include/mlir-c/Dialect/Shape.h"],
719+
capi_deps = [
720+
":CAPIIR",
721+
],
722+
includes = ["include"],
723+
deps = [
724+
":ShapeDialect",
725+
],
726+
)
727+
715728
mlir_c_api_cc_library(
716729
name = "CAPITarget",
717730
srcs = ["lib/CAPI/Target/LLVMIR.cpp"],
@@ -733,6 +746,19 @@ mlir_c_api_cc_library(
733746
],
734747
)
735748

749+
mlir_c_api_cc_library(
750+
name = "CAPITensor",
751+
srcs = ["lib/CAPI/Dialect/Tensor.cpp"],
752+
hdrs = ["include/mlir-c/Dialect/Tensor.h"],
753+
capi_deps = [
754+
":CAPIIR",
755+
],
756+
includes = ["include"],
757+
deps = [
758+
":TensorDialect",
759+
],
760+
)
761+
736762
mlir_c_api_cc_library(
737763
name = "CAPIGPU",
738764
srcs = [

0 commit comments

Comments
 (0)