diff --git a/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel --- a/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel @@ -90,7 +90,6 @@ name = "BuiltinOpsPyTdFiles", srcs = [ "mlir/dialects/BuiltinOps.td", - "//mlir:include/mlir/Bindings/Python/Attributes.td", ], deps = [ "//mlir:BuiltinDialectTdFiles", @@ -134,7 +133,6 @@ name = "LinalgOpsPyTdFiles", srcs = [ "mlir/dialects/LinalgOps.td", - "//mlir:include/mlir/Bindings/Python/Attributes.td", ], deps = [ "//mlir:LinalgOpsTdFiles", @@ -198,18 +196,6 @@ # Arith dialect. ##---------------------------------------------------------------------------## -td_library( - name = "ArithOpsPyTdFiles", - srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", - ], - includes = ["../include"], - deps = [ - "//mlir:ArithOpsTdFiles", - "//mlir:OpBaseTdFiles", - ], -) - gentbl_filegroup( name = "ArithOpsPyGen", tbl_outs = [ @@ -224,7 +210,8 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/ArithOps.td", deps = [ - ":ArithOpsPyTdFiles", + "//mlir:ArithOpsTdFiles", + "//mlir:OpBaseTdFiles", ], ) @@ -243,9 +230,7 @@ td_library( name = "BufferizationOpsPyTdFiles", - srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", - ], + srcs = [], includes = ["../include"], deps = [ "//mlir:BufferizableOpInterfaceTdFiles", @@ -285,18 +270,6 @@ # Complex dialect. ##---------------------------------------------------------------------------## -td_library( - name = "ComplexOpsPyTdFiles", - srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", - ], - includes = ["../include"], - deps = [ - "//mlir:ComplexOpsTdFiles", - "//mlir:OpBaseTdFiles", - ], -) - gentbl_filegroup( name = "ComplexOpsPyGen", tbl_outs = [ @@ -311,7 +284,8 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/ComplexOps.td", deps = [ - ":ComplexOpsPyTdFiles", + "//mlir:ComplexOpsTdFiles", + "//mlir:OpBaseTdFiles", ], ) @@ -327,17 +301,6 @@ # ControlFlow dialect. ##---------------------------------------------------------------------------## -td_library( - name = "ControlFlowOpsPyTdFiles", - srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", - ], - deps = [ - "//mlir:ControlFlowOpsTdFiles", - "//mlir:OpBaseTdFiles", - ], -) - gentbl_filegroup( name = "ControlFlowOpsPyGen", tbl_outs = [ @@ -352,7 +315,8 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/ControlFlowOps.td", deps = [ - ":ControlFlowOpsPyTdFiles", + "//mlir:ControlFlowOpsTdFiles", + "//mlir:OpBaseTdFiles", ], ) @@ -368,18 +332,6 @@ # Math dialect. ##---------------------------------------------------------------------------## -td_library( - name = "MathOpsPyTdFiles", - srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", - ], - includes = ["../include"], - deps = [ - "//mlir:MathOpsTdFiles", - "//mlir:OpBaseTdFiles", - ], -) - gentbl_filegroup( name = "MathOpsPyGen", tbl_outs = [ @@ -394,7 +346,8 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/MathOps.td", deps = [ - ":MathOpsPyTdFiles", + "//mlir:MathOpsTdFiles", + "//mlir:OpBaseTdFiles", ], ) @@ -410,18 +363,6 @@ # MemRef dialect. ##---------------------------------------------------------------------------## -td_library( - name = "MemRefOpsPyTdFiles", - srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", - ], - includes = ["../include"], - deps = [ - "//mlir:MemRefOpsTdFiles", - "//mlir:OpBaseTdFiles", - ], -) - gentbl_filegroup( name = "MemRefOpsPyGen", tbl_outs = [ @@ -436,7 +377,8 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/MemRefOps.td", deps = [ - ":MemRefOpsPyTdFiles", + "//mlir:MemRefOpsTdFiles", + "//mlir:OpBaseTdFiles", ], ) @@ -453,18 +395,6 @@ # MLProgram dialect. ##---------------------------------------------------------------------------## -td_library( - name = "MLProgramOpsPyTdFiles", - srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", - ], - includes = ["../include"], - deps = [ - "//mlir:MLProgramOpsTdFiles", - "//mlir:OpBaseTdFiles", - ], -) - gentbl_filegroup( name = "MLProgramOpsPyGen", tbl_outs = [ @@ -479,7 +409,8 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/MLProgramOps.td", deps = [ - ":MLProgramOpsPyTdFiles", + "//mlir:MLProgramOpsTdFiles", + "//mlir:OpBaseTdFiles", ], ) @@ -496,18 +427,6 @@ # PDL dialect. ##---------------------------------------------------------------------------## -td_library( - name = "PDLPyTdFiles", - srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", - ], - includes = ["../include"], - deps = [ - "//mlir:OpBaseTdFiles", - "//mlir:PDLDialectTdFiles", - ], -) - gentbl_filegroup( name = "PDLPyGen", tbl_outs = [ @@ -522,7 +441,8 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/PDLOps.td", deps = [ - ":PDLPyTdFiles", + "//mlir:OpBaseTdFiles", + "//mlir:PDLDialectTdFiles", ], ) @@ -546,17 +466,6 @@ # PythonTest dialect. ##---------------------------------------------------------------------------## -td_library( - name = "PythonTestPyTdFiles", - srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", - ], - deps = [ - "//mlir:InferTypeOpInterfaceTdFiles", - "//mlir:OpBaseTdFiles", - ], -) - gentbl_filegroup( name = "PythonTestPyGen", tbl_outs = [ @@ -571,7 +480,8 @@ tblgen = "//mlir:mlir-tblgen", td_file = "//mlir/test/python:python_test_ops.td", deps = [ - ":PythonTestPyTdFiles", + "//mlir:InferTypeOpInterfaceTdFiles", + "//mlir:OpBaseTdFiles", ], ) @@ -605,18 +515,6 @@ # SCF dialect. ##---------------------------------------------------------------------------## -td_library( - name = "SCFPyTdFiles", - srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", - ], - includes = ["../include"], - deps = [ - "//mlir:OpBaseTdFiles", - "//mlir:SCFTdFiles", - ], -) - gentbl_filegroup( name = "SCFPyGen", tbl_outs = [ @@ -631,7 +529,8 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/SCFOps.td", deps = [ - ":SCFPyTdFiles", + "//mlir:OpBaseTdFiles", + "//mlir:SCFTdFiles", ], ) @@ -648,18 +547,6 @@ # Shape dialect. ##---------------------------------------------------------------------------## -td_library( - name = "ShapeOpsPyTdFiles", - srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", - ], - includes = ["../include"], - deps = [ - "//mlir:OpBaseTdFiles", - "//mlir:ShapeOpsTdFiles", - ], -) - gentbl_filegroup( name = "ShapeOpsPyGen", tbl_outs = [ @@ -674,7 +561,8 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/ShapeOps.td", deps = [ - ":ShapeOpsPyTdFiles", + "//mlir:OpBaseTdFiles", + "//mlir:ShapeOpsTdFiles", ], ) @@ -693,7 +581,6 @@ td_library( name = "FuncPyTdFiles", srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", ], deps = [ "//mlir:FuncTdFiles", @@ -715,7 +602,8 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/FuncOps.td", deps = [ - ":FuncPyTdFiles", + "//mlir:FuncTdFiles", + "//mlir:OpBaseTdFiles", ], ) @@ -735,7 +623,6 @@ td_library( name = "SparseTensorOpsPyTdFiles", srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", ], deps = [ "//mlir:OpBaseTdFiles", @@ -776,7 +663,6 @@ td_library( name = "TensorOpsPyTdFiles", srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", ], deps = [ "//mlir:OpBaseTdFiles", @@ -815,17 +701,6 @@ # Tosa dialect. ##---------------------------------------------------------------------------## -td_library( - name = "TosaOpsPyTdFiles", - srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", - ], - deps = [ - "//mlir:OpBaseTdFiles", - "//mlir:TosaDialectTdFiles", - ], -) - gentbl_filegroup( name = "TosaOpsPyGen", tbl_outs = [ @@ -840,7 +715,8 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/TosaOps.td", deps = [ - ":TosaOpsPyTdFiles", + "//mlir:OpBaseTdFiles", + "//mlir:TosaDialectTdFiles", ], ) @@ -856,19 +732,6 @@ # Transform dialect and extensions. ##---------------------------------------------------------------------------## -td_library( - name = "TransformOpsPyTdFiles", - srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", - ], - deps = [ - "//mlir:CallInterfacesTdFiles", - "//mlir:FunctionInterfacesTdFiles", - "//mlir:OpBaseTdFiles", - "//mlir:TransformDialectTdFiles", - ], -) - gentbl_filegroup( name = "TransformOpsPyGen", tbl_outs = [ @@ -883,7 +746,10 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/TransformOps.td", deps = [ - ":TransformOpsPyTdFiles", + "//mlir:CallInterfacesTdFiles", + "//mlir:FunctionInterfacesTdFiles", + "//mlir:OpBaseTdFiles", + "//mlir:TransformDialectTdFiles", ], ) @@ -902,7 +768,10 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/LinalgStructuredTransformOps.td", deps = [ - ":TransformOpsPyTdFiles", + "//mlir:CallInterfacesTdFiles", + "//mlir:FunctionInterfacesTdFiles", + "//mlir:OpBaseTdFiles", + "//mlir:TransformDialectTdFiles", "//mlir:LinalgTransformOpsTdFiles", ], ) @@ -922,7 +791,10 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/SCFLoopTransformOps.td", deps = [ - ":TransformOpsPyTdFiles", + "//mlir:CallInterfacesTdFiles", + "//mlir:FunctionInterfacesTdFiles", + "//mlir:OpBaseTdFiles", + "//mlir:TransformDialectTdFiles", "//mlir:SCFTransformOpsTdFiles", ], ) @@ -942,7 +814,10 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/TransformPDLExtensionOps.td", deps = [ - ":TransformOpsPyTdFiles", + "//mlir:CallInterfacesTdFiles", + "//mlir:FunctionInterfacesTdFiles", + "//mlir:OpBaseTdFiles", + "//mlir:TransformDialectTdFiles", "//mlir:TransformPDLExtensionTdFiles", ], ) @@ -970,18 +845,6 @@ # Vector dialect. ##---------------------------------------------------------------------------## -td_library( - name = "VectorOpsPyTdFiles", - srcs = [ - "//mlir:include/mlir/Bindings/Python/Attributes.td", - ], - includes = ["../include"], - deps = [ - "//mlir:OpBaseTdFiles", - "//mlir:VectorOpsTdFiles", - ], -) - gentbl_filegroup( name = "VectorOpsPyGen", tbl_outs = [ @@ -996,7 +859,8 @@ tblgen = "//mlir:mlir-tblgen", td_file = "mlir/dialects/VectorOps.td", deps = [ - ":VectorOpsPyTdFiles", + "//mlir:OpBaseTdFiles", + "//mlir:VectorOpsTdFiles", ], ) diff --git a/utils/bazel/llvm-project-overlay/mlir/test/mlir-tblgen/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/mlir-tblgen/BUILD.bazel --- a/utils/bazel/llvm-project-overlay/mlir/test/mlir-tblgen/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/test/mlir-tblgen/BUILD.bazel @@ -15,7 +15,6 @@ "//llvm:include/llvm/IR/Intrinsics.td", "//mlir:BuiltinDialectBytecodeTdFiles", "//mlir:SideEffectInterfacesTdFiles", - "//mlir:include/mlir/Bindings/Python/Attributes.td", "//mlir:include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td", "//mlir:include/mlir/Dialect/LLVMIR/LLVMDialect.td", "//mlir:include/mlir/Dialect/LLVMIR/LLVMInterfaces.td",