Skip to content

Commit c921444

Browse files
wecingcjdb
authored andcommitted
[bazel] Fix mlir build broken by 681ae09. (llvm#105552)
The cmake config creates two targets, `MLIRTensorMeshShardingExtensions` and `MLIRTensorAllExtensions`; but for bazel, with the `Func` dialect we only have a single `FuncExtensions`. Here I am following the `Func` dialect convension to only create a single `TensorExtensions`.
1 parent a13e438 commit c921444

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

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

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3337,25 +3337,6 @@ cc_library(
33373337
],
33383338
)
33393339

3340-
cc_library(
3341-
name = "TensorShardingInterfaceImpl",
3342-
srcs = ["lib/Dialect/Mesh/Interfaces/TensorShardingInterfaceImpl.cpp"],
3343-
hdrs = [
3344-
"include/mlir/Dialect/Mesh/IR/TensorShardingInterfaceImpl.h",
3345-
],
3346-
includes = ["include"],
3347-
deps = [
3348-
":DialectUtils",
3349-
":IR",
3350-
":MeshDialect",
3351-
":MeshShardingInterface",
3352-
":MeshShardingInterfaceIncGen",
3353-
":Support",
3354-
":TensorDialect",
3355-
"//llvm:Support",
3356-
],
3357-
)
3358-
33593340
cc_library(
33603341
name = "MeshDialect",
33613342
srcs = ["lib/Dialect/Mesh/IR/MeshOps.cpp"],
@@ -4890,6 +4871,7 @@ cc_library(
48904871
":ROCDLToLLVMIRTranslation",
48914872
":SCFTransformOps",
48924873
":SparseTensorTransformOps",
4874+
":TensorExtensions",
48934875
":TensorTransformOps",
48944876
":TransformDebugExtension",
48954877
":TransformIRDLExtension",
@@ -7600,6 +7582,7 @@ cc_library(
76007582
"lib/Dialect/Tensor/IR/ValueBoundsOpInterfaceImpl.cpp",
76017583
],
76027584
hdrs = [
7585+
"include/mlir/Dialect/Tensor/IR/ShardingInterfaceImpl.h",
76037586
"include/mlir/Dialect/Tensor/IR/Tensor.h",
76047587
"include/mlir/Dialect/Tensor/IR/ValueBoundsOpInterfaceImpl.h",
76057588
],
@@ -7669,6 +7652,23 @@ cc_library(
76697652
],
76707653
)
76717654

7655+
cc_library(
7656+
name = "TensorExtensions",
7657+
srcs = glob(["lib/Dialect/Tensor/Extensions/*.cpp"]),
7658+
hdrs = glob(["include/mlir/Dialect/Tensor/Extensions/*.h"]),
7659+
includes = ["include"],
7660+
deps = [
7661+
":DialectUtils",
7662+
":IR",
7663+
":MeshDialect",
7664+
":MeshShardingInterface",
7665+
":MeshShardingInterfaceIncGen",
7666+
":Support",
7667+
":TensorDialect",
7668+
"//llvm:Support",
7669+
],
7670+
)
7671+
76727672
cc_library(
76737673
name = "TensorUtils",
76747674
srcs = ["lib/Dialect/Tensor/Utils/Utils.cpp"],
@@ -9603,7 +9603,6 @@ cc_library(
96039603
":SparseTensorTransforms",
96049604
":TensorDialect",
96059605
":TensorInferTypeOpInterfaceImpl",
9606-
":TensorShardingInterfaceImpl",
96079606
":TensorTilingInterfaceImpl",
96089607
":TensorTransformOps",
96099608
":TensorTransforms",

0 commit comments

Comments
 (0)