1 # This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2 # See https://llvm.org/LICENSE.txt for license information.
3 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 # The MLIR "Multi-Level Intermediate Representation" Compiler Infrastructure
8 load(":tblgen.bzl", "gentbl_cc_library", "td_library")
9 load(":linalggen.bzl", "genlinalg")
14 "mlir_c_api_cc_library",
18 default_visibility = ["//visibility:public"],
19 features = ["layering_check"],
20 licenses = ["notice"],
25 "include/mlir/Dialect/LLVMIR/LLVMOps.td",
31 srcs = glob(["include/mlir-c/**/*"]), # <== i.e. match the entire tree
35 name = "ConversionPassDetail",
37 "include/mlir/Conversion/GPUToROCDL/Runtimes.h",
38 "lib/Conversion/PassDetail.h",
42 exports_files(glob(["include/**/*.td"]))
46 name = name + "IncGen",
47 strip_include_prefix = "include",
50 ["-gen-op-interface-decls"],
51 "include/mlir/IR/" + name + ".h.inc",
54 ["-gen-op-interface-defs"],
55 "include/mlir/IR/" + name + ".cpp.inc",
58 tblgen = ":mlir-tblgen",
59 td_file = "include/mlir/IR/" + name + ".td",
60 deps = [":OpBaseTdFiles"],
64 "RegionKindInterface",
70 name = "TensorEncodingIncGen",
71 strip_include_prefix = "include",
74 ["-gen-attr-interface-decls"],
75 "include/mlir/IR/TensorEncInterfaces.h.inc",
78 ["-gen-attr-interface-defs"],
79 "include/mlir/IR/TensorEncInterfaces.cpp.inc",
82 tblgen = ":mlir-tblgen",
83 td_file = "include/mlir/IR/TensorEncoding.td",
84 deps = [":TensorOpsTdFiles"],
88 name = "SubElementInterfacesTdFiles",
89 srcs = ["include/mlir/IR/SubElementInterfaces.td"],
90 includes = ["include"],
91 deps = [":OpBaseTdFiles"],
95 name = "SubElementInterfacesIncGen",
96 strip_include_prefix = "include",
99 ["-gen-attr-interface-decls"],
100 "include/mlir/IR/SubElementAttrInterfaces.h.inc",
103 ["-gen-attr-interface-defs"],
104 "include/mlir/IR/SubElementAttrInterfaces.cpp.inc",
107 ["-gen-type-interface-decls"],
108 "include/mlir/IR/SubElementTypeInterfaces.h.inc",
111 ["-gen-type-interface-defs"],
112 "include/mlir/IR/SubElementTypeInterfaces.cpp.inc",
115 tblgen = ":mlir-tblgen",
116 td_file = "include/mlir/IR/SubElementInterfaces.td",
117 deps = [":SubElementInterfacesTdFiles"],
121 name = "BuiltinDialectTdFiles",
123 "include/mlir/IR/BuiltinAttributeInterfaces.td",
124 "include/mlir/IR/BuiltinAttributes.td",
125 "include/mlir/IR/BuiltinDialect.td",
126 "include/mlir/IR/BuiltinLocationAttributes.td",
127 "include/mlir/IR/BuiltinOps.td",
128 "include/mlir/IR/BuiltinTypeInterfaces.td",
129 "include/mlir/IR/BuiltinTypes.td",
131 includes = ["include"],
133 ":CallInterfacesTdFiles",
134 ":CastInterfacesTdFiles",
135 ":DataLayoutInterfacesTdFiles",
137 ":SideEffectInterfacesTdFiles",
138 ":SubElementInterfacesTdFiles",
143 name = "BuiltinDialectIncGen",
144 strip_include_prefix = "include",
147 ["-gen-dialect-decls"],
148 "include/mlir/IR/BuiltinDialect.h.inc",
151 ["-gen-dialect-defs"],
152 "include/mlir/IR/BuiltinDialect.cpp.inc",
155 tblgen = ":mlir-tblgen",
156 td_file = "include/mlir/IR/BuiltinDialect.td",
157 deps = [":BuiltinDialectTdFiles"],
161 name = "BuiltinAttributesIncGen",
162 strip_include_prefix = "include",
165 ["--gen-attrdef-decls"],
166 "include/mlir/IR/BuiltinAttributes.h.inc",
169 ["--gen-attrdef-defs"],
170 "include/mlir/IR/BuiltinAttributes.cpp.inc",
173 tblgen = ":mlir-tblgen",
174 td_file = "include/mlir/IR/BuiltinAttributes.td",
175 deps = [":BuiltinDialectTdFiles"],
179 name = "BuiltinAttributeInterfacesIncGen",
180 strip_include_prefix = "include",
183 ["--gen-attr-interface-decls"],
184 "include/mlir/IR/BuiltinAttributeInterfaces.h.inc",
187 ["--gen-attr-interface-defs"],
188 "include/mlir/IR/BuiltinAttributeInterfaces.cpp.inc",
191 tblgen = ":mlir-tblgen",
192 td_file = "include/mlir/IR/BuiltinAttributeInterfaces.td",
193 deps = [":BuiltinDialectTdFiles"],
197 name = "BuiltinLocationAttributesIncGen",
198 strip_include_prefix = "include",
201 ["--gen-attrdef-decls"],
202 "include/mlir/IR/BuiltinLocationAttributes.h.inc",
205 ["--gen-attrdef-defs"],
206 "include/mlir/IR/BuiltinLocationAttributes.cpp.inc",
209 tblgen = ":mlir-tblgen",
210 td_file = "include/mlir/IR/BuiltinLocationAttributes.td",
211 deps = [":BuiltinDialectTdFiles"],
215 name = "BuiltinOpsIncGen",
216 strip_include_prefix = "include",
220 "include/mlir/IR/BuiltinOps.h.inc",
224 "include/mlir/IR/BuiltinOps.cpp.inc",
227 tblgen = ":mlir-tblgen",
228 td_file = "include/mlir/IR/BuiltinOps.td",
230 ":BuiltinDialectTdFiles",
231 ":FunctionInterfacesTdFiles",
236 name = "BuiltinTypesIncGen",
237 strip_include_prefix = "include",
240 ["--gen-typedef-decls"],
241 "include/mlir/IR/BuiltinTypes.h.inc",
244 ["--gen-typedef-defs"],
245 "include/mlir/IR/BuiltinTypes.cpp.inc",
248 tblgen = ":mlir-tblgen",
249 td_file = "include/mlir/IR/BuiltinTypes.td",
250 deps = [":BuiltinDialectTdFiles"],
254 name = "BuiltinTypeInterfacesIncGen",
255 strip_include_prefix = "include",
258 ["--gen-type-interface-decls"],
259 "include/mlir/IR/BuiltinTypeInterfaces.h.inc",
262 ["--gen-type-interface-defs"],
263 "include/mlir/IR/BuiltinTypeInterfaces.cpp.inc",
266 tblgen = ":mlir-tblgen",
267 td_file = "include/mlir/IR/BuiltinTypeInterfaces.td",
269 ":BuiltinDialectTdFiles",
274 name = "FunctionInterfacesTdFiles",
275 srcs = ["include/mlir/IR/FunctionInterfaces.td"],
276 includes = ["include"],
277 deps = [":OpBaseTdFiles"],
281 name = "FunctionInterfacesIncGen",
282 strip_include_prefix = "include",
285 ["-gen-op-interface-decls"],
286 "include/mlir/IR/FunctionOpInterfaces.h.inc",
289 ["-gen-op-interface-defs"],
290 "include/mlir/IR/FunctionOpInterfaces.cpp.inc",
293 tblgen = ":mlir-tblgen",
294 td_file = "include/mlir/IR/FunctionInterfaces.td",
307 "include/mlir/IR/*.h",
309 "include/mlir/Interfaces/CallInterfaces.h",
310 "include/mlir/Interfaces/CastInterfaces.h",
311 "include/mlir/Interfaces/SideEffectInterfaces.h",
312 "include/mlir/Interfaces/DataLayoutInterfaces.h",
313 "include/mlir/Interfaces/DecodeAttributesInterfaces.h",
314 "include/mlir/Interfaces/FoldInterfaces.h",
316 includes = ["include"],
318 ":BuiltinAttributeInterfacesIncGen",
319 ":BuiltinAttributesIncGen",
320 ":BuiltinDialectIncGen",
321 ":BuiltinLocationAttributesIncGen",
323 ":BuiltinTypeInterfacesIncGen",
324 ":BuiltinTypesIncGen",
325 ":CallOpInterfacesIncGen",
326 ":CastOpInterfacesIncGen",
327 ":DataLayoutInterfacesIncGen",
328 ":FunctionInterfacesIncGen",
329 ":InferTypeOpInterfaceIncGen",
330 ":OpAsmInterfaceIncGen",
331 ":RegionKindInterfaceIncGen",
332 ":SideEffectInterfacesIncGen",
333 ":SubElementInterfacesIncGen",
335 ":SymbolInterfacesIncGen",
336 ":TensorEncodingIncGen",
348 "include/mlir/Pass/*.h",
350 includes = ["include"],
358 mlir_c_api_cc_library(
361 "lib/CAPI/Dialect/Standard.cpp",
362 "lib/CAPI/IR/AffineExpr.cpp",
363 "lib/CAPI/IR/AffineMap.cpp",
364 "lib/CAPI/IR/BuiltinAttributes.cpp",
365 "lib/CAPI/IR/BuiltinTypes.cpp",
366 "lib/CAPI/IR/Diagnostics.cpp",
367 "lib/CAPI/IR/DialectHandle.cpp",
368 "lib/CAPI/IR/IR.cpp",
369 "lib/CAPI/IR/IntegerSet.cpp",
370 "lib/CAPI/IR/Pass.cpp",
371 "lib/CAPI/IR/Support.cpp",
374 "include/mlir-c/AffineExpr.h",
375 "include/mlir-c/AffineMap.h",
376 "include/mlir-c/BuiltinAttributes.h",
377 "include/mlir-c/BuiltinTypes.h",
378 "include/mlir-c/Diagnostics.h",
379 "include/mlir-c/Dialect/Standard.h",
380 "include/mlir-c/ExecutionEngine.h",
381 "include/mlir-c/IR.h",
382 "include/mlir-c/IntegerSet.h",
383 "include/mlir-c/Interfaces.h",
384 "include/mlir-c/Pass.h",
385 "include/mlir-c/Registration.h",
386 "include/mlir-c/Support.h",
387 "include/mlir/CAPI/AffineExpr.h",
388 "include/mlir/CAPI/AffineMap.h",
389 "include/mlir/CAPI/Diagnostics.h",
390 "include/mlir/CAPI/IR.h",
391 "include/mlir/CAPI/IntegerSet.h",
392 "include/mlir/CAPI/Pass.h",
393 "include/mlir/CAPI/Registration.h",
394 "include/mlir/CAPI/Support.h",
395 "include/mlir/CAPI/Utils.h",
396 "include/mlir/CAPI/Wrap.h",
404 includes = ["include"],
406 ":ConversionPassIncGen",
407 ":InferTypeOpInterface",
413 mlir_c_api_cc_library(
414 name = "CAPIInterfaces",
416 "lib/CAPI/Interfaces/Interfaces.cpp",
421 includes = ["include"],
424 ":InferTypeOpInterface",
429 mlir_c_api_cc_library(
432 "lib/CAPI/Dialect/Async.cpp",
433 "lib/CAPI/Dialect/AsyncPasses.cpp",
435 hdrs = ["include/mlir-c/Dialect/Async.h"],
442 includes = ["include"],
450 mlir_c_api_cc_library(
453 "lib/CAPI/Dialect/Linalg.cpp",
454 "lib/CAPI/Dialect/LinalgPasses.cpp",
457 "include/mlir-c/Dialect/Linalg.h",
465 includes = ["include"],
473 mlir_c_api_cc_library(
476 "lib/CAPI/Dialect/LLVM.cpp",
479 "include/mlir-c/Dialect/LLVM.h",
484 includes = ["include"],
490 mlir_c_api_cc_library(
493 "lib/CAPI/Dialect/GPU.cpp",
494 "lib/CAPI/Dialect/GPUPasses.cpp",
497 "include/mlir-c/Dialect/GPU.h",
505 includes = ["include"],
513 mlir_c_api_cc_library(
514 name = "CAPISparseTensor",
516 "lib/CAPI/Dialect/SparseTensor.cpp",
517 "lib/CAPI/Dialect/SparseTensorPasses.cpp",
520 "include/mlir-c/Dialect/SparseTensor.h",
526 ":SparseTensorPassIncGen",
528 includes = ["include"],
532 ":SparseTensorTransforms",
537 mlir_c_api_cc_library(
540 "lib/CAPI/Dialect/Quant.cpp",
543 "include/mlir-c/Dialect/Quant.h",
548 includes = ["include"],
554 mlir_c_api_cc_library(
557 "lib/CAPI/Dialect/PDL.cpp",
560 "include/mlir-c/Dialect/PDL.h",
565 includes = ["include"],
574 mlir_c_api_cc_library(
575 name = "CAPIConversion",
576 srcs = ["lib/CAPI/Conversion/Passes.cpp"],
577 hdrs = ["include/mlir-c/Conversion.h"],
582 ":ConversionPassIncGen",
584 includes = ["include"],
591 mlir_c_api_cc_library(
593 srcs = ["lib/CAPI/Debug/Debug.cpp"],
594 hdrs = ["include/mlir-c/Debug.h"],
598 includes = ["include"],
605 mlir_c_api_cc_library(
606 name = "CAPIExecutionEngine",
607 srcs = ["lib/CAPI/ExecutionEngine/ExecutionEngine.cpp"],
609 "include/mlir-c/ExecutionEngine.h",
610 "include/mlir/CAPI/ExecutionEngine.h",
618 includes = ["include"],
620 ":ExecutionEngineUtils",
621 ":LLVMToLLVMIRTranslation",
627 mlir_c_api_cc_library(
628 name = "CAPITransforms",
629 srcs = ["lib/CAPI/Transforms/Passes.cpp"],
630 hdrs = ["include/mlir-c/Transforms.h"],
635 ":TransformsPassIncGen",
637 includes = ["include"],
644 mlir_c_api_cc_library(
645 name = "CAPIRegistration",
646 srcs = ["lib/CAPI/Registration/Registration.cpp"],
647 hdrs = ["include/mlir-c/Registration.h"],
651 includes = ["include"],
653 ":AllPassesAndDialects",
654 ":LLVMToLLVMIRTranslation",
658 ##---------------------------------------------------------------------------##
659 # Sources of Python bindings.
660 #----------------------------------------------------------------------------##
663 glob(["lib/Bindings/Python/**/*.cpp"]),
666 MLIR_BINDINGS_PYTHON_HEADERS = [
667 "lib/Bindings/Python/*.h",
668 "include/mlir-c/Bindings/Python/*.h",
669 "include/mlir/Bindings/Python/*.h",
673 name = "MLIRBindingsPythonHeaders",
676 "lib/Bindings/Python",
679 "manual", # External dependency
680 "nobuildkite", # TODO(gcmn): Add support for this target
682 textual_hdrs = glob(MLIR_BINDINGS_PYTHON_HEADERS),
686 "@python_runtime//:headers",
691 name = "MLIRBindingsPythonHeadersAndDeps",
694 "lib/Bindings/Python",
697 "manual", # External dependency
698 "nobuildkite", # TODO(gcmn): Add support for this target
700 textual_hdrs = glob(MLIR_BINDINGS_PYTHON_HEADERS),
704 "@python_runtime//:headers",
708 # These flags are needed for pybind11 to work.
714 PYBIND11_FEATURES = [
715 # Cannot use header_modules (parse_headers feature fails).
716 "-use_header_modules",
719 MLIR_PYTHON_BINDINGS_SOURCES = [
720 "lib/Bindings/Python/IRAffine.cpp",
721 "lib/Bindings/Python/IRAttributes.cpp",
722 "lib/Bindings/Python/IRCore.cpp",
723 "lib/Bindings/Python/IRInterfaces.cpp",
724 "lib/Bindings/Python/IRModule.cpp",
725 "lib/Bindings/Python/IRTypes.cpp",
726 "lib/Bindings/Python/Pass.cpp",
727 "lib/Bindings/Python/PybindUtils.cpp",
731 name = "MLIRBindingsPythonCore",
732 srcs = MLIR_PYTHON_BINDINGS_SOURCES,
733 copts = PYBIND11_COPTS,
734 features = PYBIND11_FEATURES,
736 "manual", # External dependency
737 "nobuildkite", # TODO(gcmn): Add support for this target
746 ":MLIRBindingsPythonHeadersAndDeps",
749 "@python_runtime//:headers",
754 name = "MLIRBindingsPythonCoreNoCAPI",
755 srcs = MLIR_PYTHON_BINDINGS_SOURCES,
756 copts = PYBIND11_COPTS,
757 features = PYBIND11_FEATURES,
759 "manual", # External dependency
760 "nobuildkite", # TODO(gcmn): Add support for this target
767 ":CAPIRegistrationHeaders",
768 ":MLIRBindingsPythonHeaders",
771 "@python_runtime//:headers",
775 # Target that bundles together the CAPI objects needed for
776 # MLIRBindingsPythonCoreNoCAPI.
778 name = "MLIRBindingsPythonCAPIObjects",
780 "manual", # External dependency
781 "nobuildkite", # TODO(gcmn): Add support for this target
788 ":CAPIInterfacesObjects",
789 ":CAPIRegistrationObjects",
793 # Dynamic library with the MLIR Python extension.
796 srcs = ["lib/Bindings/Python/MainModule.cpp"],
797 # These flags are needed for pybind11 to work.
798 copts = PYBIND11_COPTS,
799 features = PYBIND11_FEATURES,
803 "manual", # External dependency
804 "nobuildkite", # TODO(gcmn): Add support for this target
807 ":MLIRBindingsPythonCore",
808 ":MLIRBindingsPythonHeadersAndDeps",
813 name = "_mlirDialectsLinalg.so",
814 srcs = ["lib/Bindings/Python/DialectLinalg.cpp"],
815 copts = PYBIND11_COPTS,
816 features = PYBIND11_FEATURES,
820 "manual", # External dependency
821 "nobuildkite", # TODO(gcmn): Add support for this target
827 ":MLIRBindingsPythonHeadersAndDeps",
832 name = "_mlirDialectsQuant.so",
833 srcs = ["lib/Bindings/Python/DialectQuant.cpp"],
834 copts = PYBIND11_COPTS,
835 features = PYBIND11_FEATURES,
839 "manual", # External dependency
840 "nobuildkite", # TODO(gcmn): Add support for this target
846 ":MLIRBindingsPythonHeadersAndDeps",
851 name = "_mlirDialectsSparseTensor.so",
852 srcs = ["lib/Bindings/Python/DialectSparseTensor.cpp"],
853 copts = PYBIND11_COPTS,
854 features = PYBIND11_FEATURES,
858 "manual", # External dependency
859 "nobuildkite", # TODO(gcmn): Add support for this target
865 ":MLIRBindingsPythonHeadersAndDeps",
869 # Dynamic library with the MLIR Conversions Python extension.
871 name = "_mlirConversions.so",
872 srcs = ["lib/Bindings/Python/Conversions/Conversions.cpp"],
873 copts = PYBIND11_COPTS,
874 features = PYBIND11_FEATURES,
878 "manual", # External dependency
879 "nobuildkite", # TODO(gcmn): Add support for this target
883 ":MLIRBindingsPythonHeadersAndDeps",
885 "@python_runtime//:headers",
889 # Dynamic library with the MLIR Conversions Python extension.
891 name = "_mlirExecutionEngine.so",
892 srcs = ["lib/Bindings/Python/ExecutionEngineModule.cpp"],
893 copts = PYBIND11_COPTS,
894 features = PYBIND11_FEATURES,
898 "manual", # External dependency
899 "nobuildkite", # TODO(gcmn): Add support for this target
902 ":CAPIExecutionEngine",
903 ":MLIRBindingsPythonHeadersAndDeps",
905 "@python_runtime//:headers",
909 # Dynamic library with the MLIR Transforms Python extension.
911 name = "_mlirTransforms.so",
912 srcs = ["lib/Bindings/Python/Transforms/Transforms.cpp"],
913 copts = PYBIND11_COPTS,
914 features = PYBIND11_FEATURES,
918 "manual", # External dependency
919 "nobuildkite", # TODO(gcmn): Add support for this target
923 ":MLIRBindingsPythonHeadersAndDeps",
925 "@python_runtime//:headers",
929 # Dynamic library with the MLIR Linalg dialect+passes Python extension.
931 name = "_mlirLinalgPasses.so",
932 srcs = ["lib/Bindings/Python/LinalgPasses.cpp"],
933 copts = PYBIND11_COPTS,
934 features = PYBIND11_FEATURES,
938 "manual", # External dependency
939 "nobuildkite", # TODO(gcmn): Add support for this target
943 ":MLIRBindingsPythonHeadersAndDeps",
945 "@python_runtime//:headers",
949 ##---------------------------------------------------------------------------##
952 name = "OpBaseTdFiles",
954 "include/mlir/IR/EnumAttr.td",
955 "include/mlir/IR/OpAsmInterface.td",
956 "include/mlir/IR/OpBase.td",
957 "include/mlir/IR/RegionKindInterface.td",
958 "include/mlir/IR/SymbolInterfaces.td",
959 "include/mlir/IR/TensorEncoding.td",
961 includes = ["include"],
965 name = "CallInterfacesTdFiles",
966 srcs = ["include/mlir/Interfaces/CallInterfaces.td"],
967 includes = ["include"],
968 deps = [":OpBaseTdFiles"],
972 name = "CastInterfacesTdFiles",
973 srcs = ["include/mlir/Interfaces/CastInterfaces.td"],
974 includes = ["include"],
975 deps = [":OpBaseTdFiles"],
979 name = "ControlFlowInterfacesTdFiles",
980 srcs = ["include/mlir/Interfaces/ControlFlowInterfaces.td"],
981 includes = ["include"],
982 deps = [":OpBaseTdFiles"],
986 name = "CopyOpInterfaceTdFiles",
987 srcs = ["include/mlir/Interfaces/CopyOpInterface.td"],
988 includes = ["include"],
989 deps = [":OpBaseTdFiles"],
993 name = "DerivedAttributeOpInterfaceTdFiles",
994 srcs = ["include/mlir/Interfaces/DerivedAttributeOpInterface.td"],
995 includes = ["include"],
996 deps = [":OpBaseTdFiles"],
1000 name = "InferTypeOpInterfaceTdFiles",
1001 srcs = ["include/mlir/Interfaces/InferTypeOpInterface.td"],
1002 includes = ["include"],
1003 deps = [":OpBaseTdFiles"],
1007 name = "LoopLikeInterfaceTdFiles",
1008 srcs = ["include/mlir/Interfaces/LoopLikeInterface.td"],
1009 includes = ["include"],
1010 deps = [":OpBaseTdFiles"],
1014 name = "SideEffectInterfacesTdFiles",
1016 "include/mlir/Interfaces/SideEffectInterfaceBase.td",
1017 "include/mlir/Interfaces/SideEffectInterfaces.td",
1019 includes = ["include"],
1020 deps = [":OpBaseTdFiles"],
1024 name = "SideEffectTdFiles",
1025 actual = ":SideEffectInterfacesTdFiles",
1029 name = "TilingInterfaceTdFiles",
1030 srcs = ["include/mlir/Interfaces/TilingInterface.td"],
1031 includes = ["include"],
1032 deps = [":OpBaseTdFiles"],
1036 name = "VectorInterfacesTdFiles",
1037 srcs = ["include/mlir/Interfaces/VectorInterfaces.td"],
1038 includes = ["include"],
1039 deps = [":OpBaseTdFiles"],
1043 name = "ViewLikeInterfaceTdFiles",
1044 srcs = ["include/mlir/Interfaces/ViewLikeInterface.td"],
1045 includes = ["include"],
1046 deps = [":OpBaseTdFiles"],
1050 name = "ReducerTdFiles",
1051 srcs = ["include/mlir/Reducer/Passes.td"],
1052 includes = ["include"],
1053 deps = [":OpBaseTdFiles"],
1056 ##---------------------------------------------------------------------------##
1058 ##---------------------------------------------------------------------------##
1061 name = "PassBaseTdFiles",
1062 srcs = ["include/mlir/Pass/PassBase.td"],
1063 includes = ["include"],
1067 name = "RewritePassBaseTdFiles",
1068 srcs = ["include/mlir/Rewrite/PassUtil.td"],
1069 includes = ["include"],
1073 name = "AffineOpsTdFiles",
1075 "include/mlir/Dialect/Affine/IR/AffineMemoryOpInterfaces.td",
1076 "include/mlir/Dialect/Affine/IR/AffineOps.td",
1078 includes = ["include"],
1080 ":ArithmeticOpsTdFiles",
1081 ":LoopLikeInterfaceTdFiles",
1083 ":SideEffectInterfacesTdFiles",
1089 name = "AffineOpsIncGen",
1090 strip_include_prefix = "include",
1094 "include/mlir/Dialect/Affine/IR/AffineOps.h.inc",
1098 "include/mlir/Dialect/Affine/IR/AffineOps.cpp.inc",
1102 "-gen-dialect-decls",
1105 "include/mlir/Dialect/Affine/IR/AffineOpsDialect.h.inc",
1109 "-gen-dialect-defs",
1112 "include/mlir/Dialect/Affine/IR/AffineOpsDialect.cpp.inc",
1115 tblgen = ":mlir-tblgen",
1116 td_file = "include/mlir/Dialect/Affine/IR/AffineOps.td",
1117 deps = [":AffineOpsTdFiles"],
1121 name = "AffineMemoryOpInterfacesIncGen",
1122 strip_include_prefix = "include",
1125 ["-gen-op-interface-decls"],
1126 "include/mlir/Dialect/Affine/IR/AffineMemoryOpInterfaces.h.inc",
1129 ["-gen-op-interface-defs"],
1130 "include/mlir/Dialect/Affine/IR/AffineMemoryOpInterfaces.cpp.inc",
1133 tblgen = ":mlir-tblgen",
1134 td_file = "include/mlir/Dialect/Affine/IR/AffineMemoryOpInterfaces.td",
1135 deps = [":AffineOpsTdFiles"],
1138 ##---------------------------------------------------------------------------##
1140 ##---------------------------------------------------------------------------##
1143 name = "EmitCTdFiles",
1145 "include/mlir/Dialect/EmitC/IR/EmitC.td",
1146 "include/mlir/Dialect/EmitC/IR/EmitCAttributes.td",
1147 "include/mlir/Dialect/EmitC/IR/EmitCBase.td",
1148 "include/mlir/Dialect/EmitC/IR/EmitCTypes.td",
1150 includes = ["include"],
1153 ":SideEffectInterfacesTdFiles",
1158 name = "EmitCAttributesIncGen",
1159 strip_include_prefix = "include",
1162 ["--gen-attrdef-decls"],
1163 "include/mlir/Dialect/EmitC/IR/EmitCAttributes.h.inc",
1166 ["--gen-attrdef-defs"],
1167 "include/mlir/Dialect/EmitC/IR/EmitCAttributes.cpp.inc",
1170 tblgen = ":mlir-tblgen",
1171 td_file = "include/mlir/Dialect/EmitC/IR/EmitCAttributes.td",
1172 deps = [":EmitCTdFiles"],
1176 name = "EmitCOpsIncGen",
1177 strip_include_prefix = "include",
1180 ["-gen-dialect-decls"],
1181 "include/mlir/Dialect/EmitC/IR/EmitCDialect.h.inc",
1184 ["-gen-dialect-defs"],
1185 "include/mlir/Dialect/EmitC/IR/EmitCDialect.cpp.inc",
1189 "include/mlir/Dialect/EmitC/IR/EmitC.h.inc",
1193 "include/mlir/Dialect/EmitC/IR/EmitC.cpp.inc",
1196 ["-gen-typedef-decls"],
1197 "include/mlir/Dialect/EmitC/IR/EmitCTypes.h.inc",
1200 ["-gen-typedef-defs"],
1201 "include/mlir/Dialect/EmitC/IR/EmitCTypes.cpp.inc",
1204 tblgen = ":mlir-tblgen",
1205 td_file = "include/mlir/Dialect/EmitC/IR/EmitC.td",
1206 deps = [":EmitCTdFiles"],
1212 "lib/Target/Cpp/*.cpp",
1213 "lib/Target/Cpp/*.h",
1215 hdrs = glob(["include/mlir/Target/Cpp/*.h"]),
1217 ":ArithmeticDialect",
1229 ##---------------------------------------------------------------------------##
1231 ##---------------------------------------------------------------------------##
1234 name = "AsyncOpsTdFiles",
1236 "include/mlir/Dialect/Async/IR/AsyncDialect.td",
1237 "include/mlir/Dialect/Async/IR/AsyncOps.td",
1238 "include/mlir/Dialect/Async/IR/AsyncTypes.td",
1240 includes = ["include"],
1242 ":ControlFlowInterfacesTdFiles",
1244 ":SideEffectInterfacesTdFiles",
1249 name = "AsyncOpsIncGen",
1250 strip_include_prefix = "include",
1254 "include/mlir/Dialect/Async/IR/AsyncOps.h.inc",
1258 "include/mlir/Dialect/Async/IR/AsyncOps.cpp.inc",
1261 ["-gen-dialect-decls"],
1262 "include/mlir/Dialect/Async/IR/AsyncOpsDialect.h.inc",
1265 ["-gen-dialect-defs"],
1266 "include/mlir/Dialect/Async/IR/AsyncOpsDialect.cpp.inc",
1269 ["-gen-typedef-decls"],
1270 "include/mlir/Dialect/Async/IR/AsyncOpsTypes.h.inc",
1273 ["-gen-typedef-defs"],
1274 "include/mlir/Dialect/Async/IR/AsyncOpsTypes.cpp.inc",
1277 tblgen = ":mlir-tblgen",
1278 td_file = "include/mlir/Dialect/Async/IR/AsyncOps.td",
1279 deps = [":AsyncOpsTdFiles"],
1283 name = "AsyncPassIncGen",
1284 strip_include_prefix = "include",
1291 "include/mlir/Dialect/Async/Passes.h.inc",
1295 "-gen-pass-capi-header",
1298 "include/mlir/Dialect/Async/Passes.capi.h.inc",
1302 "-gen-pass-capi-impl",
1305 "include/mlir/Dialect/Async/Passes.capi.cpp.inc",
1308 tblgen = ":mlir-tblgen",
1309 td_file = "include/mlir/Dialect/Async/Passes.td",
1310 deps = [":PassBaseTdFiles"],
1313 ##---------------------------------------------------------------------------##
1315 ##---------------------------------------------------------------------------##
1318 name = "ArmNeonTdFiles",
1319 srcs = ["include/mlir/Dialect/ArmNeon/ArmNeon.td"],
1320 includes = ["include"],
1324 ":SideEffectInterfacesTdFiles",
1329 name = "ArmNeonIncGen",
1330 strip_include_prefix = "include",
1334 "-gen-dialect-decls",
1335 "-dialect=arm_neon",
1337 "include/mlir/Dialect/ArmNeon/ArmNeonDialect.h.inc",
1341 "-gen-dialect-defs",
1342 "-dialect=arm_neon",
1344 "include/mlir/Dialect/ArmNeon/ArmNeonDialect.cpp.inc",
1348 "include/mlir/Dialect/ArmNeon/ArmNeon.h.inc",
1352 "include/mlir/Dialect/ArmNeon/ArmNeon.cpp.inc",
1356 "g3doc/Dialects/ArmNeon/ArmNeon.md",
1359 tblgen = ":mlir-tblgen",
1360 td_file = "include/mlir/Dialect/ArmNeon/ArmNeon.td",
1361 deps = [":ArmNeonTdFiles"],
1366 srcs = ["lib/Dialect/ArmNeon/IR/ArmNeonDialect.cpp"],
1367 hdrs = ["include/mlir/Dialect/ArmNeon/ArmNeonDialect.h"],
1368 includes = ["include"],
1372 ":SideEffectInterfaces",
1380 name = "ArmNeonConversionIncGen",
1381 strip_include_prefix = "include",
1384 ["-gen-llvmir-conversions"],
1385 "include/mlir/Dialect/ArmNeon/ArmNeonConversions.inc",
1388 tblgen = ":mlir-tblgen",
1389 td_file = "include/mlir/Dialect/ArmNeon/ArmNeon.td",
1390 deps = [":ArmNeonTdFiles"],
1394 name = "ArmNeon2dToIntr",
1396 "lib/Conversion/ArmNeon2dToIntr/*.cpp",
1397 "lib/Conversion/ArmNeon2dToIntr/*.h",
1398 ]) + [":ConversionPassDetail"],
1400 "include/mlir/Conversion/ArmNeon2dToIntr/*.h",
1402 includes = ["include"],
1405 ":ConversionPassIncGen",
1418 ##---------------------------------------------------------------------------##
1420 ##---------------------------------------------------------------------------##
1423 name = "ArmSVETdFiles",
1425 "include/mlir/Dialect/ArmSVE/ArmSVE.td",
1427 includes = ["include"],
1429 ":ArithmeticOpsTdFiles",
1432 ":SideEffectInterfacesTdFiles",
1438 name = "ArmSVEIncGen",
1439 strip_include_prefix = "include",
1443 "include/mlir/Dialect/ArmSVE/ArmSVE.h.inc",
1447 "include/mlir/Dialect/ArmSVE/ArmSVE.cpp.inc",
1450 ["-gen-typedef-decls"],
1451 "include/mlir/Dialect/ArmSVE/ArmSVETypes.h.inc",
1454 ["-gen-typedef-defs"],
1455 "include/mlir/Dialect/ArmSVE/ArmSVETypes.cpp.inc",
1459 "-gen-dialect-decls",
1462 "include/mlir/Dialect/ArmSVE/ArmSVEDialect.h.inc",
1466 "-gen-dialect-defs",
1469 "include/mlir/Dialect/ArmSVE/ArmSVEDialect.cpp.inc",
1472 tblgen = ":mlir-tblgen",
1473 td_file = "include/mlir/Dialect/ArmSVE/ArmSVE.td",
1474 deps = [":ArmSVETdFiles"],
1479 srcs = ["lib/Dialect/ArmSVE/IR/ArmSVEDialect.cpp"],
1480 hdrs = ["include/mlir/Dialect/ArmSVE/ArmSVEDialect.h"],
1481 includes = ["include"],
1486 ":SideEffectInterfaces",
1495 name = "ArmSVETransforms",
1496 srcs = glob(["lib/Dialect/ArmSVE/Transforms/*.cpp"]),
1497 hdrs = ["include/mlir/Dialect/ArmSVE/Transforms.h"],
1498 includes = ["include"],
1502 ":LLVMCommonConversion",
1513 name = "ArmSVEConversionIncGen",
1514 strip_include_prefix = "include",
1517 ["-gen-llvmir-conversions"],
1518 "include/mlir/Dialect/ArmSVE/ArmSVEConversions.inc",
1521 tblgen = ":mlir-tblgen",
1522 td_file = "include/mlir/Dialect/ArmSVE/ArmSVE.td",
1523 deps = [":ArmSVETdFiles"],
1526 ##---------------------------------------------------------------------------##
1528 ##---------------------------------------------------------------------------##
1531 name = "AMXTdFiles",
1532 srcs = ["include/mlir/Dialect/AMX/AMX.td"],
1533 includes = ["include"],
1536 ":SideEffectInterfacesTdFiles",
1542 strip_include_prefix = "include",
1546 "-gen-dialect-decls",
1549 "include/mlir/Dialect/AMX/AMXDialect.h.inc",
1553 "-gen-dialect-defs",
1556 "include/mlir/Dialect/AMX/AMXDialect.cpp.inc",
1560 "include/mlir/Dialect/AMX/AMX.h.inc",
1564 "include/mlir/Dialect/AMX/AMX.cpp.inc",
1568 "g3doc/Dialects/AMX/AMX.md",
1571 tblgen = ":mlir-tblgen",
1572 td_file = "include/mlir/Dialect/AMX/AMX.td",
1573 deps = [":AMXTdFiles"],
1578 srcs = ["lib/Dialect/AMX/IR/AMXDialect.cpp"],
1579 hdrs = ["include/mlir/Dialect/AMX/AMXDialect.h"],
1580 includes = ["include"],
1585 ":SideEffectInterfaces",
1592 name = "AMXTransforms",
1593 srcs = glob(["lib/Dialect/AMX/Transforms/*.cpp"]),
1594 hdrs = ["include/mlir/Dialect/AMX/Transforms.h"],
1595 includes = ["include"],
1599 ":LLVMCommonConversion",
1608 name = "AMXConversionIncGen",
1609 strip_include_prefix = "include",
1612 ["-gen-llvmir-conversions"],
1613 "include/mlir/Dialect/AMX/AMXConversions.inc",
1616 tblgen = ":mlir-tblgen",
1617 td_file = "include/mlir/Dialect/AMX/AMX.td",
1618 deps = [":AMXTdFiles"],
1621 ##---------------------------------------------------------------------------##
1622 # X86Vector dialect.
1623 ##---------------------------------------------------------------------------##
1626 name = "X86VectorTdFiles",
1627 srcs = ["include/mlir/Dialect/X86Vector/X86Vector.td"],
1628 includes = ["include"],
1630 ":InferTypeOpInterfaceTdFiles",
1632 ":SideEffectInterfacesTdFiles",
1637 name = "X86VectorIncGen",
1638 strip_include_prefix = "include",
1642 "-gen-dialect-decls",
1643 "-dialect=x86vector",
1645 "include/mlir/Dialect/X86Vector/X86VectorDialect.h.inc",
1649 "-gen-dialect-defs",
1650 "-dialect=x86vector",
1652 "include/mlir/Dialect/X86Vector/X86VectorDialect.cpp.inc",
1656 "include/mlir/Dialect/X86Vector/X86Vector.h.inc",
1660 "include/mlir/Dialect/X86Vector/X86Vector.cpp.inc",
1664 "g3doc/Dialects/X86Vector/X86Vector.md",
1667 tblgen = ":mlir-tblgen",
1668 td_file = "include/mlir/Dialect/X86Vector/X86Vector.td",
1669 deps = [":X86VectorTdFiles"],
1674 srcs = ["lib/Dialect/X86Vector/IR/X86VectorDialect.cpp"],
1675 hdrs = ["include/mlir/Dialect/X86Vector/X86VectorDialect.h"],
1676 includes = ["include"],
1679 ":InferTypeOpInterface",
1681 ":SideEffectInterfaces",
1689 name = "X86VectorTransforms",
1690 srcs = glob(["lib/Dialect/X86Vector/Transforms/*.cpp"]),
1691 hdrs = ["include/mlir/Dialect/X86Vector/Transforms.h"],
1692 includes = ["include"],
1694 ":ArithmeticDialect",
1696 ":LLVMCommonConversion",
1707 name = "X86VectorConversionIncGen",
1708 strip_include_prefix = "include",
1711 ["-gen-llvmir-conversions"],
1712 "include/mlir/Dialect/X86Vector/X86VectorConversions.inc",
1715 tblgen = ":mlir-tblgen",
1716 td_file = "include/mlir/Dialect/X86Vector/X86Vector.td",
1717 deps = [":X86VectorTdFiles"],
1720 ##---------------------------------------------------------------------------##
1722 ##---------------------------------------------------------------------------##
1725 name = "SCFTdFiles",
1726 srcs = ["include/mlir/Dialect/SCF/SCFOps.td"],
1727 includes = ["include"],
1729 ":ControlFlowInterfacesTdFiles",
1730 ":LoopLikeInterfaceTdFiles",
1731 ":SideEffectInterfacesTdFiles",
1737 strip_include_prefix = "include",
1741 "include/mlir/Dialect/SCF/SCFOps.h.inc",
1745 "include/mlir/Dialect/SCF/SCFOps.cpp.inc",
1748 ["-gen-dialect-decls"],
1749 "include/mlir/Dialect/SCF/SCFOpsDialect.h.inc",
1752 ["-gen-dialect-defs"],
1753 "include/mlir/Dialect/SCF/SCFOpsDialect.cpp.inc",
1756 tblgen = ":mlir-tblgen",
1757 td_file = "include/mlir/Dialect/SCF/SCFOps.td",
1758 deps = [":SCFTdFiles"],
1762 name = "SCFPassIncGen",
1763 strip_include_prefix = "include",
1770 "include/mlir/Dialect/SCF/Passes.h.inc",
1773 tblgen = ":mlir-tblgen",
1774 td_file = "include/mlir/Dialect/SCF/Passes.td",
1775 deps = [":PassBaseTdFiles"],
1779 name = "SCFTransforms",
1781 "lib/Dialect/SCF/Transforms/*.cpp",
1782 "lib/Dialect/SCF/Transforms/*.h",
1785 "include/mlir/Dialect/SCF/Passes.h",
1786 "include/mlir/Dialect/SCF/Transforms.h",
1788 includes = ["include"],
1793 ":ArithmeticDialect",
1794 ":BufferizationDialect",
1795 ":BufferizationTransforms",
1810 ##---------------------------------------------------------------------------##
1811 # SparseTensor dialect.
1812 ##---------------------------------------------------------------------------##
1815 name = "SparseTensorTdFiles",
1817 "include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.td",
1818 "include/mlir/Dialect/SparseTensor/IR/SparseTensorBase.td",
1819 "include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td",
1821 includes = ["include"],
1823 ":InferTypeOpInterfaceTdFiles",
1825 ":SideEffectInterfacesTdFiles",
1830 name = "SparseTensorAttrDefsIncGen",
1831 strip_include_prefix = "include",
1834 ["--gen-attrdef-decls"],
1835 "include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.h.inc",
1838 ["--gen-attrdef-defs"],
1839 "include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.cpp.inc",
1842 tblgen = ":mlir-tblgen",
1843 td_file = "include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.td",
1844 deps = [":SparseTensorTdFiles"],
1848 name = "SparseTensorOpsIncGen",
1849 strip_include_prefix = "include",
1853 "-gen-dialect-decls",
1854 "-dialect=sparse_tensor",
1856 "include/mlir/Dialect/SparseTensor/IR/SparseTensorOpsDialect.h.inc",
1860 "-gen-dialect-defs",
1861 "-dialect=sparse_tensor",
1863 "include/mlir/Dialect/SparseTensor/IR/SparseTensorOpsDialect.cpp.inc",
1867 "include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.h.inc",
1871 "include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.cpp.inc",
1875 "g3doc/Dialects/SparseTensor/SparseTensor.md",
1878 tblgen = ":mlir-tblgen",
1879 td_file = "include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td",
1880 deps = [":SparseTensorTdFiles"],
1884 name = "SparseTensorPassIncGen",
1885 strip_include_prefix = "include",
1890 "-name=SparseTensor",
1892 "include/mlir/Dialect/SparseTensor/Transforms/Passes.h.inc",
1896 "-gen-pass-capi-header",
1897 "--prefix=SparseTensor",
1899 "include/mlir/Dialect/SparseTensor/Transforms/Passes.capi.h.inc",
1903 "-gen-pass-capi-impl",
1904 "--prefix=SparseTensor",
1906 "include/mlir/Dialect/SparseTensor/Transforms/Passes.capi.cpp.inc",
1909 tblgen = ":mlir-tblgen",
1910 td_file = "include/mlir/Dialect/SparseTensor/Transforms/Passes.td",
1911 deps = [":PassBaseTdFiles"],
1915 name = "SparseTensor",
1917 "lib/Dialect/SparseTensor/IR/*.cpp",
1919 hdrs = ["include/mlir/Dialect/SparseTensor/IR/SparseTensor.h"],
1920 includes = ["include"],
1922 ":ArithmeticDialect",
1924 ":InferTypeOpInterface",
1925 ":SideEffectInterfaces",
1926 ":SparseTensorAttrDefsIncGen",
1927 ":SparseTensorOpsIncGen",
1934 name = "SparseTensorUtils",
1935 srcs = glob(["lib/Dialect/SparseTensor/Utils/*.cpp"]),
1936 hdrs = glob(["include/mlir/Dialect/SparseTensor/Utils/*.h"]),
1937 includes = ["include"],
1939 ":ArithmeticDialect",
1948 name = "SparseTensorTransforms",
1950 "lib/Dialect/SparseTensor/Transforms/*.cpp",
1951 "lib/Dialect/SparseTensor/Transforms/*.h",
1954 "include/mlir/Dialect/SparseTensor/Transforms/Passes.h",
1955 "include/mlir/ExecutionEngine/SparseTensorUtils.h",
1957 includes = ["include"],
1960 ":ArithmeticDialect",
1961 ":BufferizationDialect",
1965 ":LinalgTransforms",
1970 ":SparseTensorPassIncGen",
1971 ":SparseTensorUtils",
1973 ":StandardOpsTransforms",
1982 name = "StdOpsTdFiles",
1984 "include/mlir/Dialect/StandardOps/IR/Ops.td",
1986 includes = ["include"],
1988 ":CallInterfacesTdFiles",
1989 ":CastInterfacesTdFiles",
1990 ":ControlFlowInterfacesTdFiles",
1991 ":InferTypeOpInterfaceTdFiles",
1993 ":SideEffectInterfacesTdFiles",
1994 ":VectorInterfacesTdFiles",
1999 name = "StandardOpsIncGen",
2000 strip_include_prefix = "include",
2004 "include/mlir/Dialect/StandardOps/IR/Ops.h.inc",
2008 "include/mlir/Dialect/StandardOps/IR/Ops.cpp.inc",
2011 ["-gen-dialect-decls"],
2012 "include/mlir/Dialect/StandardOps/IR/OpsDialect.h.inc",
2015 ["-gen-dialect-defs"],
2016 "include/mlir/Dialect/StandardOps/IR/OpsDialect.cpp.inc",
2019 ["-gen-enum-decls"],
2020 "include/mlir/Dialect/StandardOps/IR/OpsEnums.h.inc",
2024 "include/mlir/Dialect/StandardOps/IR/OpsEnums.cpp.inc",
2027 tblgen = ":mlir-tblgen",
2028 td_file = "include/mlir/Dialect/StandardOps/IR/Ops.td",
2029 deps = [":StdOpsTdFiles"],
2035 "lib/Dialect/*.cpp",
2039 "include/mlir/Dialect/*.h",
2041 includes = ["include"],
2049 name = "DialectUtils",
2051 "lib/Dialect/Utils/*.cpp",
2052 "lib/Dialect/Utils/*.h",
2055 "include/mlir/Dialect/Utils/*.h",
2057 includes = ["include"],
2069 "lib/Dialect/Affine/IR/*.cpp",
2070 "lib/Dialect/Affine/IR/*.h",
2072 ) + ["include/mlir/Transforms/InliningUtils.h"],
2074 "include/mlir/Dialect/Affine/IR/*.h",
2076 includes = ["include"],
2078 ":AffineMemoryOpInterfacesIncGen",
2080 ":ArithmeticDialect",
2082 ":LoopLikeInterface",
2084 ":SideEffectInterfaces",
2095 "lib/Dialect/EmitC/IR/*.cpp",
2098 "include/mlir/Dialect/EmitC/IR/*.h",
2100 includes = ["include"],
2103 ":EmitCAttributesIncGen",
2106 ":SideEffectInterfaces",
2114 "lib/Dialect/Async/IR/*.cpp",
2117 "include/mlir/Dialect/Async/IR/*.h",
2119 includes = ["include"],
2122 ":ControlFlowInterfaces",
2125 ":SideEffectInterfaces",
2133 name = "AsyncTransforms",
2135 "lib/Dialect/Async/Transforms/*.cpp",
2136 "lib/Dialect/Async/Transforms/*.h",
2139 "include/mlir/Dialect/Async/Passes.h",
2140 "include/mlir/Dialect/Async/Transforms.h",
2142 includes = ["include"],
2145 ":ArithmeticDialect",
2156 ":TransformsPassIncGen",
2163 name = "AffineAnalysis",
2165 "lib/Dialect/Affine/Analysis/*.cpp",
2166 "lib/Dialect/Affine/Analysis/*.h",
2168 hdrs = glob(["include/mlir/Dialect/Affine/Analysis/*.h"]),
2169 includes = ["include"],
2173 ":ArithmeticDialect",
2182 name = "AffineUtils",
2185 "lib/Dialect/Affine/Utils/*.cpp",
2186 "lib/Dialect/Affine/Utils/*.h",
2189 hdrs = ["include/mlir/Dialect/Affine/Utils.h"],
2190 includes = ["include"],
2202 name = "AffinePassIncGen",
2203 strip_include_prefix = "include",
2210 "include/mlir/Dialect/Affine/Passes.h.inc",
2213 tblgen = ":mlir-tblgen",
2214 td_file = "include/mlir/Dialect/Affine/Passes.td",
2215 deps = [":PassBaseTdFiles"],
2219 name = "AffineTransforms",
2221 "lib/Dialect/Affine/Transforms/*.cpp",
2222 "lib/Dialect/Affine/Transforms/*.h",
2224 hdrs = ["include/mlir/Dialect/Affine/Passes.h"],
2225 includes = ["include"],
2229 ":AffinePassIncGen",
2232 ":ArithmeticDialect",
2246 name = "ConversionPassIncGen",
2247 strip_include_prefix = "include",
2254 "include/mlir/Conversion/Passes.h.inc",
2258 "-gen-pass-capi-header",
2259 "--prefix=Conversion",
2261 "include/mlir/Conversion/Passes.capi.h.inc",
2265 "-gen-pass-capi-impl",
2266 "--prefix=Conversion",
2268 "include/mlir/Conversion/Passes.capi.cpp.inc",
2271 tblgen = ":mlir-tblgen",
2272 td_file = "include/mlir/Conversion/Passes.td",
2273 deps = [":PassBaseTdFiles"],
2277 name = "ConversionPasses",
2278 hdrs = ["include/mlir/Conversion/Passes.h"],
2279 includes = ["include"],
2281 ":AffineToStandard",
2282 ":ArithmeticToLLVM",
2283 ":ArithmeticToSPIRV",
2286 ":BufferizationToMemRef",
2288 ":ComplexToStandard",
2289 ":ConversionPassIncGen",
2290 ":GPUToGPURuntimeTransforms",
2291 ":GPUToNVVMTransforms",
2292 ":GPUToROCDLTransforms",
2294 ":GPUToVulkanTransforms",
2297 ":LinalgToStandard",
2307 ":ReconcileUnrealizedCasts",
2328 name = "AsyncToLLVM",
2330 "lib/Conversion/AsyncToLLVM/*.cpp",
2331 "lib/Conversion/AsyncToLLVM/*.h",
2332 ]) + [":ConversionPassDetail"],
2333 hdrs = glob(["include/mlir/Conversion/AsyncToLLVM/*.h"]),
2334 includes = ["include"],
2336 ":ArithmeticDialect",
2338 ":ConversionPassIncGen",
2340 ":LLVMCommonConversion",
2344 ":StandardOpsTransforms",
2353 name = "AffineToStandard",
2355 "lib/Conversion/AffineToStandard/*.cpp",
2356 "lib/Conversion/AffineToStandard/*.h",
2357 ]) + [":ConversionPassDetail"],
2358 hdrs = glob(["include/mlir/Conversion/AffineToStandard/*.h"]),
2359 includes = ["include"],
2362 ":ArithmeticDialect",
2363 ":ConversionPassIncGen",
2376 name = "AffineToStandardTransforms",
2377 actual = "AffineToStandard",
2380 # SDBM dialect only contains attribute components that can be constructed given
2381 # a dialect object, so whenever it is used it must also be registered. Therefore
2382 # we don't split out the registration library for it.
2386 "lib/Dialect/SDBM/*.cpp",
2387 "lib/Dialect/SDBM/*.h",
2390 "include/mlir/Dialect/SDBM/*.h",
2392 includes = ["include"],
2401 name = "SCFDialect",
2404 "lib/Dialect/SCF/*.cpp",
2405 "lib/Dialect/SCF/*.h",
2409 "include/mlir/Dialect/SCF/*.h",
2411 includes = ["include"],
2413 ":ArithmeticDialect",
2414 ":BufferizationDialect",
2415 ":ControlFlowInterfaces",
2417 ":LoopLikeInterface",
2430 name = "LinalgInterfaces",
2431 srcs = ["lib/Dialect/Linalg/IR/LinalgInterfaces.cpp"],
2432 hdrs = ["include/mlir/Dialect/Linalg/IR/LinalgInterfaces.h"],
2433 includes = ["include"],
2436 ":ArithmeticDialect",
2439 ":InferTypeOpInterface",
2440 ":LinalgInterfacesIncGen",
2441 ":LinalgStructuredOpsIncGen",
2444 ":ViewLikeInterface",
2450 name = "DataLayoutInterfaces",
2451 srcs = ["lib/Interfaces/DataLayoutInterfaces.cpp"],
2452 hdrs = ["include/mlir/Interfaces/DataLayoutInterfaces.h"],
2453 includes = ["include"],
2455 ":DataLayoutInterfacesIncGen",
2462 name = "LoopLikeInterface",
2463 srcs = ["lib/Interfaces/LoopLikeInterface.cpp"],
2464 hdrs = ["include/mlir/Interfaces/LoopLikeInterface.h"],
2465 includes = ["include"],
2468 ":LoopLikeInterfaceIncGen",
2473 name = "VectorInterfaces",
2474 srcs = ["lib/Interfaces/VectorInterfaces.cpp"],
2475 hdrs = ["include/mlir/Interfaces/VectorInterfaces.h"],
2476 includes = ["include"],
2479 ":VectorInterfacesIncGen",
2484 name = "ViewLikeInterface",
2485 srcs = ["lib/Interfaces/ViewLikeInterface.cpp"],
2486 hdrs = ["include/mlir/Interfaces/ViewLikeInterface.h"],
2487 includes = ["include"],
2491 ":ViewLikeInterfaceIncGen",
2496 name = "CopyOpInterface",
2497 srcs = ["lib/Interfaces/CopyOpInterface.cpp"],
2498 hdrs = ["include/mlir/Interfaces/CopyOpInterface.h"],
2499 includes = ["include"],
2501 ":CopyOpInterfaceIncGen",
2507 name = "ShapeOpsTdFiles",
2509 "include/mlir/Dialect/Shape/IR/ShapeBase.td",
2510 "include/mlir/Dialect/Shape/IR/ShapeOps.td",
2512 includes = ["include"],
2514 ":ControlFlowInterfacesTdFiles",
2515 ":InferTypeOpInterfaceTdFiles",
2516 ":SideEffectInterfacesTdFiles",
2521 name = "ShapeOpsIncGen",
2522 strip_include_prefix = "include",
2526 "include/mlir/Dialect/Shape/IR/ShapeOps.h.inc",
2530 "include/mlir/Dialect/Shape/IR/ShapeOps.cpp.inc",
2533 ["-gen-dialect-decls"],
2534 "include/mlir/Dialect/Shape/IR/ShapeOpsDialect.h.inc",
2537 ["-gen-dialect-defs"],
2538 "include/mlir/Dialect/Shape/IR/ShapeOpsDialect.cpp.inc",
2541 tblgen = ":mlir-tblgen",
2542 td_file = "include/mlir/Dialect/Shape/IR/ShapeOps.td",
2543 deps = [":ShapeOpsTdFiles"],
2547 name = "MLIRShapeCanonicalizationIncGen",
2548 strip_include_prefix = "include/mlir/Dialect/Shape/IR",
2552 "include/mlir/Dialect/Shape/IR/ShapeCanonicalization.inc",
2555 tblgen = ":mlir-tblgen",
2556 td_file = "lib/Dialect/Shape/IR/ShapeCanonicalization.td",
2560 ":TensorOpsTdFiles",
2566 srcs = glob(["lib/Dialect/Shape/IR/*.cpp"]),
2567 hdrs = ["include/mlir/Dialect/Shape/IR/Shape.h"],
2568 includes = ["include"],
2570 ":ArithmeticDialect",
2571 ":CallOpInterfaces",
2573 ":ControlFlowInterfaces",
2576 ":InferTypeOpInterface",
2577 ":MLIRShapeCanonicalizationIncGen",
2579 ":SideEffectInterfaces",
2588 name = "ShapeToStandardGen",
2589 strip_include_prefix = "lib/Conversion/ShapeToStandard",
2593 "lib/Conversion/ShapeToStandard/ShapeToStandard.cpp.inc",
2596 tblgen = ":mlir-tblgen",
2597 td_file = "lib/Conversion/ShapeToStandard/ShapeToStandard.td",
2598 deps = [":ShapeOpsTdFiles"],
2602 name = "ShapeToStandard",
2604 "lib/Conversion/ShapeToStandard/*.cpp",
2605 "lib/Conversion/ShapeToStandard/*.h",
2606 ]) + [":ConversionPassDetail"],
2607 hdrs = ["include/mlir/Conversion/ShapeToStandard/ShapeToStandard.h"],
2608 includes = ["include"],
2610 ":ArithmeticDialect",
2611 ":ConversionPassIncGen",
2617 ":ShapeToStandardGen",
2627 name = "ShapeTransformsPassIncGen",
2628 strip_include_prefix = "include",
2634 "include/mlir/Dialect/Shape/Transforms/Passes.h.inc",
2636 tblgen = ":mlir-tblgen",
2637 td_file = "include/mlir/Dialect/Shape/Transforms/Passes.td",
2638 deps = [":PassBaseTdFiles"],
2642 name = "ShapeTransforms",
2644 "lib/Dialect/Shape/Transforms/*.cpp",
2645 "lib/Dialect/Shape/Transforms/*.h",
2647 hdrs = ["include/mlir/Dialect/Shape/Transforms/Passes.h"],
2648 includes = ["include"],
2650 ":ArithmeticDialect",
2651 ":BufferizationDialect",
2652 ":BufferizationTransforms",
2657 ":ShapeTransformsPassIncGen",
2664 name = "StandardOps",
2667 "lib/Dialect/StandardOps/IR/*.cpp",
2668 "lib/Dialect/StandardOps/IR/*.h",
2669 "lib/Dialect/StandardOps/Utils/*.cpp",
2673 "include/mlir/Dialect/StandardOps/IR/*.h",
2674 "include/mlir/Dialect/StandardOps/Utils/*.h",
2675 ]) + ["include/mlir/Transforms/InliningUtils.h"],
2676 includes = ["include"],
2678 ":ArithmeticDialect",
2679 ":CallOpInterfaces",
2680 ":CastOpInterfaces",
2682 ":ControlFlowInterfaces",
2684 ":InferTypeOpInterface",
2685 ":SideEffectInterfaces",
2686 ":StandardOpsIncGen",
2688 ":VectorInterfaces",
2694 name = "StandardOpsTransformsPassIncGen",
2695 strip_include_prefix = "include",
2701 "include/mlir/Dialect/StandardOps/Transforms/Passes.h.inc",
2703 tblgen = ":mlir-tblgen",
2704 td_file = "include/mlir/Dialect/StandardOps/Transforms/Passes.td",
2705 deps = [":PassBaseTdFiles"],
2709 name = "StandardOpsTransforms",
2711 "lib/Dialect/StandardOps/Transforms/*.cpp",
2712 "lib/Dialect/StandardOps/Transforms/*.h",
2714 hdrs = glob(["include/mlir/Dialect/StandardOps/Transforms/*.h"]),
2715 includes = ["include"],
2718 ":ArithmeticDialect",
2719 ":ArithmeticTransforms",
2720 ":BufferizationDialect",
2721 ":BufferizationTransforms",
2723 ":MemRefDialect", # TODO: Remove dependency on MemRef dialect
2727 ":StandardOpsTransformsPassIncGen",
2739 "lib/Dialect/Vector/*.cpp",
2740 "lib/Dialect/Vector/*.h",
2744 "include/mlir/Dialect/Vector/*.h",
2746 includes = ["include"],
2752 ":ArithmeticDialect",
2753 ":DataLayoutInterfaces",
2759 ":SideEffectInterfaces",
2763 ":VectorInterfaces",
2765 ":ViewLikeInterface",
2774 "lib/Support/*.cpp",
2778 # TODO(jpienaar): Move this out, else Support depends on Analysis/
2779 "lib/Support/MlirOptMain.cpp",
2783 ["include/mlir/Support/*.h"],
2784 exclude = ["include/mlir/Support/MlirOptMain.h"],
2786 includes = ["include"],
2787 deps = ["//llvm:Support"],
2791 name = "MlirLspServerLib",
2794 "lib/Tools/mlir-lsp-server/*.cpp",
2795 "lib/Tools/mlir-lsp-server/*.h",
2796 "lib/Tools/mlir-lsp-server/lsp/*.cpp",
2797 "lib/Tools/mlir-lsp-server/lsp/*.h",
2801 ["include/mlir/Tools/mlir-lsp-server/*.h"],
2803 includes = ["include"],
2813 name = "ParserTokenKinds",
2814 # strip_include_prefix does not apply to textual_hdrs.
2815 hdrs = ["lib/Parser/TokenKinds.def"],
2816 strip_include_prefix = "lib/Parser",
2817 textual_hdrs = ["lib/Parser/TokenKinds.def"],
2827 "include/mlir/Parser/*.h",
2829 "include/mlir/Parser.h",
2831 includes = ["include"],
2834 ":ParserTokenKinds",
2841 name = "LLVMDialectInterfaceIncGen",
2842 strip_include_prefix = "include",
2845 ["-gen-op-interface-decls"],
2846 "include/mlir/Dialect/LLVMIR/LLVMOpsInterfaces.h.inc",
2849 ["-gen-op-interface-defs"],
2850 "include/mlir/Dialect/LLVMIR/LLVMOpsInterfaces.cpp.inc",
2853 ["-gen-type-interface-decls"],
2854 "include/mlir/Dialect/LLVMIR/LLVMTypeInterfaces.h.inc",
2857 ["-gen-type-interface-defs"],
2858 "include/mlir/Dialect/LLVMIR/LLVMTypeInterfaces.cpp.inc",
2861 tblgen = ":mlir-tblgen",
2862 td_file = "include/mlir/Dialect/LLVMIR/LLVMOpsInterfaces.td",
2863 deps = [":LLVMOpsTdFiles"],
2867 name = "LLVMDialectAttributesIncGen",
2868 strip_include_prefix = "include",
2871 ["--gen-attrdef-decls"],
2872 "include/mlir/Dialect/LLVMIR/LLVMOpsAttrDefs.h.inc",
2875 ["--gen-attrdef-defs"],
2876 "include/mlir/Dialect/LLVMIR/LLVMOpsAttrDefs.cpp.inc",
2879 tblgen = ":mlir-tblgen",
2880 td_file = "include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td",
2881 deps = [":LLVMOpsTdFiles"],
2885 name = "LLVMDialect",
2888 "lib/Dialect/LLVMIR/IR/*.cpp",
2889 "lib/Dialect/LLVMIR/IR/*.h",
2892 "lib/Dialect/LLVMIR/IR/*AMX*.cpp",
2893 "lib/Dialect/LLVMIR/IR/*AMX*.h",
2894 "lib/Dialect/LLVMIR/IR/*ArmSVE*.cpp",
2895 "lib/Dialect/LLVMIR/IR/*ArmSVE*.h",
2896 "lib/Dialect/LLVMIR/IR/NVVM*.cpp",
2897 "lib/Dialect/LLVMIR/IR/NVVM*.h",
2898 "lib/Dialect/LLVMIR/IR/ROCDL*.cpp",
2899 "lib/Dialect/LLVMIR/IR/ROCDL*.h",
2900 "lib/Dialect/LLVMIR/IR/*X86Vector*.cpp",
2901 "lib/Dialect/LLVMIR/IR/*X86Vector*.h",
2905 ["include/mlir/Dialect/LLVMIR/*.h"],
2907 "include/mlir/Dialect/LLVMIR/*AMX*.h",
2908 "include/mlir/Dialect/LLVMIR/*ArmSVE*.h",
2909 "include/mlir/Dialect/LLVMIR/NVVM*.h",
2910 "include/mlir/Dialect/LLVMIR/ROCDL*.h",
2911 "include/mlir/Dialect/LLVMIR/*X86Vector*.h",
2914 includes = ["include"],
2916 ":ControlFlowInterfaces",
2917 ":DataLayoutInterfaces",
2919 ":InferTypeOpInterface",
2920 ":LLVMDialectAttributesIncGen",
2921 ":LLVMDialectInterfaceIncGen",
2923 ":SideEffectInterfaces",
2934 name = "LLVMPassIncGen",
2935 strip_include_prefix = "include",
2942 "include/mlir/Dialect/LLVMIR/Transforms/Passes.h.inc",
2945 tblgen = ":mlir-tblgen",
2946 td_file = "include/mlir/Dialect/LLVMIR/Transforms/Passes.td",
2947 deps = [":PassBaseTdFiles"],
2951 name = "LLVMIRTransforms",
2953 "lib/Dialect/LLVMIR/Transforms/*.cpp",
2954 "lib/Dialect/LLVMIR/Transforms/*.h",
2956 hdrs = glob(["include/mlir/Dialect/LLVMIR/Transforms/*.h"]),
2957 includes = ["include"],
2967 name = "GPUOpsTdFiles",
2969 "include/mlir/Dialect/GPU/GPUBase.td",
2970 "include/mlir/Dialect/GPU/GPUOps.td",
2972 includes = ["include"],
2974 ":DLTIDialectTdFiles",
2975 ":DataLayoutInterfacesTdFiles",
2976 ":FunctionInterfacesTdFiles",
2979 ":SideEffectInterfacesTdFiles",
2984 name = "ParallelLoopMapperAttrGen",
2985 strip_include_prefix = "include",
2988 ["-gen-struct-attr-decls"],
2989 "include/mlir/Dialect/GPU/ParallelLoopMapperAttr.h.inc",
2992 ["-gen-struct-attr-defs"],
2993 "include/mlir/Dialect/GPU/ParallelLoopMapperAttr.cpp.inc",
2996 ["-gen-enum-decls"],
2997 "include/mlir/Dialect/GPU/ParallelLoopMapperEnums.h.inc",
3001 "include/mlir/Dialect/GPU/ParallelLoopMapperEnums.cpp.inc",
3004 tblgen = ":mlir-tblgen",
3005 td_file = "include/mlir/Dialect/GPU/ParallelLoopMapperAttr.td",
3006 deps = [":GPUOpsTdFiles"],
3010 name = "GPUBaseIncGen",
3011 strip_include_prefix = "include",
3014 ["-gen-op-interface-decls"],
3015 "include/mlir/Dialect/GPU/GPUOpInterfaces.h.inc",
3018 ["-gen-op-interface-defs"],
3019 "include/mlir/Dialect/GPU/GPUOpInterfaces.cpp.inc",
3022 tblgen = ":mlir-tblgen",
3023 td_file = "include/mlir/Dialect/GPU/GPUBase.td",
3024 deps = [":GPUOpsTdFiles"],
3028 name = "GPUOpsIncGen",
3029 strip_include_prefix = "include",
3033 "-gen-dialect-decls",
3036 "include/mlir/Dialect/GPU/GPUOpsDialect.h.inc",
3040 "-gen-dialect-defs",
3043 "include/mlir/Dialect/GPU/GPUOpsDialect.cpp.inc",
3047 "include/mlir/Dialect/GPU/GPUOps.h.inc",
3051 "include/mlir/Dialect/GPU/GPUOps.cpp.inc",
3054 ["-gen-enum-decls"],
3055 "include/mlir/Dialect/GPU/GPUOpsEnums.h.inc",
3059 "include/mlir/Dialect/GPU/GPUOpsEnums.cpp.inc",
3062 ["-gen-attrdef-decls"],
3063 "include/mlir/Dialect/GPU/GPUOpsAttributes.h.inc",
3066 ["-gen-attrdef-defs"],
3067 "include/mlir/Dialect/GPU/GPUOpsAttributes.cpp.inc",
3070 tblgen = ":mlir-tblgen",
3071 td_file = "include/mlir/Dialect/GPU/GPUOps.td",
3073 ":DLTIDialectTdFiles",
3079 name = "GPUDialect",
3082 "lib/Dialect/GPU/IR/*.cpp",
3083 "lib/Dialect/GPU/IR/*.h",
3086 hdrs = ["include/mlir/Dialect/GPU/GPUDialect.h"],
3087 includes = ["include"],
3089 ":ArithmeticDialect",
3094 ":InferTypeOpInterface",
3097 ":SideEffectInterfaces",
3105 name = "GPUPassIncGen",
3106 strip_include_prefix = "include",
3113 "include/mlir/Dialect/GPU/Passes.h.inc",
3117 "-gen-pass-capi-header",
3120 "include/mlir/Dialect/GPU/Passes.capi.h.inc",
3124 "-gen-pass-capi-impl",
3127 "include/mlir/Dialect/GPU/Passes.capi.cpp.inc",
3130 tblgen = ":mlir-tblgen",
3131 td_file = "include/mlir/Dialect/GPU/Passes.td",
3132 deps = [":PassBaseTdFiles"],
3136 name = "GPUTransforms",
3139 "lib/Dialect/GPU/Transforms/*.cpp",
3140 "lib/Dialect/GPU/Transforms/*.h",
3144 "include/mlir/Dialect/GPU/MemoryPromotion.h",
3145 "include/mlir/Dialect/GPU/ParallelLoopMapper.h",
3146 "include/mlir/Dialect/GPU/Passes.h",
3147 "include/mlir/Dialect/GPU/Utils.h",
3149 defines = if_cuda_available(["MLIR_GPU_TO_CUBIN_PASS_ENABLE"]),
3150 includes = ["include"],
3152 ":ArithmeticDialect",
3159 ":ParallelLoopMapperAttrGen",
3162 ":ROCDLToLLVMIRTranslation",
3167 ":ToLLVMIRTranslation",
3168 ":LLVMToLLVMIRTranslation",
3173 ] + if_cuda_available([
3174 # Dependencies for SerializeToCubin.cpp with
3175 # -DMLIR_GPU_TO_CUBIN_PASS_ENABLE
3176 ":NVVMToLLVMIRTranslation",
3177 "//llvm:NVPTXCodeGen",
3178 "@cuda//:cuda_headers",
3184 name = "LLVMOpsTdFiles",
3186 "include/mlir/Dialect/LLVMIR/LLVMOpBase.td",
3187 "include/mlir/Dialect/LLVMIR/LLVMOps.td",
3188 "include/mlir/Dialect/LLVMIR/LLVMOpsInterfaces.td",
3190 includes = ["include"],
3192 ":ControlFlowInterfacesTdFiles",
3193 ":FunctionInterfacesTdFiles",
3194 ":InferTypeOpInterfaceTdFiles",
3196 ":SideEffectInterfacesTdFiles",
3201 name = "GPUCommonTransforms",
3203 "lib/Conversion/GPUCommon/GPUOpsLowering.cpp",
3206 "lib/Conversion/GPUCommon/GPUOpsLowering.h",
3207 "lib/Conversion/GPUCommon/IndexIntrinsicsOpLowering.h",
3208 "lib/Conversion/GPUCommon/OpToFuncCallLowering.h",
3213 ":LLVMCommonConversion",
3221 name = "GPUToNVVMGen",
3222 strip_include_prefix = "lib/Conversion/GPUToNVVM",
3226 "lib/Conversion/GPUToNVVM/GPUToNVVM.cpp.inc",
3229 tblgen = ":mlir-tblgen",
3230 td_file = "lib/Conversion/GPUToNVVM/GPUToNVVM.td",
3238 name = "GPUToNVVMTransforms",
3240 "lib/Conversion/GPUToNVVM/*.cpp",
3241 "lib/Conversion/GPUToNVVM/*.h",
3242 ]) + [":ConversionPassDetail"],
3244 "include/mlir/Conversion/GPUToNVVM/*.h",
3246 includes = ["include"],
3248 ":ArithmeticDialect",
3249 ":ArithmeticToLLVM",
3250 ":ConversionPassIncGen",
3251 ":GPUCommonTransforms",
3256 ":LLVMCommonConversion",
3270 name = "VectorToROCDL",
3272 "lib/Conversion/VectorToROCDL/VectorToROCDL.cpp",
3273 ":ConversionPassDetail",
3275 hdrs = ["include/mlir/Conversion/VectorToROCDL/VectorToROCDL.h"],
3276 includes = ["include"],
3278 ":ConversionPassIncGen",
3280 ":LLVMCommonConversion",
3293 name = "VectorToSPIRV",
3295 "lib/Conversion/VectorToSPIRV/*.cpp",
3296 "lib/Conversion/VectorToSPIRV/*.h",
3297 ]) + [":ConversionPassDetail"],
3299 "include/mlir/Conversion/VectorToSPIRV/*.h",
3301 includes = ["include"],
3303 ":ConversionPassIncGen",
3313 name = "GPUToROCDLTGen",
3314 strip_include_prefix = "lib/Conversion/GPUToROCDL",
3318 "lib/Conversion/GPUToROCDL/GPUToROCDL.cpp.inc",
3321 tblgen = ":mlir-tblgen",
3322 td_file = "lib/Conversion/GPUToROCDL/GPUToROCDL.td",
3330 name = "GPUToROCDLTransforms",
3332 "lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp",
3333 ":ConversionPassDetail",
3335 hdrs = ["include/mlir/Conversion/GPUToROCDL/GPUToROCDLPass.h"],
3336 includes = ["include"],
3338 ":ArithmeticToLLVM",
3339 ":ConversionPassIncGen",
3340 ":GPUCommonTransforms",
3344 ":LLVMCommonConversion",
3360 name = "GPUToVulkanTransforms",
3362 "lib/Conversion/GPUToVulkan/ConvertGPULaunchFuncToVulkanLaunchFunc.cpp",
3363 "lib/Conversion/GPUToVulkan/ConvertLaunchFuncToVulkanCalls.cpp",
3364 ":ConversionPassDetail",
3366 hdrs = ["include/mlir/Conversion/GPUToVulkan/ConvertGPUToVulkanPass.h"],
3367 includes = ["include"],
3369 ":ConversionPassIncGen",
3375 ":SPIRVSerialization",
3383 name = "GPUToGPURuntimeTransforms",
3385 "lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp",
3386 ":ConversionPassDetail",
3388 hdrs = ["include/mlir/Conversion/GPUCommon/GPUCommonPass.h"],
3389 includes = ["include"],
3391 ":ArithmeticToLLVM",
3394 ":ConversionPassIncGen",
3398 ":LLVMCommonConversion",
3401 ":NVVMToLLVMIRTranslation",
3411 name = "GPUToSPIRV",
3413 "lib/Conversion/GPUToSPIRV/*.cpp",
3414 "lib/Conversion/GPUToSPIRV/*.h",
3415 ]) + [":ConversionPassDetail"],
3417 "include/mlir/Conversion/GPUToSPIRV/*.h",
3421 "lib/Conversions/GPUToSPIRV",
3424 ":ArithmeticToSPIRV",
3425 ":ConversionPassIncGen",
3443 name = "PDLToPDLInterp",
3445 "lib/Conversion/PDLToPDLInterp/*.cpp",
3446 "lib/Conversion/PDLToPDLInterp/*.h",
3447 ]) + [":ConversionPassDetail"],
3448 hdrs = ["include/mlir/Conversion/PDLToPDLInterp/PDLToPDLInterp.h"],
3449 includes = ["include"],
3451 ":ConversionPassIncGen",
3453 ":InferTypeOpInterface",
3455 ":PDLInterpDialect",
3463 name = "SPIRVToLLVM",
3465 "lib/Conversion/SPIRVToLLVM/*.cpp",
3466 ]) + [":ConversionPassDetail"],
3468 "include/mlir/Conversion/SPIRVToLLVM/*.h",
3470 includes = ["include"],
3472 ":ArithmeticToLLVM",
3473 ":ConversionPassIncGen",
3476 ":LLVMCommonConversion",
3491 name = "LLVMOpsIncGen",
3492 strip_include_prefix = "include",
3496 "include/mlir/Dialect/LLVMIR/LLVMOps.h.inc",
3500 "include/mlir/Dialect/LLVMIR/LLVMOps.cpp.inc",
3503 ["-gen-dialect-decls"],
3504 "include/mlir/Dialect/LLVMIR/LLVMOpsDialect.h.inc",
3507 ["-gen-dialect-defs"],
3508 "include/mlir/Dialect/LLVMIR/LLVMOpsDialect.cpp.inc",
3511 ["-gen-enum-decls"],
3512 "include/mlir/Dialect/LLVMIR/LLVMOpsEnums.h.inc",
3516 "include/mlir/Dialect/LLVMIR/LLVMOpsEnums.cpp.inc",
3519 tblgen = ":mlir-tblgen",
3520 td_file = "include/mlir/Dialect/LLVMIR/LLVMOps.td",
3521 deps = [":LLVMOpsTdFiles"],
3525 name = "LLVMConversionIncGen",
3526 strip_include_prefix = "include",
3529 ["-gen-llvmir-conversions"],
3530 "include/mlir/Dialect/LLVMIR/LLVMConversions.inc",
3533 ["-gen-enum-to-llvmir-conversions"],
3534 "include/mlir/Dialect/LLVMIR/LLVMConversionEnumsToLLVM.inc",
3537 ["-gen-enum-from-llvmir-conversions"],
3538 "include/mlir/Dialect/LLVMIR/LLVMConversionEnumsFromLLVM.inc",
3541 tblgen = ":mlir-tblgen",
3542 td_file = "include/mlir/Dialect/LLVMIR/LLVMOps.td",
3543 deps = [":LLVMOpsTdFiles"],
3547 name = "NVVMDialect",
3548 srcs = ["lib/Dialect/LLVMIR/IR/NVVMDialect.cpp"],
3549 hdrs = ["include/mlir/Dialect/LLVMIR/NVVMDialect.h"],
3550 includes = ["include"],
3555 ":SideEffectInterfaces",
3565 name = "NVVMOpsTdFiles",
3566 srcs = ["include/mlir/Dialect/LLVMIR/NVVMOps.td"],
3567 includes = ["include"],
3571 ":SideEffectInterfacesTdFiles",
3576 name = "NVVMOpsIncGen",
3577 strip_include_prefix = "include",
3581 "include/mlir/Dialect/LLVMIR/NVVMOps.h.inc",
3585 "include/mlir/Dialect/LLVMIR/NVVMOps.cpp.inc",
3589 "-gen-dialect-decls",
3592 "include/mlir/Dialect/LLVMIR/NVVMOpsDialect.h.inc",
3596 "-gen-dialect-defs",
3599 "include/mlir/Dialect/LLVMIR/NVVMOpsDialect.cpp.inc",
3602 ["-gen-enum-decls"],
3603 "include/mlir/Dialect/LLVMIR/NVVMOpsEnums.h.inc",
3607 "include/mlir/Dialect/LLVMIR/NVVMOpsEnums.cpp.inc",
3611 "-gen-attrdef-decls",
3612 "-attrdefs-dialect=nvvm",
3614 "include/mlir/Dialect/LLVMIR/NVVMOpsAttributes.h.inc",
3618 "-gen-attrdef-defs",
3619 "-attrdefs-dialect=nvvm",
3621 "include/mlir/Dialect/LLVMIR/NVVMOpsAttributes.cpp.inc",
3624 tblgen = ":mlir-tblgen",
3625 td_file = "include/mlir/Dialect/LLVMIR/NVVMOps.td",
3626 deps = [":NVVMOpsTdFiles"],
3630 name = "NVVMConversionIncGen",
3631 strip_include_prefix = "include",
3634 ["-gen-llvmir-conversions"],
3635 "include/mlir/Dialect/LLVMIR/NVVMConversions.inc",
3638 tblgen = ":mlir-tblgen",
3639 td_file = "include/mlir/Dialect/LLVMIR/NVVMOps.td",
3640 deps = [":NVVMOpsTdFiles"],
3644 name = "ROCDLDialect",
3645 srcs = ["lib/Dialect/LLVMIR/IR/ROCDLDialect.cpp"],
3646 hdrs = ["include/mlir/Dialect/LLVMIR/ROCDLDialect.h"],
3647 includes = ["include"],
3652 ":SideEffectInterfaces",
3662 name = "ROCDLOpsTdFiles",
3663 srcs = ["include/mlir/Dialect/LLVMIR/ROCDLOps.td"],
3664 includes = ["include"],
3668 ":SideEffectInterfacesTdFiles",
3673 name = "ROCDLOpsIncGen",
3674 strip_include_prefix = "include",
3678 "include/mlir/Dialect/LLVMIR/ROCDLOps.h.inc",
3682 "include/mlir/Dialect/LLVMIR/ROCDLOps.cpp.inc",
3686 "-gen-dialect-decls",
3689 "include/mlir/Dialect/LLVMIR/ROCDLOpsDialect.h.inc",
3693 "-gen-dialect-defs",
3696 "include/mlir/Dialect/LLVMIR/ROCDLOpsDialect.cpp.inc",
3699 tblgen = ":mlir-tblgen",
3700 td_file = "include/mlir/Dialect/LLVMIR/ROCDLOps.td",
3701 deps = [":ROCDLOpsTdFiles"],
3705 name = "ROCDLConversionIncGen",
3706 strip_include_prefix = "include",
3709 ["-gen-llvmir-conversions"],
3710 "include/mlir/Dialect/LLVMIR/ROCDLConversions.inc",
3713 tblgen = ":mlir-tblgen",
3714 td_file = "include/mlir/Dialect/LLVMIR/ROCDLOps.td",
3715 deps = [":ROCDLOpsTdFiles"],
3719 name = "PDLDialect",
3721 "lib/Dialect/PDL/IR/*.cpp",
3722 "lib/Dialect/PDL/IR/*.h",
3725 "include/mlir/Dialect/PDL/IR/*.h",
3727 includes = ["include"],
3730 ":InferTypeOpInterface",
3740 name = "PDLDialectTdFiles",
3742 "include/mlir/Dialect/PDL/IR/PDLDialect.td",
3743 "include/mlir/Dialect/PDL/IR/PDLOps.td",
3744 "include/mlir/Dialect/PDL/IR/PDLTypes.td",
3748 ":SideEffectInterfacesTdFiles",
3753 name = "PDLOpsIncGen",
3754 strip_include_prefix = "include",
3758 "include/mlir/Dialect/PDL/IR/PDLOps.h.inc",
3762 "include/mlir/Dialect/PDL/IR/PDLOps.cpp.inc",
3765 ["-gen-dialect-decls"],
3766 "include/mlir/Dialect/PDL/IR/PDLOpsDialect.h.inc",
3769 ["-gen-dialect-defs"],
3770 "include/mlir/Dialect/PDL/IR/PDLOpsDialect.cpp.inc",
3773 tblgen = ":mlir-tblgen",
3774 td_file = "include/mlir/Dialect/PDL/IR/PDLOps.td",
3775 deps = [":PDLDialectTdFiles"],
3779 name = "PDLTypesIncGen",
3780 strip_include_prefix = "include",
3783 ["-gen-typedef-decls"],
3784 "include/mlir/Dialect/PDL/IR/PDLOpsTypes.h.inc",
3787 ["-gen-typedef-defs"],
3788 "include/mlir/Dialect/PDL/IR/PDLOpsTypes.cpp.inc",
3791 tblgen = ":mlir-tblgen",
3792 td_file = "include/mlir/Dialect/PDL/IR/PDLTypes.td",
3793 deps = [":PDLDialectTdFiles"],
3797 name = "PDLInterpDialect",
3799 "lib/Dialect/PDLInterp/IR/*.cpp",
3800 "lib/Dialect/PDLInterp/IR/*.h",
3803 "include/mlir/Dialect/PDLInterp/IR/*.h",
3805 includes = ["include"],
3808 ":InferTypeOpInterface",
3810 ":PDLInterpOpsIncGen",
3818 name = "PDLInterpOpsTdFiles",
3819 srcs = ["include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.td"],
3820 includes = ["include"],
3823 ":PDLDialectTdFiles",
3824 ":SideEffectInterfacesTdFiles",
3829 name = "PDLInterpOpsIncGen",
3830 strip_include_prefix = "include",
3834 "include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.h.inc",
3838 "include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.cpp.inc",
3842 "-gen-dialect-decls",
3843 "-dialect=pdl_interp",
3845 "include/mlir/Dialect/PDLInterp/IR/PDLInterpOpsDialect.h.inc",
3849 "-gen-dialect-defs",
3850 "-dialect=pdl_interp",
3852 "include/mlir/Dialect/PDLInterp/IR/PDLInterpOpsDialect.cpp.inc",
3855 tblgen = ":mlir-tblgen",
3856 td_file = "include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.td",
3857 deps = [":PDLInterpOpsTdFiles"],
3861 name = "SPIRVOpsTdFiles",
3862 srcs = glob(["include/mlir/Dialect/SPIRV/IR/*.td"]),
3863 includes = ["include"],
3865 ":CallInterfacesTdFiles",
3866 ":ControlFlowInterfacesTdFiles",
3867 ":FunctionInterfacesTdFiles",
3868 ":InferTypeOpInterfaceTdFiles",
3870 ":SideEffectInterfacesTdFiles",
3875 name = "SPIRVOpsIncGen",
3876 strip_include_prefix = "include",
3880 "include/mlir/Dialect/SPIRV/IR/SPIRVOps.h.inc",
3884 "include/mlir/Dialect/SPIRV/IR/SPIRVOps.cpp.inc",
3887 ["-gen-dialect-decls"],
3888 "include/mlir/Dialect/SPIRV/IR/SPIRVOpsDialect.h.inc",
3891 ["-gen-dialect-defs"],
3892 "include/mlir/Dialect/SPIRV/IR/SPIRVOpsDialect.cpp.inc",
3896 "g3doc/Dialects/SPIRV/SPIRVOps.md",
3899 ["-gen-enum-decls"],
3900 "include/mlir/Dialect/SPIRV/IR/SPIRVEnums.h.inc",
3904 "include/mlir/Dialect/SPIRV/IR/SPIRVEnums.cpp.inc",
3907 ["-gen-spirv-enum-avail-decls"],
3908 "include/mlir/Dialect/SPIRV/IR/SPIRVEnumAvailability.h.inc",
3911 ["-gen-spirv-enum-avail-defs"],
3912 "include/mlir/Dialect/SPIRV/IR/SPIRVEnumAvailability.cpp.inc",
3915 ["-gen-spirv-capability-implication"],
3916 "include/mlir/Dialect/SPIRV/IR/SPIRVCapabilityImplication.inc",
3919 tblgen = ":mlir-tblgen",
3920 td_file = "include/mlir/Dialect/SPIRV/IR/SPIRVOps.td",
3921 deps = [":SPIRVOpsTdFiles"],
3925 name = "SPIRVCanonicalizationIncGen",
3926 strip_include_prefix = "lib/Dialect/SPIRV/IR",
3930 "lib/Dialect/SPIRV/IR/SPIRVCanonicalization.inc",
3933 tblgen = ":mlir-tblgen",
3934 td_file = "lib/Dialect/SPIRV/IR/SPIRVCanonicalization.td",
3935 deps = [":SPIRVOpsTdFiles"],
3939 name = "SPIRVAvailabilityIncGen",
3940 strip_include_prefix = "include",
3943 ["-gen-avail-interface-decls"],
3944 "include/mlir/Dialect/SPIRV/IR/SPIRVAvailability.h.inc",
3947 ["-gen-avail-interface-defs"],
3948 "include/mlir/Dialect/SPIRV/IR/SPIRVAvailability.cpp.inc",
3951 ["-gen-spirv-avail-impls"],
3952 "include/mlir/Dialect/SPIRV/IR/SPIRVOpAvailabilityImpl.inc",
3955 tblgen = ":mlir-tblgen",
3956 td_file = "include/mlir/Dialect/SPIRV/IR/SPIRVOps.td",
3957 deps = [":SPIRVOpsTdFiles"],
3961 name = "SPIRVTargetAndABIStructGen",
3964 ["-gen-struct-attr-decls"],
3965 "include/mlir/Dialect/SPIRV/IR/TargetAndABI.h.inc",
3968 ["-gen-struct-attr-defs"],
3969 "include/mlir/Dialect/SPIRV/IR/TargetAndABI.cpp.inc",
3972 tblgen = ":mlir-tblgen",
3973 td_file = "include/mlir/Dialect/SPIRV/IR/TargetAndABI.td",
3974 deps = [":SPIRVOpsTdFiles"],
3978 name = "SPIRVAttrUtilsGen",
3979 strip_include_prefix = "include",
3982 ["-gen-spirv-attr-utils"],
3983 "include/mlir/Dialect/SPIRV/IR/SPIRVAttrUtils.inc",
3986 tblgen = ":mlir-tblgen",
3987 td_file = "include/mlir/Dialect/SPIRV/IR/SPIRVBase.td",
3988 deps = [":SPIRVOpsTdFiles"],
3992 name = "SPIRVSerializationGen",
3993 strip_include_prefix = "include",
3996 ["-gen-spirv-serialization"],
3997 "include/mlir/Dialect/SPIRV/IR/SPIRVSerialization.inc",
4000 tblgen = ":mlir-tblgen",
4001 td_file = "include/mlir/Dialect/SPIRV/IR/SPIRVOps.td",
4002 deps = [":SPIRVOpsTdFiles"],
4006 name = "SPIRVDialect",
4008 "lib/Dialect/SPIRV/IR/*.cpp",
4009 "lib/Dialect/SPIRV/IR/*.h",
4010 ]) + ["include/mlir/Transforms/InliningUtils.h"],
4012 "include/mlir/Dialect/SPIRV/IR/*.h",
4014 includes = ["include"],
4017 ":ControlFlowInterfaces",
4019 ":InferTypeOpInterface",
4022 ":SPIRVAttrUtilsGen",
4023 ":SPIRVAvailabilityIncGen",
4024 ":SPIRVCanonicalizationIncGen",
4026 ":SPIRVSerializationGen",
4027 ":SPIRVTargetAndABIStructGen",
4028 ":SideEffectInterfaces",
4036 name = "SPIRVPassIncGen",
4037 strip_include_prefix = "include",
4044 "include/mlir/Dialect/SPIRV/Transforms/Passes.h.inc",
4047 tblgen = ":mlir-tblgen",
4048 td_file = "include/mlir/Dialect/SPIRV/Transforms/Passes.td",
4049 deps = [":PassBaseTdFiles"],
4053 name = "SPIRVUtils",
4055 "lib/Dialect/SPIRV/Utils/*.cpp",
4058 "include/mlir/Dialect/SPIRV/Utils/*.h",
4060 includes = ["include"],
4069 name = "SPIRVConversion",
4070 srcs = ["lib/Dialect/SPIRV/Transforms/SPIRVConversion.cpp"],
4071 hdrs = ["include/mlir/Dialect/SPIRV/Transforms/SPIRVConversion.h"],
4072 includes = ["include"],
4082 name = "SPIRVTransforms",
4085 "lib/Dialect/SPIRV/Transforms/*.cpp",
4086 "lib/Dialect/SPIRV/Transforms/*.h",
4088 exclude = ["lib/Dialect/SPIRV/Transforms/SPIRVConversion.cpp"],
4091 ["include/mlir/Dialect/SPIRV/Transforms/*.h"],
4092 exclude = ["include/mlir/Dialect/SPIRV/Transforms/SPIRVConversion.h"],
4094 includes = ["include"],
4109 name = "SPIRVCommonConversion",
4110 hdrs = ["lib/Conversion/SPIRVCommon/Pattern.h"],
4111 includes = ["include"],
4121 name = "MathToSPIRV",
4123 "lib/Conversion/MathToSPIRV/*.cpp",
4124 "lib/Conversion/MathToSPIRV/*.h",
4125 ]) + [":ConversionPassDetail"],
4127 "include/mlir/Conversion/MathToSPIRV/*.h",
4131 "lib/Conversion/MathToSPIRV",
4134 ":ConversionPassIncGen",
4138 ":SPIRVCommonConversion",
4148 name = "StandardToSPIRV",
4150 "lib/Conversion/StandardToSPIRV/*.cpp",
4151 "lib/Conversion/StandardToSPIRV/*.h",
4152 ]) + [":ConversionPassDetail"],
4154 "include/mlir/Conversion/StandardToSPIRV/*.h",
4158 "lib/Conversion/StandardToSPIRV",
4161 ":ArithmeticToSPIRV",
4162 ":ConversionPassIncGen",
4166 ":SPIRVCommonConversion",
4180 name = "SPIRVBinaryUtils",
4181 srcs = ["lib/Target/SPIRV/SPIRVBinaryUtils.cpp"],
4182 hdrs = ["include/mlir/Target/SPIRV/SPIRVBinaryUtils.h"],
4183 includes = ["include"],
4186 ":SPIRVAttrUtilsGen",
4195 name = "SPIRVSerialization",
4197 "lib/Target/SPIRV/Serialization/Serialization.cpp",
4198 "lib/Target/SPIRV/Serialization/SerializeOps.cpp",
4199 "lib/Target/SPIRV/Serialization/Serializer.cpp",
4200 "lib/Target/SPIRV/Serialization/Serializer.h",
4202 hdrs = ["include/mlir/Target/SPIRV/Serialization.h"],
4203 includes = ["include"],
4206 ":SPIRVAttrUtilsGen",
4207 ":SPIRVBinaryUtils",
4210 ":SPIRVSerializationGen",
4218 name = "SPIRVDeserialization",
4220 "lib/Target/SPIRV/Deserialization/*.cpp",
4221 "lib/Target/SPIRV/Deserialization/*.h",
4223 hdrs = ["include/mlir/Target/SPIRV/Deserialization.h"],
4224 includes = ["include"],
4227 ":SPIRVAttrUtilsGen",
4228 ":SPIRVBinaryUtils",
4231 ":SPIRVSerializationGen",
4239 name = "SPIRVModuleCombiner",
4241 ["lib/Dialect/SPIRV/Linking/ModuleCombiner/*.cpp"],
4243 hdrs = ["include/mlir/Dialect/SPIRV/Linking/ModuleCombiner.h"],
4244 includes = ["include"],
4254 name = "SPIRVTranslateRegistration",
4255 srcs = ["lib/Target/SPIRV/TranslateRegistration.cpp"],
4256 includes = ["include"],
4260 ":SPIRVDeserialization",
4262 ":SPIRVSerialization",
4270 name = "TensorOpsTdFiles",
4272 "include/mlir/Dialect/Tensor/IR/TensorBase.td",
4273 "include/mlir/Dialect/Tensor/IR/TensorOps.td",
4275 includes = ["include"],
4277 ":CastInterfacesTdFiles",
4278 ":ControlFlowInterfacesTdFiles",
4279 ":InferTypeOpInterfaceTdFiles",
4281 ":SideEffectInterfacesTdFiles",
4282 ":TilingInterfaceTdFiles",
4283 ":ViewLikeInterfaceTdFiles",
4288 name = "TensorOpsIncGen",
4289 strip_include_prefix = "include",
4293 "-gen-dialect-decls",
4296 "include/mlir/Dialect/Tensor/IR/TensorOpsDialect.h.inc",
4300 "-gen-dialect-defs",
4303 "include/mlir/Dialect/Tensor/IR/TensorOpsDialect.cpp.inc",
4307 "include/mlir/Dialect/Tensor/IR/TensorOps.h.inc",
4311 "include/mlir/Dialect/Tensor/IR/TensorOps.cpp.inc",
4314 tblgen = ":mlir-tblgen",
4315 td_file = "include/mlir/Dialect/Tensor/IR/TensorOps.td",
4316 deps = [":TensorOpsTdFiles"],
4320 name = "TensorDialect",
4322 "include/mlir/Transforms/InliningUtils.h",
4323 "lib/Dialect/Tensor/IR/TensorDialect.cpp",
4324 "lib/Dialect/Tensor/IR/TensorOps.cpp",
4326 hdrs = ["include/mlir/Dialect/Tensor/IR/Tensor.h"],
4327 includes = ["include"],
4329 ":ArithmeticDialect",
4330 ":CastOpInterfaces",
4331 ":ControlFlowInterfaces",
4334 ":InferTypeOpInterface",
4335 ":SideEffectInterfaces",
4340 ":ViewLikeInterface",
4346 name = "TensorInferTypeOpInterfaceImpl",
4347 srcs = ["lib/Dialect/Tensor/IR/TensorInferTypeOpInterfaceImpl.cpp"],
4348 hdrs = ["include/mlir/Dialect/Tensor/IR/TensorInferTypeOpInterfaceImpl.h"],
4349 includes = ["include"],
4353 ":InferTypeOpInterface",
4361 name = "TensorTilingInterfaceImpl",
4362 srcs = ["lib/Dialect/Tensor/IR/TensorTilingInterfaceImpl.cpp"],
4363 hdrs = ["include/mlir/Dialect/Tensor/IR/TensorTilingInterfaceImpl.h"],
4364 includes = ["include"],
4378 name = "TensorUtils",
4379 srcs = ["lib/Dialect/Tensor/Utils/Utils.cpp"],
4380 hdrs = ["include/mlir/Dialect/Tensor/Utils/Utils.h"],
4381 includes = ["include"],
4384 ":ArithmeticDialect",
4393 name = "TensorPassIncGen",
4394 strip_include_prefix = "include",
4401 "include/mlir/Dialect/Tensor/Transforms/Passes.h.inc",
4404 tblgen = ":mlir-tblgen",
4405 td_file = "include/mlir/Dialect/Tensor/Transforms/Passes.td",
4406 deps = [":PassBaseTdFiles"],
4410 name = "TensorTransforms",
4413 "lib/Dialect/Tensor/Transforms/*.cpp",
4414 "lib/Dialect/Tensor/Transforms/*.h",
4418 "include/mlir/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.h",
4419 "include/mlir/Dialect/Tensor/Transforms/Passes.h",
4421 includes = ["include"],
4423 ":ArithmeticDialect",
4425 ":BufferizationDialect",
4426 ":BufferizationTransforms",
4429 ":ParallelLoopMapperAttrGen",
4435 ":TensorPassIncGen",
4444 "lib/Rewrite/*.cpp",
4447 hdrs = glob(["include/mlir/Rewrite/*.h"]),
4448 includes = ["include"],
4453 ":PDLInterpDialect",
4456 ":SideEffectInterfaces",
4462 name = "TransformUtils",
4464 "lib/Transforms/Utils/*.cpp",
4465 "lib/Transforms/Utils/*.h",
4468 "include/mlir/Transforms/*.h",
4470 includes = ["include"],
4475 ":ArithmeticDialect",
4476 ":ControlFlowInterfaces",
4482 ":SideEffectInterfaces",
4485 ":TransformsPassIncGen",
4491 name = "DerivedAttributeOpInterfaceIncGen",
4492 strip_include_prefix = "include",
4495 ["-gen-op-interface-decls"],
4496 "include/mlir/Interfaces/DerivedAttributeOpInterface.h.inc",
4499 ["-gen-op-interface-defs"],
4500 "include/mlir/Interfaces/DerivedAttributeOpInterface.cpp.inc",
4503 tblgen = ":mlir-tblgen",
4504 td_file = "include/mlir/Interfaces/DerivedAttributeOpInterface.td",
4505 deps = [":DerivedAttributeOpInterfaceTdFiles"],
4509 name = "DerivedAttributeOpInterface",
4510 srcs = ["lib/Interfaces/DerivedAttributeOpInterface.cpp"],
4511 hdrs = ["include/mlir/Interfaces/DerivedAttributeOpInterface.h"],
4512 includes = ["include"],
4514 ":DerivedAttributeOpInterfaceIncGen",
4522 name = "DataLayoutInterfacesTdFiles",
4523 srcs = ["include/mlir/Interfaces/DataLayoutInterfaces.td"],
4524 includes = ["include"],
4528 name = "DataLayoutInterfacesIncGen",
4531 ["-gen-attr-interface-decls"],
4532 "include/mlir/Interfaces/DataLayoutAttrInterface.h.inc",
4535 ["-gen-attr-interface-defs"],
4536 "include/mlir/Interfaces/DataLayoutAttrInterface.cpp.inc",
4539 ["-gen-op-interface-decls"],
4540 "include/mlir/Interfaces/DataLayoutOpInterface.h.inc",
4543 ["-gen-op-interface-defs"],
4544 "include/mlir/Interfaces/DataLayoutOpInterface.cpp.inc",
4547 ["-gen-type-interface-decls"],
4548 "include/mlir/Interfaces/DataLayoutTypeInterface.h.inc",
4551 ["-gen-type-interface-defs"],
4552 "include/mlir/Interfaces/DataLayoutTypeInterface.cpp.inc",
4555 tblgen = ":mlir-tblgen",
4556 td_file = "include/mlir/Interfaces/DataLayoutInterfaces.td",
4557 deps = [":OpBaseTdFiles"],
4561 name = "LoopLikeInterfaceIncGen",
4562 strip_include_prefix = "include",
4565 ["-gen-op-interface-decls"],
4566 "include/mlir/Interfaces/LoopLikeInterface.h.inc",
4569 ["-gen-op-interface-defs"],
4570 "include/mlir/Interfaces/LoopLikeInterface.cpp.inc",
4573 tblgen = ":mlir-tblgen",
4574 td_file = "include/mlir/Interfaces/LoopLikeInterface.td",
4575 deps = [":LoopLikeInterfaceTdFiles"],
4579 name = "VectorInterfacesIncGen",
4580 strip_include_prefix = "include",
4583 ["-gen-op-interface-decls"],
4584 "include/mlir/Interfaces/VectorInterfaces.h.inc",
4587 ["-gen-op-interface-defs"],
4588 "include/mlir/Interfaces/VectorInterfaces.cpp.inc",
4591 tblgen = ":mlir-tblgen",
4592 td_file = "include/mlir/Interfaces/VectorInterfaces.td",
4593 deps = [":VectorInterfacesTdFiles"],
4597 name = "ViewLikeInterfaceIncGen",
4598 strip_include_prefix = "include",
4601 ["-gen-op-interface-decls"],
4602 "include/mlir/Interfaces/ViewLikeInterface.h.inc",
4605 ["-gen-op-interface-defs"],
4606 "include/mlir/Interfaces/ViewLikeInterface.cpp.inc",
4609 tblgen = ":mlir-tblgen",
4610 td_file = "include/mlir/Interfaces/ViewLikeInterface.td",
4611 deps = [":ViewLikeInterfaceTdFiles"],
4615 name = "CopyOpInterfaceIncGen",
4616 strip_include_prefix = "include",
4619 ["-gen-op-interface-decls"],
4620 "include/mlir/Interfaces/CopyOpInterface.h.inc",
4623 ["-gen-op-interface-defs"],
4624 "include/mlir/Interfaces/CopyOpInterface.cpp.inc",
4627 tblgen = ":mlir-tblgen",
4628 td_file = "include/mlir/Interfaces/CopyOpInterface.td",
4629 deps = [":CopyOpInterfaceTdFiles"],
4633 name = "TransformsPassIncGen",
4634 strip_include_prefix = "include",
4641 "include/mlir/Transforms/Passes.h.inc",
4645 "-gen-pass-capi-header",
4646 "--prefix=Transforms",
4648 "include/mlir/Transforms/Transforms.capi.h.inc",
4652 "-gen-pass-capi-impl",
4653 "--prefix=Transforms",
4655 "include/mlir/Transforms/Transforms.capi.cpp.inc",
4658 tblgen = ":mlir-tblgen",
4659 td_file = "include/mlir/Transforms/Passes.td",
4662 ":RewritePassBaseTdFiles",
4667 name = "Transforms",
4669 "lib/Transforms/*.cpp",
4670 "lib/Transforms/*.h",
4672 hdrs = glob(["include/mlir/Transforms/*.h"]),
4673 includes = ["include"],
4677 ":AllocationOpInterface",
4679 ":ArithmeticDialect",
4680 ":BufferizationDialect",
4681 ":ControlFlowInterfaces",
4685 ":LoopLikeInterface",
4690 ":SideEffectInterfaces",
4695 ":TransformsPassIncGen",
4701 name = "CommonFolders",
4704 hdrs = ["include/mlir/Dialect/CommonFolders.h"],
4705 includes = ["include"],
4714 srcs = ["lib/Conversion/SCFToGPU/SCFToGPU.cpp"],
4715 hdrs = ["include/mlir/Conversion/SCFToGPU/SCFToGPU.h"],
4716 includes = ["include"],
4719 ":AffineToStandard",
4720 ":ArithmeticDialect",
4721 ":ConversionPassIncGen",
4737 name = "SCFToGPUPass",
4739 "lib/Conversion/SCFToGPU/SCFToGPUPass.cpp",
4740 ":ConversionPassDetail",
4742 hdrs = ["include/mlir/Conversion/SCFToGPU/SCFToGPUPass.h"],
4743 includes = ["include"],
4746 ":ArithmeticDialect",
4748 ":ConversionPassIncGen",
4761 name = "SCFToSPIRV",
4763 "lib/Conversion/SCFToSPIRV/*.cpp",
4764 "lib/Conversion/SCFToSPIRV/*.h",
4765 ]) + [":ConversionPassDetail"],
4767 "include/mlir/Conversion/SCFToSPIRV/*.h",
4769 includes = ["include"],
4772 ":ArithmeticToSPIRV",
4773 ":ConversionPassIncGen",
4790 name = "SCFToOpenMP",
4792 "lib/Conversion/SCFToOpenMP/SCFToOpenMP.cpp",
4793 ":ConversionPassDetail",
4795 hdrs = ["include/mlir/Conversion/SCFToOpenMP/SCFToOpenMP.h"],
4796 includes = ["include"],
4800 ":ArithmeticDialect",
4801 ":ConversionPassIncGen",
4814 name = "SCFToStandard",
4816 "lib/Conversion/SCFToStandard/SCFToStandard.cpp",
4817 ":ConversionPassDetail",
4819 hdrs = ["include/mlir/Conversion/SCFToStandard/SCFToStandard.h"],
4820 includes = ["include"],
4822 ":ArithmeticDialect",
4823 ":ConversionPassIncGen",
4836 name = "CFGTransforms",
4837 actual = "SCFToStandard",
4841 name = "LLVMCommonConversion",
4843 "lib/Conversion/LLVMCommon/*.cpp",
4844 ]) + ["lib/Conversion/LLVMCommon/MemRefDescriptor.h"],
4845 hdrs = glob(["include/mlir/Conversion/LLVMCommon/*.h"]),
4846 includes = ["include"],
4857 name = "ReconcileUnrealizedCasts",
4858 srcs = glob(["lib/Conversion/ReconcileUnrealizedCasts/*.cpp"]) + [":ConversionPassDetail"],
4859 hdrs = glob(["include/mlir/Conversion/ReconcileUnrealizedCasts/*.h"]),
4860 includes = ["include"],
4862 ":ConversionPassIncGen",
4870 name = "StandardToLLVM",
4872 "lib/Conversion/StandardToLLVM/StandardToLLVM.cpp",
4873 ":ConversionPassDetail",
4876 "include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h",
4877 "include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h",
4879 includes = ["include"],
4882 ":ArithmeticToLLVM",
4883 ":ConversionPassIncGen",
4884 ":DataLayoutInterfaces",
4887 ":LLVMCommonConversion",
4894 ":StandardOpsTransforms",
4904 name = "MemRefToLLVM",
4905 srcs = glob(["lib/Conversion/MemRefToLLVM/*.cpp"]) + [":ConversionPassDetail"],
4906 hdrs = glob(["include/mlir/Conversion/MemRefToLLVM/*.h"]),
4907 includes = ["include"],
4910 ":ConversionPassIncGen",
4911 ":DataLayoutInterfaces",
4913 ":LLVMCommonConversion",
4923 name = "MemRefToSPIRV",
4925 "lib/Conversion/MemRefToSPIRV/*.cpp",
4926 "lib/Conversion/MemRefToSPIRV/*.h",
4927 ]) + [":ConversionPassDetail"],
4929 "include/mlir/Conversion/MemRefToSPIRV/*.h",
4933 "lib/Conversion/MemRefToSPIRV",
4936 ":ConversionPassIncGen",
4949 name = "ArithmeticToLLVM",
4950 srcs = glob(["lib/Conversion/ArithmeticToLLVM/*.cpp"]) + [":ConversionPassDetail"],
4951 hdrs = glob(["include/mlir/Conversion/ArithmeticToLLVM/*.h"]),
4952 includes = ["include"],
4955 ":ArithmeticDialect",
4956 ":ConversionPassIncGen",
4958 ":LLVMCommonConversion",
4967 name = "ArithmeticToSPIRV",
4968 srcs = glob(["lib/Conversion/ArithmeticToSPIRV/*.cpp"]) + [":ConversionPassDetail"],
4969 hdrs = glob(["include/mlir/Conversion/ArithmeticToSPIRV/*.h"]),
4970 includes = ["include"],
4972 ":ArithmeticDialect",
4973 ":ConversionPassIncGen",
4976 ":SPIRVCommonConversion",
4986 name = "MathToLLVM",
4987 srcs = glob(["lib/Conversion/MathToLLVM/*.cpp"]) + [":ConversionPassDetail"],
4988 hdrs = glob(["include/mlir/Conversion/MathToLLVM/*.h"]),
4989 includes = ["include"],
4992 ":ConversionPassIncGen",
4993 ":DataLayoutInterfaces",
4995 ":LLVMCommonConversion",
5005 name = "LLVMTransforms",
5006 actual = "StandardToLLVM",
5010 name = "CallOpInterfacesIncGen",
5011 strip_include_prefix = "include",
5014 ["-gen-op-interface-decls"],
5015 "include/mlir/Interfaces/CallInterfaces.h.inc",
5018 ["-gen-op-interface-defs"],
5019 "include/mlir/Interfaces/CallInterfaces.cpp.inc",
5022 tblgen = ":mlir-tblgen",
5023 td_file = "include/mlir/Interfaces/CallInterfaces.td",
5024 deps = [":CallInterfacesTdFiles"],
5028 name = "CallOpInterfaces",
5029 srcs = ["lib/Interfaces/CallInterfaces.cpp"],
5030 hdrs = ["include/mlir/Interfaces/CallInterfaces.h"],
5031 includes = ["include"],
5033 ":CallOpInterfacesIncGen",
5041 name = "CastOpInterfacesIncGen",
5042 strip_include_prefix = "include",
5045 ["-gen-op-interface-decls"],
5046 "include/mlir/Interfaces/CastInterfaces.h.inc",
5049 ["-gen-op-interface-defs"],
5050 "include/mlir/Interfaces/CastInterfaces.cpp.inc",
5053 tblgen = ":mlir-tblgen",
5054 td_file = "include/mlir/Interfaces/CastInterfaces.td",
5055 deps = [":CastInterfacesTdFiles"],
5059 name = "CastOpInterfaces",
5060 srcs = ["lib/Interfaces/CastInterfaces.cpp"],
5061 hdrs = ["include/mlir/Interfaces/CastInterfaces.h"],
5062 includes = ["include"],
5064 ":CastOpInterfacesIncGen",
5072 name = "ControlFlowInterfacesIncGen",
5073 strip_include_prefix = "include",
5076 ["-gen-op-interface-decls"],
5077 "include/mlir/Interfaces/ControlFlowInterfaces.h.inc",
5080 ["-gen-op-interface-defs"],
5081 "include/mlir/Interfaces/ControlFlowInterfaces.cpp.inc",
5084 tblgen = ":mlir-tblgen",
5085 td_file = "include/mlir/Interfaces/ControlFlowInterfaces.td",
5086 deps = [":ControlFlowInterfacesTdFiles"],
5090 name = "ControlFlowInterfaces",
5091 srcs = ["lib/Interfaces/ControlFlowInterfaces.cpp"],
5092 hdrs = ["include/mlir/Interfaces/ControlFlowInterfaces.h"],
5093 includes = ["include"],
5095 ":ControlFlowInterfacesIncGen",
5103 name = "InferTypeOpInterfaceIncGen",
5104 strip_include_prefix = "include",
5107 ["-gen-op-interface-decls"],
5108 "include/mlir/Interfaces/InferTypeOpInterface.h.inc",
5111 ["-gen-op-interface-defs"],
5112 "include/mlir/Interfaces/InferTypeOpInterface.cpp.inc",
5115 tblgen = ":mlir-tblgen",
5116 td_file = "include/mlir/Interfaces/InferTypeOpInterface.td",
5117 deps = [":InferTypeOpInterfaceTdFiles"],
5121 name = "InferTypeOpInterface",
5122 srcs = ["lib/Interfaces/InferTypeOpInterface.cpp"],
5123 hdrs = ["include/mlir/Interfaces/InferTypeOpInterface.h"],
5124 includes = ["include"],
5127 ":InferTypeOpInterfaceIncGen",
5134 name = "SideEffectInterfacesIncGen",
5135 strip_include_prefix = "include",
5138 ["-gen-op-interface-decls"],
5139 "include/mlir/Interfaces/SideEffectInterfaces.h.inc",
5142 ["-gen-op-interface-defs"],
5143 "include/mlir/Interfaces/SideEffectInterfaces.cpp.inc",
5146 tblgen = ":mlir-tblgen",
5147 td_file = "include/mlir/Interfaces/SideEffectInterfaces.td",
5148 deps = [":SideEffectInterfacesTdFiles"],
5152 name = "SideEffectInterfaces",
5153 srcs = ["lib/Interfaces/SideEffectInterfaces.cpp"],
5154 hdrs = ["include/mlir/Interfaces/SideEffectInterfaces.h"],
5155 includes = ["include"],
5158 ":SideEffectInterfacesIncGen",
5165 name = "SideEffects",
5166 actual = "SideEffectInterfaces",
5170 name = "TilingInterfaceIncGen",
5171 strip_include_prefix = "include",
5174 ["-gen-op-interface-decls"],
5175 "include/mlir/Interfaces/TilingInterface.h.inc",
5178 ["-gen-op-interface-defs"],
5179 "include/mlir/Interfaces/TilingInterface.cpp.inc",
5182 tblgen = ":mlir-tblgen",
5183 td_file = "include/mlir/Interfaces/TilingInterface.td",
5184 deps = [":TilingInterfaceTdFiles"],
5191 "lib/Analysis/*.cpp",
5193 "lib/Analysis/*/*.cpp",
5194 "lib/Analysis/*/*.h",
5197 "lib/Analysis/Vector*.cpp",
5198 "lib/Analysis/Vector*.h",
5203 "include/mlir/Analysis/*.h",
5204 "include/mlir/Analysis/*/*.h",
5206 exclude = ["include/mlir/Analysis/Vector*.h"],
5208 includes = ["include"],
5211 ":ArithmeticDialect",
5212 ":BufferizationDialect",
5213 ":CallOpInterfaces",
5214 ":ControlFlowInterfaces",
5215 ":DataLayoutInterfaces",
5219 ":SideEffectInterfaces",
5222 ":ViewLikeInterface",
5228 name = "Translation",
5230 "lib/Translation/*.cpp",
5231 "lib/Translation/*.h",
5233 hdrs = ["include/mlir/Translation.h"],
5234 includes = ["include"],
5245 name = "ToLLVMIRTranslation",
5247 "lib/Target/LLVMIR/DebugTranslation.cpp",
5248 "lib/Target/LLVMIR/DebugTranslation.h",
5249 "lib/Target/LLVMIR/ModuleTranslation.cpp",
5250 "lib/Target/LLVMIR/TypeToLLVM.cpp",
5253 "include/mlir/Target/LLVMIR/Export.h",
5254 "include/mlir/Target/LLVMIR/LLVMTranslationInterface.h",
5255 "include/mlir/Target/LLVMIR/ModuleTranslation.h",
5256 "include/mlir/Target/LLVMIR/TypeToLLVM.h",
5258 includes = ["include"],
5261 ":LLVMConversionIncGen",
5263 ":LLVMIRTransforms",
5267 "//llvm:FrontendOpenMP",
5269 "//llvm:TransformUtils",
5274 name = "AMXToLLVMIRTranslation",
5275 srcs = glob(["lib/Target/LLVMIR/Dialect/AMX/*.cpp"]),
5276 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/AMX/*.h"]),
5277 includes = ["include"],
5280 ":AMXConversionIncGen",
5283 ":ToLLVMIRTranslation",
5290 name = "X86VectorToLLVMIRTranslation",
5291 srcs = glob(["lib/Target/LLVMIR/Dialect/X86Vector/*.cpp"]),
5292 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/X86Vector/*.h"]),
5293 includes = ["include"],
5297 ":ToLLVMIRTranslation",
5299 ":X86VectorConversionIncGen",
5306 name = "ArmNeonToLLVMIRTranslation",
5307 srcs = glob(["lib/Target/LLVMIR/Dialect/ArmNeon/*.cpp"]),
5308 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/ArmNeon/*.h"]),
5309 includes = ["include"],
5312 ":ArmNeonConversionIncGen",
5316 ":ToLLVMIRTranslation",
5323 name = "ArmSVEToLLVMIRTranslation",
5324 srcs = glob(["lib/Target/LLVMIR/Dialect/ArmSVE/*.cpp"]),
5325 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/ArmSVE/*.h"]),
5326 includes = ["include"],
5329 ":ArmSVEConversionIncGen",
5332 ":ToLLVMIRTranslation",
5339 name = "NVVMToLLVMIRTranslation",
5340 srcs = glob(["lib/Target/LLVMIR/Dialect/NVVM/*.cpp"]),
5341 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/NVVM/*.h"]),
5342 includes = ["include"],
5345 ":NVVMConversionIncGen",
5348 ":ToLLVMIRTranslation",
5355 name = "ROCDLToLLVMIRTranslation",
5356 srcs = glob(["lib/Target/LLVMIR/Dialect/ROCDL/*.cpp"]),
5357 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/ROCDL/*.h"]),
5358 includes = ["include"],
5361 ":ROCDLConversionIncGen",
5364 ":ToLLVMIRTranslation",
5371 name = "LLVMToLLVMIRTranslation",
5372 srcs = glob(["lib/Target/LLVMIR/Dialect/LLVMIR/*.cpp"]),
5373 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/LLVMIR/*.h"]),
5374 includes = ["include"],
5377 ":LLVMConversionIncGen",
5380 ":ToLLVMIRTranslation",
5387 name = "OpenACCToLLVMIRTranslation",
5388 srcs = glob(["lib/Target/LLVMIR/Dialect/OpenACC/*.cpp"]),
5389 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/OpenACC/*.h"]),
5390 includes = ["include"],
5397 ":ToLLVMIRTranslation",
5399 "//llvm:FrontendOpenMP",
5405 name = "OpenMPToLLVMIRTranslation",
5406 srcs = glob(["lib/Target/LLVMIR/Dialect/OpenMP/*.cpp"]),
5407 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/OpenMP/*.h"]),
5408 includes = ["include"],
5413 ":ToLLVMIRTranslation",
5415 "//llvm:FrontendOpenMP",
5421 name = "AllToLLVMIRTranslations",
5422 hdrs = ["include/mlir/Target/LLVMIR/Dialect/All.h"],
5423 includes = ["include"],
5425 ":AMXToLLVMIRTranslation",
5426 ":ArmNeonToLLVMIRTranslation",
5427 ":ArmSVEToLLVMIRTranslation",
5428 ":LLVMToLLVMIRTranslation",
5429 ":NVVMToLLVMIRTranslation",
5430 ":OpenACCToLLVMIRTranslation",
5431 ":OpenMPToLLVMIRTranslation",
5432 ":ROCDLToLLVMIRTranslation",
5433 ":X86VectorToLLVMIRTranslation",
5438 name = "ToLLVMIRTranslationRegistration",
5439 srcs = ["lib/Target/LLVMIR/ConvertToLLVMIR.cpp"],
5440 includes = ["include"],
5442 ":AllToLLVMIRTranslations",
5444 ":ToLLVMIRTranslation",
5452 name = "FromLLVMIRTranslation",
5454 "lib/Target/LLVMIR/ConvertFromLLVMIR.cpp",
5455 "lib/Target/LLVMIR/TypeFromLLVM.cpp",
5458 "include/mlir/Target/LLVMIR/Import.h",
5459 "include/mlir/Target/LLVMIR/TypeFromLLVM.h",
5461 includes = ["include"],
5464 ":LLVMConversionIncGen",
5475 name = "ExecutionEngine",
5477 "include/mlir/ExecutionEngine/CRunnerUtils.h",
5478 "lib/ExecutionEngine/ExecutionEngine.cpp",
5481 "include/mlir/ExecutionEngine/ExecutionEngine.h",
5482 "include/mlir/ExecutionEngine/MemRefUtils.h",
5484 includes = ["include"],
5486 ":AllToLLVMIRTranslations",
5490 ":ToLLVMIRTranslation",
5492 "//llvm:AllTargetsAsmParsers",
5496 "//llvm:ExecutionEngine",
5500 "//llvm:Target", # fixdeps: keep
5501 "//llvm:TransformUtils",
5502 "//llvm:X86CodeGen", # fixdeps: keep
5503 "//llvm:X86Disassembler", # fixdeps: keep
5508 name = "ExecutionEngineUtils",
5509 srcs = ["lib/ExecutionEngine/OptUtils.cpp"],
5510 hdrs = ["include/mlir/ExecutionEngine/OptUtils.h"],
5511 includes = ["include"],
5515 "//llvm:Coroutines",
5519 "//llvm:common_transforms",
5523 # TODO(jpienaar): Update this.
5525 name = "MlirOptLib",
5526 srcs = ["lib/Support/MlirOptMain.cpp"],
5527 hdrs = ["include/mlir/Support/MlirOptMain.h"],
5528 includes = ["include"],
5531 ":ConversionPasses",
5532 ":GPUToGPURuntimeTransforms",
5533 ":GPUToNVVMTransforms",
5534 ":GPUToROCDLTransforms",
5543 ":StandardOpsTransforms",
5552 name = "AllTranslations",
5553 hdrs = ["include/mlir/InitAllTranslations.h"],
5555 ":FromLLVMIRTranslation",
5556 ":SPIRVTranslateRegistration",
5558 ":ToLLVMIRTranslationRegistration",
5563 name = "MlirTranslateMain",
5564 srcs = ["tools/mlir-translate/mlir-translate.cpp"],
5566 ":AllPassesAndDialects",
5577 name = "mlir-translate",
5578 deps = [":MlirTranslateMain"],
5582 name = "AllPassesAndDialects",
5584 "include/mlir/InitAllDialects.h",
5585 "include/mlir/InitAllPasses.h",
5591 ":AffinePassIncGen",
5592 ":AffineToStandard",
5593 ":AffineTransforms",
5594 ":ArithmeticDialect",
5595 ":ArithmeticToLLVM",
5596 ":ArithmeticToSPIRV",
5597 ":ArithmeticTransforms",
5600 ":ArmSVETransforms",
5605 ":BufferizationDialect",
5606 ":BufferizationTransforms",
5609 ":ConversionPasses",
5614 ":GPUToGPURuntimeTransforms",
5615 ":GPUToNVVMTransforms",
5616 ":GPUToROCDLTransforms",
5618 ":GPUToVulkanTransforms",
5622 ":LLVMIRTransforms",
5625 ":LinalgPassIncGen",
5628 ":LinalgToStandard",
5629 ":LinalgTransforms",
5638 ":MemRefTransforms",
5644 ":PDLInterpDialect",
5649 ":ReconcileUnrealizedCasts",
5663 ":ShapeTransformsPassIncGen",
5665 ":SparseTensorTransforms",
5667 ":StandardOpsTransforms",
5668 ":StandardOpsTransformsPassIncGen",
5672 ":TensorInferTypeOpInterfaceImpl",
5673 ":TensorTilingInterfaceImpl",
5674 ":TensorTransforms",
5678 ":TransformsPassIncGen",
5685 ":X86VectorTransforms",
5690 name = "mlir-lsp-server",
5691 srcs = ["tools/mlir-lsp-server/mlir-lsp-server.cpp"],
5692 includes = ["include"],
5694 ":AllPassesAndDialects",
5696 ":MlirLspServerLib",
5702 srcs = ["tools/mlir-opt/mlir-opt.cpp"],
5703 local_defines = ["MLIR_INCLUDE_TESTS"],
5705 ":AllPassesAndDialects",
5715 "//llvm:AllTargetsCodeGens",
5717 "//mlir/test:TestAffine",
5718 "//mlir/test:TestAnalysis",
5719 "//mlir/test:TestDLTI",
5720 "//mlir/test:TestDialect",
5721 "//mlir/test:TestGPU",
5722 "//mlir/test:TestIR",
5723 "//mlir/test:TestLinalg",
5724 "//mlir/test:TestMath",
5725 "//mlir/test:TestPass",
5726 "//mlir/test:TestReducer",
5727 "//mlir/test:TestRewrite",
5728 "//mlir/test:TestSCF",
5729 "//mlir/test:TestSPIRV",
5730 "//mlir/test:TestShapeDialect",
5731 "//mlir/test:TestStandardOps",
5732 "//mlir/test:TestStandardToLLVM",
5733 "//mlir/test:TestTosaDialect",
5734 "//mlir/test:TestTransforms",
5735 "//mlir/test:TestTypeDialect",
5736 "//mlir/test:TestVector",
5741 name = "MlirJitRunner",
5742 srcs = ["lib/ExecutionEngine/JitRunner.cpp"],
5743 hdrs = ["include/mlir/ExecutionEngine/JitRunner.h"],
5744 includes = ["include"],
5746 ":AllPassesAndDialects",
5748 ":ExecutionEngineUtils",
5751 ":LLVMToLLVMIRTranslation",
5752 ":OpenACCToLLVMIRTranslation",
5753 ":OpenMPToLLVMIRTranslation",
5765 name = "mlir_c_runner_utils",
5767 "lib/ExecutionEngine/CRunnerUtils.cpp",
5768 "lib/ExecutionEngine/SparseTensorUtils.cpp",
5771 "include/mlir/ExecutionEngine/CRunnerUtils.h",
5772 "include/mlir/ExecutionEngine/SparseTensorUtils.h",
5774 includes = ["include"],
5778 name = "mlir_async_runtime_api",
5779 hdrs = ["include/mlir/ExecutionEngine/AsyncRuntime.h"],
5780 includes = ["include"],
5784 name = "mlir_async_runtime",
5785 srcs = ["lib/ExecutionEngine/AsyncRuntime.cpp"],
5786 copts = ["-Dmlir_async_runtime_EXPORTS"],
5788 ":mlir_async_runtime_api",
5794 name = "mlir_runner_utils",
5795 srcs = ["lib/ExecutionEngine/RunnerUtils.cpp"],
5796 hdrs = ["include/mlir/ExecutionEngine/RunnerUtils.h"],
5797 includes = ["include"],
5798 deps = [":mlir_c_runner_utils"],
5802 name = "mlir-cpu-runner",
5803 srcs = ["tools/mlir-cpu-runner/mlir-cpu-runner.cpp"],
5805 ":AllToLLVMIRTranslations",
5806 ":ExecutionEngineUtils",
5809 ":LLVMToLLVMIRTranslation",
5811 ":OpenACCToLLVMIRTranslation",
5812 ":OpenMPToLLVMIRTranslation",
5813 ":ToLLVMIRTranslation",
5816 "//llvm:X86AsmParser",
5820 # This target provides the headers from LLVM's Support target without any of
5821 # the symbols. In particular, it does not contain the static registration code
5822 # which may be executed by at most one shared library loaded by ORCJit. Direct
5823 # dependencies need to avoid requiring symbols from LLVMSupport by adding
5824 # copts = ["-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1"].
5826 # Bazel links the dependencies' object files instead of the archives, which
5827 # means that symbols are linked in even if none are used. The LLVM cmake build
5828 # on the other hand links archives (or shared libraries, depending on
5829 # BUILD_SHARED_LIBS), skipping them if none of the symbols are used.
5830 # See also https://reviews.llvm.org/D95613.
5832 name = "LLVMSupportHeaders",
5833 src = "//llvm:Support",
5837 name = "mlir_cuda_runtime",
5838 srcs = ["lib/ExecutionEngine/CudaRuntimeWrappers.cpp"],
5839 # Prevent needing EnableABIBreakingChecks symbol from LLVMSupport.
5840 copts = ["-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1"],
5842 "manual", # External dependency
5843 "nobuildkite", # TODO(gcmn): Add support for this target
5846 ":LLVMSupportHeaders",
5847 ":mlir_c_runner_utils",
5848 "@cuda//:cuda_headers",
5854 name = "VulkanRuntime",
5855 srcs = ["tools/mlir-vulkan-runner/VulkanRuntime.cpp"],
5856 hdrs = ["tools/mlir-vulkan-runner/VulkanRuntime.h"],
5858 "manual", # External dependency
5864 ":SideEffectInterfaces",
5869 "@vulkan_sdk//:sdk",
5874 name = "tools/libvulkan-runtime-wrappers.so",
5875 srcs = ["tools/mlir-vulkan-runner/vulkan-runtime-wrappers.cpp"],
5878 "manual", # External dependency
5887 name = "mlir-vulkan-runner",
5888 srcs = ["tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp"],
5890 ":ArithmeticDialect",
5891 ":ExecutionEngineUtils",
5894 ":GPUToVulkanTransforms",
5896 ":LLVMCommonConversion",
5898 ":LLVMToLLVMIRTranslation",
5901 ":MemRefTransforms",
5904 ":ReconcileUnrealizedCasts",
5910 ":ToLLVMIRTranslation",
5916 name = "mlir-spirv-cpu-runner",
5917 srcs = ["tools/mlir-spirv-cpu-runner/mlir-spirv-cpu-runner.cpp"],
5919 ":ArithmeticDialect",
5920 ":ExecutionEngineUtils",
5926 ":LLVMToLLVMIRTranslation",
5936 ":ToLLVMIRTranslation",
5945 srcs = glob(["lib/TableGen/*.cpp"]),
5946 hdrs = glob(["include/mlir/TableGen/*.h"]),
5947 includes = ["include"],
5956 name = "MlirTableGenMain",
5957 srcs = ["tools/mlir-tblgen/mlir-tblgen.cpp"],
5958 includes = ["include"],
5969 name = "mlir-tblgen",
5971 "tools/mlir-tblgen/*.h",
5972 "tools/mlir-tblgen/*.cpp",
5975 ":MlirTableGenMain",
5985 name = "mlir-linalg-ods-yaml-gen",
5987 "tools/mlir-linalg-ods-gen/mlir-linalg-ods-yaml-gen.cpp",
6001 # TODO(gcmn): This is sticking td files in a cc_library
6003 name = "AccCommonGen",
6004 includes = ["/llvm/include"],
6005 strip_include_prefix = "include",
6009 "-gen-directive-decl",
6010 "-directives-dialect=OpenACC",
6012 "include/mlir/Dialect/OpenACC/AccCommon.td",
6015 tblgen = ":mlir-tblgen",
6016 td_file = "//llvm:include/llvm/Frontend/OpenACC/ACC.td",
6017 deps = ["//llvm:acc_td_files"],
6021 name = "OpenAccOpsTdFiles",
6023 "include/mlir/Dialect/OpenACC/AccCommon.td",
6024 "include/mlir/Dialect/OpenACC/OpenACCOps.td",
6026 includes = ["include"],
6027 deps = [":OpBaseTdFiles"],
6031 name = "OpenACCOpsIncGen",
6032 strip_include_prefix = "include",
6036 "-gen-dialect-decls",
6039 "include/mlir/Dialect/OpenACC/OpenACCOpsDialect.h.inc",
6043 "-gen-dialect-defs",
6046 "include/mlir/Dialect/OpenACC/OpenACCOpsDialect.cpp.inc",
6050 "include/mlir/Dialect/OpenACC/OpenACCOps.h.inc",
6054 "include/mlir/Dialect/OpenACC/OpenACCOps.cpp.inc",
6057 ["-gen-enum-decls"],
6058 "include/mlir/Dialect/OpenACC/OpenACCOpsEnums.h.inc",
6062 "include/mlir/Dialect/OpenACC/OpenACCOpsEnums.cpp.inc",
6066 "-gen-attrdef-decls",
6067 "-attrdefs-dialect=acc",
6069 "include/mlir/Dialect/OpenACC/OpenACCOpsAttributes.h.inc",
6073 "-gen-attrdef-defs",
6074 "-attrdefs-dialect=acc",
6076 "include/mlir/Dialect/OpenACC/OpenACCOpsAttributes.cpp.inc",
6080 "g3doc/Dialects/OpenACC/OpenACCOps.md",
6083 tblgen = ":mlir-tblgen",
6084 td_file = "include/mlir/Dialect/OpenACC/OpenACCOps.td",
6085 deps = [":OpenAccOpsTdFiles"],
6089 name = "OpenACCDialect",
6092 "lib/Dialect/OpenACC/IR/*.cpp",
6093 "lib/Dialect/OpenACC/IR/*.h",
6097 "include/mlir/Dialect/OpenACC/*.h",
6099 includes = ["include"],
6101 ":ArithmeticDialect",
6103 ":OpenACCOpsIncGen",
6112 # TODO(gcmn): This is sticking td files in a cc_library
6114 name = "OmpCommonTdGen",
6115 includes = ["/llvm/include"],
6116 strip_include_prefix = "include",
6120 "-gen-directive-decl",
6121 "-directives-dialect=OpenMP",
6123 "include/mlir/Dialect/OpenMP/OmpCommon.td",
6126 tblgen = ":mlir-tblgen",
6127 td_file = "//llvm:include/llvm/Frontend/OpenMP/OMP.td",
6130 "//llvm:omp_td_files",
6135 name = "OpenMPOpsTdFiles",
6137 "include/mlir/Dialect/OpenMP/OmpCommon.td",
6138 "include/mlir/Dialect/OpenMP/OpenMPOps.td",
6139 "include/mlir/Dialect/OpenMP/OpenMPOpsInterfaces.td",
6148 name = "OpenMPOpsIncGen",
6149 strip_include_prefix = "include",
6153 "include/mlir/Dialect/OpenMP/OpenMPOps.h.inc",
6157 "include/mlir/Dialect/OpenMP/OpenMPOps.cpp.inc",
6160 ["-gen-enum-decls"],
6161 "include/mlir/Dialect/OpenMP/OpenMPOpsEnums.h.inc",
6165 "include/mlir/Dialect/OpenMP/OpenMPOpsEnums.cpp.inc",
6169 "-gen-dialect-decls",
6172 "include/mlir/Dialect/OpenMP/OpenMPOpsDialect.h.inc",
6176 "-gen-dialect-defs",
6179 "include/mlir/Dialect/OpenMP/OpenMPOpsDialect.cpp.inc",
6182 ["-gen-type-interface-decls"],
6183 "include/mlir/Dialect/OpenMP/OpenMPTypeInterfaces.h.inc",
6186 ["-gen-type-interface-defs"],
6187 "include/mlir/Dialect/OpenMP/OpenMPTypeInterfaces.cpp.inc",
6191 "-gen-attrdef-decls",
6192 "-attrdefs-dialect=omp",
6194 "include/mlir/Dialect/OpenMP/OpenMPOpsAttributes.h.inc",
6198 "-gen-attrdef-defs",
6199 "-attrdefs-dialect=omp",
6201 "include/mlir/Dialect/OpenMP/OpenMPOpsAttributes.cpp.inc",
6205 "g3doc/Dialects/OpenMP/OpenMPOps.md",
6208 tblgen = ":mlir-tblgen",
6209 td_file = "include/mlir/Dialect/OpenMP/OpenMPOps.td",
6210 deps = [":OpenMPOpsTdFiles"],
6214 name = "OpenMPInterfacesIncGen",
6215 strip_include_prefix = "include",
6218 ["-gen-op-interface-decls"],
6219 "include/mlir/Dialect/OpenMP/OpenMPOpsInterfaces.h.inc",
6222 ["-gen-op-interface-defs"],
6223 "include/mlir/Dialect/OpenMP/OpenMPOpsInterfaces.cpp.inc",
6226 tblgen = ":mlir-tblgen",
6227 td_file = "include/mlir/Dialect/OpenMP/OpenMPOpsInterfaces.td",
6228 deps = [":OpenMPOpsTdFiles"],
6232 name = "OpenMPDialect",
6235 "lib/Dialect/OpenMP/IR/*.cpp",
6236 "lib/Dialect/OpenMP/IR/*.h",
6240 "include/mlir/Dialect/OpenMP/*.h",
6242 includes = ["include"],
6244 ":ControlFlowInterfaces",
6247 ":OpenMPInterfacesIncGen",
6249 ":SideEffectInterfaces",
6256 name = "OpenACCToSCF",
6258 "lib/Conversion/OpenACCToSCF/*.cpp",
6259 "lib/Conversion/OpenACCToSCF/*.h",
6260 ]) + [":ConversionPassDetail"],
6262 "include/mlir/Conversion/OpenACCToSCF/*.h",
6264 includes = ["include"],
6266 ":ArithmeticDialect",
6267 ":ConversionPassIncGen",
6278 name = "OpenACCToLLVM",
6280 "lib/Conversion/OpenACCToLLVM/*.cpp",
6281 "lib/Conversion/OpenACCToLLVM/*.h",
6282 ]) + [":ConversionPassDetail"],
6284 "include/mlir/Conversion/OpenACCToLLVM/*.h",
6286 includes = ["include"],
6288 ":ConversionPassIncGen",
6290 ":LLVMCommonConversion",
6302 name = "OpenMPToLLVM",
6304 "lib/Conversion/OpenMPToLLVM/*.cpp",
6305 "lib/Conversion/OpenMPToLLVM/*.h",
6306 ]) + [":ConversionPassDetail"],
6308 "include/mlir/Conversion/OpenMPToLLVM/*.h",
6310 includes = ["include"],
6312 ":ArithmeticToLLVM",
6313 ":ConversionPassIncGen",
6315 ":LLVMCommonConversion",
6329 name = "QuantizationOpsTdFiles",
6331 "include/mlir/Dialect/Quant/QuantOps.td",
6332 "include/mlir/Dialect/Quant/QuantOpsBase.td",
6334 includes = ["include"],
6336 ":InferTypeOpInterfaceTdFiles",
6338 ":SideEffectInterfacesTdFiles",
6343 name = "QuantOpsIncGen",
6344 strip_include_prefix = "include",
6348 "include/mlir/Dialect/Quant/QuantOps.h.inc",
6352 "include/mlir/Dialect/Quant/QuantOps.cpp.inc",
6355 ["-gen-dialect-decls"],
6356 "include/mlir/Dialect/Quant/QuantOpsDialect.h.inc",
6359 ["-gen-dialect-defs"],
6360 "include/mlir/Dialect/Quant/QuantOpsDialect.cpp.inc",
6364 "g3doc/Dialects/QuantOps/QuantOps.md",
6367 tblgen = ":mlir-tblgen",
6368 td_file = "include/mlir/Dialect/Quant/QuantOps.td",
6369 deps = [":QuantizationOpsTdFiles"],
6373 name = "QuantPassIncGen",
6374 strip_include_prefix = "include",
6381 "include/mlir/Dialect/Quant/Passes.h.inc",
6384 tblgen = ":mlir-tblgen",
6385 td_file = "include/mlir/Dialect/Quant/Passes.td",
6386 deps = [":PassBaseTdFiles"],
6392 "lib/Dialect/Quant/IR/QuantOps.cpp",
6393 "lib/Dialect/Quant/IR/QuantTypes.cpp",
6394 "lib/Dialect/Quant/IR/TypeDetail.h",
6395 "lib/Dialect/Quant/IR/TypeParser.cpp",
6396 "lib/Dialect/Quant/Transforms/ConvertConst.cpp",
6397 "lib/Dialect/Quant/Transforms/ConvertSimQuant.cpp",
6398 "lib/Dialect/Quant/Transforms/PassDetail.h",
6399 "lib/Dialect/Quant/Utils/FakeQuantSupport.cpp",
6400 "lib/Dialect/Quant/Utils/QuantizeUtils.cpp",
6401 "lib/Dialect/Quant/Utils/UniformSupport.cpp",
6404 "include/mlir/Dialect/Quant/FakeQuantSupport.h",
6405 "include/mlir/Dialect/Quant/Passes.h",
6406 "include/mlir/Dialect/Quant/QuantOps.h",
6407 "include/mlir/Dialect/Quant/QuantTypes.h",
6408 "include/mlir/Dialect/Quant/QuantizeUtils.h",
6409 "include/mlir/Dialect/Quant/UniformSupport.h",
6411 includes = ["include"],
6413 ":ArithmeticDialect",
6418 ":SideEffectInterfaces",
6426 name = "LinalgOpsTdFiles",
6428 "include/mlir/Dialect/Linalg/IR/LinalgBase.td",
6429 "include/mlir/Dialect/Linalg/IR/LinalgOps.td",
6431 includes = ["include"],
6433 ":ControlFlowInterfacesTdFiles",
6434 ":InferTypeOpInterfaceTdFiles",
6435 ":LoopLikeInterfaceTdFiles",
6437 ":SideEffectInterfacesTdFiles",
6438 ":TilingInterfaceTdFiles",
6439 ":ViewLikeInterfaceTdFiles",
6444 name = "LinalgOpsIncGen",
6445 strip_include_prefix = "include",
6449 "include/mlir/Dialect/Linalg/IR/LinalgOps.h.inc",
6453 "include/mlir/Dialect/Linalg/IR/LinalgOps.cpp.inc",
6457 "-gen-dialect-decls",
6460 "include/mlir/Dialect/Linalg/IR/LinalgOpsDialect.h.inc",
6464 "-gen-dialect-defs",
6467 "include/mlir/Dialect/Linalg/IR/LinalgOpsDialect.cpp.inc",
6470 tblgen = ":mlir-tblgen",
6471 td_file = "include/mlir/Dialect/Linalg/IR/LinalgOps.td",
6472 deps = [":LinalgOpsTdFiles"],
6476 name = "LinalgNamedStructuredOpsYamlIncGen",
6477 src = "include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yaml",
6481 "include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yamlgen.cpp.inc",
6485 "include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yamlgen.td",
6488 linalggen = ":mlir-linalg-ods-yaml-gen",
6492 name = "LinalgStructuredOpsTdFiles",
6494 "include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td",
6495 "include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yamlgen.td",
6496 "include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td",
6498 includes = ["include"],
6500 ":CopyOpInterfaceTdFiles",
6501 ":LinalgOpsTdFiles",
6503 ":SideEffectInterfacesTdFiles",
6508 name = "LinalgStructuredOpsIncGen",
6509 strip_include_prefix = "include",
6513 "include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.h.inc",
6517 "include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.cpp.inc",
6520 tblgen = ":mlir-tblgen",
6521 td_file = "include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td",
6522 deps = [":LinalgStructuredOpsTdFiles"],
6526 name = "LinalgInterfacesIncGen",
6527 strip_include_prefix = "include",
6530 ["-gen-op-interface-decls"],
6531 "include/mlir/Dialect/Linalg/IR/LinalgInterfaces.h.inc",
6534 ["-gen-op-interface-defs"],
6535 "include/mlir/Dialect/Linalg/IR/LinalgInterfaces.cpp.inc",
6538 tblgen = ":mlir-tblgen",
6539 td_file = "include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td",
6540 deps = [":LinalgStructuredOpsTdFiles"],
6544 name = "BufferizableOpInterfaceTdFiles",
6546 "include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.td",
6548 includes = ["include"],
6555 name = "BufferizableOpInterfaceIncGen",
6556 strip_include_prefix = "include",
6559 ["-gen-op-interface-decls"],
6560 "include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h.inc",
6563 ["-gen-op-interface-defs"],
6564 "include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.cpp.inc",
6567 tblgen = ":mlir-tblgen",
6568 td_file = "include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.td",
6570 ":BufferizableOpInterfaceTdFiles",
6575 name = "AffineBufferizableOpInterfaceImpl",
6577 "lib/Dialect/Linalg/ComprehensiveBufferize/AffineInterfaceImpl.cpp",
6580 "include/mlir/Dialect/Linalg/ComprehensiveBufferize/AffineInterfaceImpl.h",
6582 includes = ["include"],
6585 ":BufferizationDialect",
6591 name = "ArithBufferizableOpInterfaceImpl",
6593 "lib/Dialect/Linalg/ComprehensiveBufferize/ArithInterfaceImpl.cpp",
6596 "include/mlir/Dialect/Linalg/ComprehensiveBufferize/ArithInterfaceImpl.h",
6598 includes = ["include"],
6600 ":ArithmeticDialect",
6601 ":BufferizationDialect",
6611 name = "LinalgBufferizableOpInterfaceImpl",
6613 "lib/Dialect/Linalg/ComprehensiveBufferize/LinalgInterfaceImpl.cpp",
6616 "include/mlir/Dialect/Linalg/ComprehensiveBufferize/LinalgInterfaceImpl.h",
6618 includes = ["include"],
6620 ":BufferizationDialect",
6621 ":BufferizationTransforms",
6624 ":LinalgStructuredOpsIncGen",
6630 name = "SCFBufferizableOpInterfaceImpl",
6632 "lib/Dialect/Linalg/ComprehensiveBufferize/SCFInterfaceImpl.cpp",
6635 "include/mlir/Dialect/Linalg/ComprehensiveBufferize/SCFInterfaceImpl.h",
6637 includes = ["include"],
6639 ":BufferizationDialect",
6640 ":BufferizationTransforms",
6649 name = "StdBufferizableOpInterfaceImpl",
6651 "lib/Dialect/Linalg/ComprehensiveBufferize/StdInterfaceImpl.cpp",
6654 "include/mlir/Dialect/Linalg/ComprehensiveBufferize/StdInterfaceImpl.h",
6656 includes = ["include"],
6658 ":BufferizationDialect",
6667 name = "VectorBufferizableOpInterfaceImpl",
6669 "lib/Dialect/Linalg/ComprehensiveBufferize/VectorInterfaceImpl.cpp",
6672 "include/mlir/Dialect/Linalg/ComprehensiveBufferize/VectorInterfaceImpl.h",
6674 includes = ["include"],
6676 ":BufferizationDialect",
6685 name = "LinalgDocTdFiles",
6686 srcs = ["include/mlir/Dialect/Linalg/IR/LinalgDoc.td"],
6687 includes = ["include"],
6689 ":LinalgOpsTdFiles",
6690 ":LinalgStructuredOpsTdFiles",
6695 name = "LinalgDocIncGen",
6696 strip_include_prefix = "include",
6700 "g3doc/Dialects/Linalg/LinalgOps.md",
6703 tblgen = ":mlir-tblgen",
6704 td_file = "include/mlir/Dialect/Linalg/IR/LinalgDoc.td",
6705 deps = [":LinalgDocTdFiles"],
6709 name = "LinalgToLLVM",
6711 "lib/Conversion/LinalgToLLVM/*.cpp",
6712 "lib/Conversion/LinalgToLLVM/*.h",
6713 ]) + [":ConversionPassDetail"],
6715 "include/mlir/Conversion/LinalgToLLVM/*.h",
6717 includes = ["include"],
6719 ":AffineToStandard",
6721 ":ConversionPassIncGen",
6723 ":LLVMCommonConversion",
6726 ":LinalgTransforms",
6742 name = "LinalgToStandard",
6744 "lib/Conversion/LinalgToStandard/*.cpp",
6745 "lib/Conversion/LinalgToStandard/*.h",
6746 ]) + [":ConversionPassDetail"],
6748 "include/mlir/Conversion/LinalgToStandard/*.h",
6750 includes = ["include"],
6753 ":ConversionPassIncGen",
6756 ":LinalgTransforms",
6769 name = "LinalgToSPIRV",
6771 "lib/Conversion/LinalgToSPIRV/*.cpp",
6772 "lib/Conversion/LinalgToSPIRV/*.h",
6773 ]) + [":ConversionPassDetail"],
6775 "include/mlir/Conversion/LinalgToSPIRV/*.h",
6777 includes = ["include"],
6779 ":ConversionPassIncGen",
6783 ":LinalgTransforms",
6795 "lib/Dialect/Linalg/IR/LinalgDialect.cpp",
6796 "lib/Dialect/Linalg/IR/LinalgOps.cpp",
6799 "include/mlir/Dialect/Linalg/IR/Linalg.h",
6801 includes = ["include"],
6804 ":ArithmeticDialect",
6805 ":BufferizationDialect",
6809 ":InferTypeOpInterface",
6810 ":LinalgInterfaces",
6811 ":LinalgInterfacesIncGen",
6812 ":LinalgNamedStructuredOpsYamlIncGen",
6814 ":LinalgStructuredOpsIncGen",
6819 ":SideEffectInterfaces",
6824 ":ViewLikeInterface",
6830 name = "LinalgPassIncGen",
6831 strip_include_prefix = "include",
6838 "include/mlir/Dialect/Linalg/Passes.h.inc",
6842 "-gen-pass-capi-header",
6845 "include/mlir/Dialect/Linalg/Passes.capi.h.inc",
6849 "-gen-pass-capi-impl",
6852 "include/mlir/Dialect/Linalg/Passes.capi.cpp.inc",
6855 tblgen = ":mlir-tblgen",
6856 td_file = "include/mlir/Dialect/Linalg/Passes.td",
6857 deps = [":PassBaseTdFiles"],
6861 name = "LinalgTransforms",
6863 "lib/Dialect/Linalg/Transforms/*.cpp",
6864 "lib/Dialect/Linalg/Transforms/*.h",
6866 "lib/Dialect/Linalg/Analysis/DependenceAnalysis.cpp",
6867 "lib/Dialect/Linalg/Utils/Utils.cpp",
6870 "include/mlir/Dialect/Linalg/Analysis/DependenceAnalysis.h",
6871 "include/mlir/Dialect/Linalg/Passes.h",
6872 "include/mlir/Dialect/Linalg/Transforms/CodegenStrategy.h",
6873 "include/mlir/Dialect/Linalg/Transforms/HoistPadding.h",
6874 "include/mlir/Dialect/Linalg/Transforms/Hoisting.h",
6875 "include/mlir/Dialect/Linalg/Transforms/Transforms.h",
6876 "include/mlir/Dialect/Linalg/Utils/Utils.h",
6878 includes = ["include"],
6882 ":AffineBufferizableOpInterfaceImpl",
6885 ":ArithBufferizableOpInterfaceImpl",
6886 ":ArithmeticDialect",
6887 ":BufferizationDialect",
6888 ":BufferizationTransforms",
6892 ":InferTypeOpInterface",
6893 ":LinalgBufferizableOpInterfaceImpl",
6895 ":LinalgPassIncGen",
6896 ":LinalgStructuredOpsIncGen",
6899 ":ModuleBufferization",
6901 ":SCFBufferizableOpInterfaceImpl",
6905 ":StandardOpsTransforms",
6906 ":StdBufferizableOpInterfaceImpl",
6909 ":TensorTransforms",
6912 ":VectorBufferizableOpInterfaceImpl",
6915 ":X86VectorTransforms",
6921 name = "ModuleBufferization",
6923 "lib/Dialect/Linalg/ComprehensiveBufferize/ModuleBufferization.cpp",
6926 "include/mlir/Dialect/Linalg/ComprehensiveBufferize/ModuleBufferization.h",
6928 includes = ["include"],
6930 ":BufferizationDialect",
6931 ":BufferizationTransforms",
6942 name = "TilingInterface",
6943 srcs = ["lib/Interfaces/TilingInterface.cpp"],
6944 hdrs = ["include/mlir/Interfaces/TilingInterface.h"],
6945 includes = ["include"],
6949 ":TilingInterfaceIncGen",
6950 ":ViewLikeInterface",
6956 name = "VectorOpsTdFiles",
6957 srcs = ["include/mlir/Dialect/Vector/VectorOps.td"],
6958 includes = ["include"],
6961 ":SideEffectInterfacesTdFiles",
6962 ":VectorInterfacesTdFiles",
6963 ":ViewLikeInterfaceTdFiles",
6968 name = "VectorOpsIncGen",
6969 strip_include_prefix = "include",
6973 "include/mlir/Dialect/Vector/VectorOps.h.inc",
6977 "include/mlir/Dialect/Vector/VectorOps.cpp.inc",
6981 "-gen-dialect-decls",
6984 "include/mlir/Dialect/Vector/VectorOpsDialect.h.inc",
6988 "-gen-dialect-defs",
6991 "include/mlir/Dialect/Vector/VectorOpsDialect.cpp.inc",
6994 ["-gen-enum-decls"],
6995 "include/mlir/Dialect/Vector/VectorOpsEnums.h.inc",
6999 "include/mlir/Dialect/Vector/VectorOpsEnums.cpp.inc",
7003 "g3doc/Dialects/Vector/VectorOps.md",
7006 tblgen = ":mlir-tblgen",
7007 td_file = "include/mlir/Dialect/Vector/VectorOps.td",
7008 deps = [":VectorOpsTdFiles"],
7012 name = "VectorToLLVM",
7014 "lib/Conversion/VectorToLLVM/*.cpp",
7015 "lib/Conversion/VectorToLLVM/*.h",
7016 ]) + [":ConversionPassDetail"],
7018 "include/mlir/Conversion/VectorToLLVM/*.h",
7020 includes = ["include"],
7024 ":ArithmeticDialect",
7027 ":ArmSVETransforms",
7028 ":ConversionPassIncGen",
7031 ":LLVMCommonConversion",
7037 ":ToLLVMIRTranslation",
7041 ":X86VectorTransforms",
7048 name = "VectorToGPU",
7050 "lib/Conversion/VectorToGPU/*.cpp",
7051 "lib/Conversion/VectorToGPU/*.h",
7052 ]) + [":ConversionPassDetail"],
7054 "include/mlir/Conversion/VectorToGPU/*.h",
7056 includes = ["include"],
7060 ":ArithmeticDialect",
7061 ":ConversionPassIncGen",
7080 name = "VectorToSCF",
7082 "lib/Conversion/VectorToSCF/*.cpp",
7083 "lib/Conversion/VectorToSCF/*.h",
7084 ]) + [":ConversionPassDetail"],
7086 "include/mlir/Conversion/VectorToSCF/*.h",
7088 includes = ["include"],
7092 ":ArithmeticDialect",
7093 ":ConversionPassIncGen",
7110 name = "TosaDialectTdFiles",
7111 srcs = glob(["include/mlir/Dialect/Tosa/IR/*.td"]),
7113 ":InferTypeOpInterfaceTdFiles",
7114 ":LoopLikeInterfaceTdFiles",
7116 ":SideEffectInterfacesTdFiles",
7121 name = "TosaDialectIncGen",
7122 strip_include_prefix = "include",
7126 "include/mlir/Dialect/Tosa/IR/TosaOps.h.inc",
7130 "include/mlir/Dialect/Tosa/IR/TosaOps.cpp.inc",
7133 ["-gen-struct-attr-decls"],
7134 "include/mlir/Dialect/Tosa/IR/TosaStructs.h.inc",
7137 ["-gen-struct-attr-defs"],
7138 "include/mlir/Dialect/Tosa/IR/TosaStructs.cpp.inc",
7141 ["-gen-dialect-decls"],
7142 "include/mlir/Dialect/Tosa/IR/TosaOpsDialect.h.inc",
7145 ["-gen-dialect-defs"],
7146 "include/mlir/Dialect/Tosa/IR/TosaOpsDialect.cpp.inc",
7150 "g3doc/Dialects/Tosa/TosaOps.md",
7153 tblgen = ":mlir-tblgen",
7154 td_file = "include/mlir/Dialect/Tosa/IR/TosaOps.td",
7155 deps = [":TosaDialectTdFiles"],
7159 name = "TosaInterfacesIncGen",
7160 strip_include_prefix = "include",
7163 ["-gen-op-interface-decls"],
7164 "include/mlir/Dialect/Tosa/IR/TosaInterfaces.h.inc",
7167 ["-gen-op-interface-defs"],
7168 "include/mlir/Dialect/Tosa/IR/TosaInterfaces.cpp.inc",
7171 tblgen = ":mlir-tblgen",
7172 td_file = "include/mlir/Dialect/Tosa/IR/TosaInterfaces.td",
7173 deps = [":TosaDialectTdFiles"],
7177 name = "TosaPassIncGen",
7178 strip_include_prefix = "include",
7185 "include/mlir/Dialect/Tosa/Transforms/Passes.h.inc",
7188 tblgen = ":mlir-tblgen",
7189 td_file = "include/mlir/Dialect/Tosa/Transforms/Passes.td",
7190 deps = [":PassBaseTdFiles"],
7194 name = "TosaDialect",
7196 "lib/Dialect/Tosa/IR/*.cpp",
7197 "lib/Dialect/Tosa/IR/*.h",
7198 "lib/Dialect/Tosa/Utils/*.cpp",
7199 "lib/Dialect/Tosa/Transforms/*.cpp",
7202 "include/mlir/Dialect/Tosa/IR/*.h",
7203 "include/mlir/Dialect/Tosa/Utils/*.h",
7204 "include/mlir/Dialect/Tosa/Transforms/*.h",
7206 includes = ["include"],
7209 ":ArithmeticDialect",
7213 ":InferTypeOpInterface",
7214 ":LoopLikeInterface",
7219 ":TosaDialectIncGen",
7220 ":TosaInterfacesIncGen",
7228 name = "TosaToLinalg",
7230 "lib/Conversion/TosaToLinalg/*.cpp",
7231 "lib/Conversion/TosaToLinalg/*.h",
7232 ]) + [":ConversionPassDetail"],
7234 "include/mlir/Conversion/TosaToLinalg/*.h",
7238 "lib/Conversion/TosaToLinalg",
7241 ":ArithmeticDialect",
7242 ":ConversionPassIncGen",
7260 "lib/Conversion/TosaToSCF/*.cpp",
7261 "lib/Conversion/TosaToSCF/*.h",
7262 ]) + [":ConversionPassDetail"],
7264 "include/mlir/Conversion/TosaToSCF/*.h",
7268 "lib/Conversion/TosaToSCF",
7271 ":ConversionPassIncGen",
7282 name = "TosaToStandard",
7284 "lib/Conversion/TosaToStandard/*.cpp",
7285 "lib/Conversion/TosaToStandard/*.h",
7286 ]) + [":ConversionPassDetail"],
7288 "include/mlir/Conversion/TosaToStandard/*.h",
7292 "lib/Conversion/TosaToStandard",
7295 ":ArithmeticDialect",
7296 ":ConversionPassIncGen",
7307 name = "ComplexOpsTdFiles",
7309 "include/mlir/Dialect/Complex/IR/ComplexBase.td",
7310 "include/mlir/Dialect/Complex/IR/ComplexOps.td",
7312 includes = ["include"],
7314 ":InferTypeOpInterfaceTdFiles",
7316 ":SideEffectInterfacesTdFiles",
7321 name = "ComplexBaseIncGen",
7322 strip_include_prefix = "include",
7326 "-gen-dialect-decls",
7329 "include/mlir/Dialect/Complex/IR/ComplexOpsDialect.h.inc",
7333 "-gen-dialect-defs",
7336 "include/mlir/Dialect/Complex/IR/ComplexOpsDialect.cpp.inc",
7339 tblgen = ":mlir-tblgen",
7340 td_file = "include/mlir/Dialect/Complex/IR/ComplexBase.td",
7341 deps = [":ComplexOpsTdFiles"],
7345 name = "ComplexOpsIncGen",
7346 strip_include_prefix = "include",
7350 "include/mlir/Dialect/Complex/IR/ComplexOps.h.inc",
7354 "include/mlir/Dialect/Complex/IR/ComplexOps.cpp.inc",
7357 tblgen = ":mlir-tblgen",
7358 td_file = "include/mlir/Dialect/Complex/IR/ComplexOps.td",
7359 deps = [":ComplexOpsTdFiles"],
7363 name = "ComplexDialect",
7366 "lib/Dialect/Complex/IR/*.cpp",
7367 "lib/Dialect/Complex/IR/*.h",
7370 hdrs = ["include/mlir/Dialect/Complex/IR/Complex.h"],
7371 includes = ["include"],
7373 ":ArithmeticDialect",
7374 ":ComplexBaseIncGen",
7375 ":ComplexOpsIncGen",
7377 ":SideEffectInterfaces",
7380 ":VectorInterfaces",
7386 name = "ComplexToLLVM",
7388 "lib/Conversion/ComplexToLLVM/*.cpp",
7389 "lib/Conversion/ComplexToLLVM/*.h",
7390 ]) + [":ConversionPassDetail"],
7392 "include/mlir/Conversion/ComplexToLLVM/*.h",
7394 includes = ["include"],
7396 ":ArithmeticDialect",
7398 ":ConversionPassIncGen",
7400 ":LLVMCommonConversion",
7412 name = "ComplexToStandard",
7414 "lib/Conversion/ComplexToStandard/*.cpp",
7415 "lib/Conversion/ComplexToStandard/*.h",
7416 ]) + [":ConversionPassDetail"],
7418 "include/mlir/Conversion/ComplexToStandard/*.h",
7420 includes = ["include"],
7422 ":ArithmeticDialect",
7424 ":ConversionPassIncGen",
7434 "include/mlir/Interfaces/CallInterfaces.h",
7435 "include/mlir/Interfaces/CastInterfaces.h",
7436 "include/mlir/Interfaces/ControlFlowInterfaces.h",
7437 "include/mlir/Transforms/InliningUtils.h",
7441 name = "ArithmeticOpsTdFiles",
7443 "include/mlir/Dialect/Arithmetic/IR/ArithmeticBase.td",
7444 "include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td",
7446 includes = ["include"],
7448 ":CastInterfacesTdFiles",
7449 ":InferTypeOpInterfaceTdFiles",
7451 ":SideEffectInterfacesTdFiles",
7452 ":VectorInterfacesTdFiles",
7457 name = "ArithmeticBaseIncGen",
7458 strip_include_prefix = "include",
7462 "-gen-dialect-decls",
7465 "include/mlir/Dialect/Arithmetic/IR/ArithmeticOpsDialect.h.inc",
7469 "-gen-dialect-defs",
7472 "include/mlir/Dialect/Arithmetic/IR/ArithmeticOpsDialect.cpp.inc",
7475 ["-gen-enum-decls"],
7476 "include/mlir/Dialect/Arithmetic/IR/ArithmeticOpsEnums.h.inc",
7480 "include/mlir/Dialect/Arithmetic/IR/ArithmeticOpsEnums.cpp.inc",
7483 tblgen = ":mlir-tblgen",
7484 td_file = "include/mlir/Dialect/Arithmetic/IR/ArithmeticBase.td",
7485 deps = [":ArithmeticOpsTdFiles"],
7489 name = "ArithmeticOpsIncGen",
7490 strip_include_prefix = "include",
7494 "include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.h.inc",
7498 "include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.cpp.inc",
7501 tblgen = ":mlir-tblgen",
7502 td_file = "include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td",
7504 ":ArithmeticOpsTdFiles",
7509 name = "ArithmeticCanonicalizationIncGen",
7510 strip_include_prefix = "include/mlir/Dialect/Arithmetic/IR",
7514 "include/mlir/Dialect/Arithmetic/IR/ArithmeticCanonicalization.inc",
7517 tblgen = ":mlir-tblgen",
7518 td_file = "lib/Dialect/Arithmetic/IR/ArithmeticCanonicalization.td",
7520 ":ArithmeticOpsTdFiles",
7521 ":CastInterfacesTdFiles",
7527 name = "ArithmeticDialect",
7530 "lib/Dialect/Arithmetic/IR/*.cpp",
7531 "lib/Dialect/Arithmetic/IR/*.h",
7535 "include/mlir/Dialect/Arithmetic/IR/Arithmetic.h",
7536 "include/mlir/Transforms/InliningUtils.h",
7538 includes = ["include"],
7540 ":ArithmeticBaseIncGen",
7541 ":ArithmeticCanonicalizationIncGen",
7542 ":ArithmeticOpsIncGen",
7545 ":SideEffectInterfaces",
7547 ":VectorInterfaces",
7553 name = "ArithmeticPassIncGen",
7554 strip_include_prefix = "include",
7561 "include/mlir/Dialect/Arithmetic/Transforms/Passes.h.inc",
7564 tblgen = ":mlir-tblgen",
7565 td_file = "include/mlir/Dialect/Arithmetic/Transforms/Passes.td",
7566 deps = [":PassBaseTdFiles"],
7570 name = "ArithmeticTransforms",
7572 "lib/Dialect/Arithmetic/Transforms/*.cpp",
7573 "lib/Dialect/Arithmetic/Transforms/*.h",
7575 hdrs = ["include/mlir/Dialect/Arithmetic/Transforms/Passes.h"],
7576 includes = ["include"],
7578 ":ArithmeticDialect",
7579 ":ArithmeticPassIncGen",
7580 ":BufferizationDialect",
7581 ":BufferizationTransforms",
7591 name = "MathOpsTdFiles",
7593 "include/mlir/Dialect/Math/IR/MathBase.td",
7594 "include/mlir/Dialect/Math/IR/MathOps.td",
7596 includes = ["include"],
7598 ":InferTypeOpInterfaceTdFiles",
7600 ":SideEffectInterfacesTdFiles",
7601 ":VectorInterfacesTdFiles",
7606 name = "MathBaseIncGen",
7607 strip_include_prefix = "include",
7611 "-gen-dialect-decls",
7614 "include/mlir/Dialect/Math/IR/MathOpsDialect.h.inc",
7618 "-gen-dialect-defs",
7621 "include/mlir/Dialect/Math/IR/MathOpsDialect.cpp.inc",
7624 tblgen = ":mlir-tblgen",
7625 td_file = "include/mlir/Dialect/Math/IR/MathBase.td",
7626 deps = [":MathOpsTdFiles"],
7630 name = "MathOpsIncGen",
7631 strip_include_prefix = "include",
7635 "include/mlir/Dialect/Math/IR/MathOps.h.inc",
7639 "include/mlir/Dialect/Math/IR/MathOps.cpp.inc",
7642 tblgen = ":mlir-tblgen",
7643 td_file = "include/mlir/Dialect/Math/IR/MathOps.td",
7644 deps = [":MathOpsTdFiles"],
7648 name = "MathDialect",
7651 "lib/Dialect/Math/IR/*.cpp",
7652 "lib/Dialect/Math/IR/*.h",
7656 "include/mlir/Dialect/Math/IR/Math.h",
7657 "include/mlir/Transforms/InliningUtils.h",
7659 includes = ["include"],
7661 ":ArithmeticDialect",
7665 ":SideEffectInterfaces",
7667 ":VectorInterfaces",
7673 name = "MathTransforms",
7675 "lib/Dialect/Math/Transforms/*.cpp",
7676 "lib/Dialect/Math/Transforms/*.h",
7678 hdrs = glob(["include/mlir/Dialect/Math/Transforms/*.h"]),
7679 includes = ["include"],
7681 ":ArithmeticDialect",
7696 name = "MathToLibm",
7698 "lib/Conversion/MathToLibm/*.cpp",
7699 "lib/Conversion/MathToLibm/*.h",
7700 ]) + [":ConversionPassDetail"],
7702 "include/mlir/Conversion/MathToLibm/*.h",
7704 includes = ["include"],
7706 ":ArithmeticDialect",
7707 ":ConversionPassIncGen",
7722 name = "MemRefOpsTdFiles",
7724 "include/mlir/Dialect/MemRef/IR/MemRefBase.td",
7725 "include/mlir/Dialect/MemRef/IR/MemRefOps.td",
7727 includes = ["include"],
7729 ":ArithmeticOpsTdFiles",
7730 ":CastInterfacesTdFiles",
7731 ":ControlFlowInterfacesTdFiles",
7732 ":CopyOpInterfaceTdFiles",
7734 ":SideEffectInterfacesTdFiles",
7735 ":ViewLikeInterfaceTdFiles",
7740 name = "MemRefBaseIncGen",
7741 strip_include_prefix = "include",
7745 "-gen-dialect-decls",
7748 "include/mlir/Dialect/MemRef/IR/MemRefOpsDialect.h.inc",
7752 "-gen-dialect-defs",
7755 "include/mlir/Dialect/MemRef/IR/MemRefOpsDialect.cpp.inc",
7758 tblgen = ":mlir-tblgen",
7759 td_file = "include/mlir/Dialect/MemRef/IR/MemRefBase.td",
7760 deps = [":MemRefOpsTdFiles"],
7764 name = "MemRefOpsIncGen",
7765 strip_include_prefix = "include",
7769 "include/mlir/Dialect/MemRef/IR/MemRefOps.h.inc",
7773 "include/mlir/Dialect/MemRef/IR/MemRefOps.cpp.inc",
7776 tblgen = ":mlir-tblgen",
7777 td_file = "include/mlir/Dialect/MemRef/IR/MemRefOps.td",
7778 deps = [":MemRefOpsTdFiles"],
7782 name = "MemRefDialect",
7785 "lib/Dialect/MemRef/IR/*.cpp",
7786 "lib/Dialect/MemRef/IR/*.h",
7787 "lib/Dialect/MemRef/Utils/*.cpp",
7791 "include/mlir/Dialect/MemRef/IR/MemRef.h",
7792 "include/mlir/Dialect/MemRef/Utils/MemRefUtils.h",
7794 includes = ["include"],
7796 ":ArithmeticDialect",
7797 ":ControlFlowInterfaces",
7801 ":InferTypeOpInterface",
7802 ":MemRefBaseIncGen",
7805 ":ViewLikeInterface",
7811 name = "MemRefPassIncGen",
7812 strip_include_prefix = "include",
7819 "include/mlir/Dialect/MemRef/Transforms/Passes.h.inc",
7822 tblgen = ":mlir-tblgen",
7823 td_file = "include/mlir/Dialect/MemRef/Transforms/Passes.td",
7824 deps = [":PassBaseTdFiles"],
7828 name = "MemRefTransforms",
7831 "lib/Dialect/MemRef/Transforms/*.cpp",
7832 "lib/Dialect/MemRef/Transforms/*.h",
7835 hdrs = glob(["include/mlir/Dialect/MemRef/Transforms/*.h"]),
7836 includes = ["include"],
7839 ":ArithmeticDialect",
7841 ":InferTypeOpInterface",
7843 ":MemRefPassIncGen",
7855 name = "AllocationOpInterfaceTdFiles",
7856 srcs = ["include/mlir/Dialect/Bufferization/IR/AllocationOpInterface.td"],
7857 includes = ["include"],
7858 deps = [":OpBaseTdFiles"],
7862 name = "AllocationOpInterfaceIncGen",
7863 strip_include_prefix = "include",
7866 ["-gen-op-interface-decls"],
7867 "include/mlir/Dialect/Bufferization/IR/AllocationOpInterface.h.inc",
7870 ["-gen-op-interface-defs"],
7871 "include/mlir/Dialect/Bufferization/IR/AllocationOpInterface.cpp.inc",
7874 tblgen = ":mlir-tblgen",
7875 td_file = "include/mlir/Dialect/Bufferization/IR/AllocationOpInterface.td",
7876 deps = [":AllocationOpInterfaceTdFiles"],
7880 name = "AllocationOpInterface",
7881 srcs = ["lib/Dialect/Bufferization/IR/AllocationOpInterface.cpp"],
7882 hdrs = ["include/mlir/Dialect/Bufferization/IR/AllocationOpInterface.h"],
7883 includes = ["include"],
7885 ":AllocationOpInterfaceIncGen",
7891 name = "BufferizationOpsTdFiles",
7893 "include/mlir/Dialect/Bufferization/IR/BufferizationBase.td",
7894 "include/mlir/Dialect/Bufferization/IR/BufferizationOps.td",
7896 includes = ["include"],
7898 ":AllocationOpInterfaceTdFiles",
7899 ":CopyOpInterfaceTdFiles",
7901 ":SideEffectInterfacesTdFiles",
7906 name = "BufferizationBaseIncGen",
7907 strip_include_prefix = "include",
7911 "-gen-dialect-decls",
7912 "-dialect=bufferization",
7914 "include/mlir/Dialect/Bufferization/IR/BufferizationOpsDialect.h.inc",
7918 "-gen-dialect-defs",
7919 "-dialect=bufferization",
7921 "include/mlir/Dialect/Bufferization/IR/BufferizationOpsDialect.cpp.inc",
7924 tblgen = ":mlir-tblgen",
7925 td_file = "include/mlir/Dialect/Bufferization/IR/BufferizationBase.td",
7926 deps = [":BufferizationOpsTdFiles"],
7930 name = "BufferizationOpsIncGen",
7931 strip_include_prefix = "include",
7935 "include/mlir/Dialect/Bufferization/IR/BufferizationOps.h.inc",
7939 "include/mlir/Dialect/Bufferization/IR/BufferizationOps.cpp.inc",
7942 tblgen = ":mlir-tblgen",
7943 td_file = "include/mlir/Dialect/Bufferization/IR/BufferizationOps.td",
7945 ":BufferizableOpInterfaceTdFiles",
7946 ":BufferizationOpsTdFiles",
7951 name = "BufferizationDialect",
7953 "lib/Dialect/Bufferization/IR/BufferizableOpInterface.cpp",
7954 "lib/Dialect/Bufferization/IR/BufferizationDialect.cpp",
7955 "lib/Dialect/Bufferization/IR/BufferizationOps.cpp",
7958 "include/mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h",
7959 "include/mlir/Dialect/Bufferization/IR/Bufferization.h",
7961 includes = ["include"],
7963 ":AllocationOpInterface",
7964 ":BufferizableOpInterfaceIncGen",
7965 ":BufferizationBaseIncGen",
7966 ":BufferizationOpsIncGen",
7967 ":ControlFlowInterfaces",
7970 ":InferTypeOpInterface",
7975 ":ViewLikeInterface",
7981 name = "BufferizationPassIncGen",
7982 strip_include_prefix = "include",
7987 "-name=Bufferization",
7989 "include/mlir/Dialect/Bufferization/Transforms/Passes.h.inc",
7992 tblgen = ":mlir-tblgen",
7993 td_file = "include/mlir/Dialect/Bufferization/Transforms/Passes.td",
7994 deps = [":PassBaseTdFiles"],
7998 name = "BufferizationTransforms",
8001 "lib/Dialect/Bufferization/Transforms/*.cpp",
8002 "lib/Dialect/Bufferization/Transforms/*.h",
8005 hdrs = glob(["include/mlir/Dialect/Bufferization/Transforms/*.h"]),
8006 includes = ["include"],
8008 ":AllocationOpInterface",
8010 ":BufferizationDialect",
8011 ":BufferizationPassIncGen",
8012 ":ControlFlowInterfaces",
8015 ":InferTypeOpInterface",
8026 name = "BufferizationToMemRef",
8028 "lib/Conversion/BufferizationToMemRef/BufferizationToMemRef.cpp",
8029 ":ConversionPassDetail",
8032 "include/mlir/Conversion/BufferizationToMemRef/BufferizationToMemRef.h",
8034 includes = ["include"],
8036 ":ArithmeticDialect",
8037 ":BufferizationDialect",
8038 ":ConversionPassIncGen",
8049 name = "DLTIDialectTdFiles",
8051 "include/mlir/Dialect/DLTI/DLTI.td",
8052 "include/mlir/Dialect/DLTI/DLTIBase.td",
8054 includes = ["include"],
8055 deps = [":OpBaseTdFiles"],
8059 name = "DLTIBaseIncGen",
8060 strip_include_prefix = "include",
8064 "-gen-dialect-decls",
8067 "include/mlir/Dialect/DLTI/DLTIDialect.h.inc",
8071 "-gen-dialect-defs",
8074 "include/mlir/Dialect/DLTI/DLTIDialect.cpp.inc",
8077 tblgen = ":mlir-tblgen",
8078 td_file = "include/mlir/Dialect/DLTI/DLTIBase.td",
8079 deps = [":OpBaseTdFiles"],
8083 name = "DLTIDialect",
8084 srcs = glob(["lib/Dialect/DLTI/*.cpp"]),
8085 hdrs = glob(["include/mlir/Dialect/DLTI/*.h"]),
8086 includes = ["include"],
8089 ":DataLayoutInterfaces",
8096 name = "ReducerIncGen",
8097 strip_include_prefix = "include",
8104 "include/mlir/Reducer/Passes.h.inc",
8107 tblgen = ":mlir-tblgen",
8108 td_file = "include/mlir/Reducer/Passes.td",
8117 srcs = glob(["lib/Reducer/*.cpp"]),
8118 hdrs = glob(["include/mlir/Reducer/*.h"]),
8119 includes = ["include"],
8132 name = "MlirReduceLib",
8133 srcs = ["lib/Tools/mlir-reduce/MlirReduceMain.cpp"],
8134 hdrs = ["include/mlir/Tools/mlir-reduce/MlirReduceMain.h"],
8135 includes = ["include"],
8148 name = "mlir-reduce",
8149 srcs = ["tools/mlir-reduce/mlir-reduce.cpp"],
8150 includes = ["include"],
8151 local_defines = ["MLIR_INCLUDE_TESTS"],
8154 ":AllPassesAndDialects",
8159 "//mlir/test:TestDialect",
8167 "lib/Tools/PDLL/AST/*.cpp",
8168 "lib/Tools/PDLL/AST/*.h",
8171 hdrs = glob(["include/mlir/Tools/PDLL/AST/*.h"]),
8172 includes = ["include"],
8180 name = "PDLLParser",
8183 "lib/Tools/PDLL/Parser/*.cpp",
8184 "lib/Tools/PDLL/Parser/*.h",
8187 hdrs = glob(["include/mlir/Tools/PDLL/Parser/*.h"]),
8188 includes = ["include"],
8200 "tools/mlir-pdll/mlir-pdll.cpp",