Skip to content

Commit da3ed5b

Browse files
committed
[mlir][bzl] Add CAPI targets for Shape and Tensor.
1 parent 3a6b818 commit da3ed5b

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
@@ -711,6 +711,19 @@ mlir_c_api_cc_library(
711711
],
712712
)
713713

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

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

0 commit comments

Comments
 (0)