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")
10 load(":build_defs.bzl", "cc_headers_only", "if_cuda_available")
13 default_visibility = ["//visibility:public"],
14 licenses = ["notice"],
19 "include/mlir/Dialect/LLVMIR/LLVMOps.td",
25 srcs = glob(["include/mlir-c/**/*"]), # <== i.e. match the entire tree
28 exports_files(glob(["include/**/*.td"]))
32 name = name + "IncGen",
33 strip_include_prefix = "include",
36 ["-gen-op-interface-decls"],
37 "include/mlir/IR/" + name + ".h.inc",
40 ["-gen-op-interface-defs"],
41 "include/mlir/IR/" + name + ".cpp.inc",
44 tblgen = ":mlir-tblgen",
45 td_file = "include/mlir/IR/" + name + ".td",
46 deps = [":OpBaseTdFiles"],
50 "RegionKindInterface",
56 name = "TensorEncodingIncGen",
57 strip_include_prefix = "include",
60 ["-gen-attr-interface-decls"],
61 "include/mlir/IR/TensorEncInterfaces.h.inc",
64 ["-gen-attr-interface-defs"],
65 "include/mlir/IR/TensorEncInterfaces.cpp.inc",
68 tblgen = ":mlir-tblgen",
69 td_file = "include/mlir/IR/TensorEncoding.td",
70 deps = [":TensorOpsTdFiles"],
74 name = "SubElementInterfacesTdFiles",
75 srcs = ["include/mlir/IR/SubElementInterfaces.td"],
76 includes = ["include"],
77 deps = [":OpBaseTdFiles"],
81 name = "SubElementInterfacesIncGen",
82 strip_include_prefix = "include",
85 ["-gen-attr-interface-decls"],
86 "include/mlir/IR/SubElementAttrInterfaces.h.inc",
89 ["-gen-attr-interface-defs"],
90 "include/mlir/IR/SubElementAttrInterfaces.cpp.inc",
93 ["-gen-type-interface-decls"],
94 "include/mlir/IR/SubElementTypeInterfaces.h.inc",
97 ["-gen-type-interface-defs"],
98 "include/mlir/IR/SubElementTypeInterfaces.cpp.inc",
101 tblgen = ":mlir-tblgen",
102 td_file = "include/mlir/IR/SubElementInterfaces.td",
103 deps = [":SubElementInterfacesTdFiles"],
107 name = "BuiltinDialectTdFiles",
109 "include/mlir/IR/BuiltinDialect.td",
110 "include/mlir/IR/BuiltinLocationAttributes.td",
111 "include/mlir/IR/BuiltinOps.td",
112 "include/mlir/IR/BuiltinTypeInterfaces.td",
113 "include/mlir/IR/BuiltinTypes.td",
115 includes = ["include"],
117 ":CallInterfacesTdFiles",
118 ":CastInterfacesTdFiles",
119 ":DataLayoutInterfacesTdFiles",
121 ":SideEffectInterfacesTdFiles",
122 ":SubElementInterfacesTdFiles",
127 name = "BuiltinDialectIncGen",
128 strip_include_prefix = "include",
131 ["-gen-dialect-decls"],
132 "include/mlir/IR/BuiltinDialect.h.inc",
135 ["-gen-dialect-defs"],
136 "include/mlir/IR/BuiltinDialect.cpp.inc",
139 tblgen = ":mlir-tblgen",
140 td_file = "include/mlir/IR/BuiltinDialect.td",
141 deps = [":BuiltinDialectTdFiles"],
145 name = "BuiltinAttributesIncGen",
146 strip_include_prefix = "include",
149 ["--gen-attrdef-decls"],
150 "include/mlir/IR/BuiltinAttributes.h.inc",
153 ["--gen-attrdef-defs"],
154 "include/mlir/IR/BuiltinAttributes.cpp.inc",
157 tblgen = ":mlir-tblgen",
158 td_file = "include/mlir/IR/BuiltinAttributes.td",
159 deps = [":BuiltinDialectTdFiles"],
163 name = "BuiltinLocationAttributesIncGen",
164 strip_include_prefix = "include",
167 ["--gen-attrdef-decls"],
168 "include/mlir/IR/BuiltinLocationAttributes.h.inc",
171 ["--gen-attrdef-defs"],
172 "include/mlir/IR/BuiltinLocationAttributes.cpp.inc",
175 tblgen = ":mlir-tblgen",
176 td_file = "include/mlir/IR/BuiltinLocationAttributes.td",
177 deps = [":BuiltinDialectTdFiles"],
181 name = "BuiltinOpsIncGen",
182 strip_include_prefix = "include",
186 "include/mlir/IR/BuiltinOps.h.inc",
190 "include/mlir/IR/BuiltinOps.cpp.inc",
193 tblgen = ":mlir-tblgen",
194 td_file = "include/mlir/IR/BuiltinOps.td",
195 deps = [":BuiltinDialectTdFiles"],
199 name = "BuiltinTypesIncGen",
200 strip_include_prefix = "include",
203 ["--gen-typedef-decls"],
204 "include/mlir/IR/BuiltinTypes.h.inc",
207 ["--gen-typedef-defs"],
208 "include/mlir/IR/BuiltinTypes.cpp.inc",
211 tblgen = ":mlir-tblgen",
212 td_file = "include/mlir/IR/BuiltinTypes.td",
213 deps = [":BuiltinDialectTdFiles"],
217 name = "BuiltinTypeInterfacesIncGen",
218 strip_include_prefix = "include",
221 ["--gen-type-interface-decls"],
222 "include/mlir/IR/BuiltinTypeInterfaces.h.inc",
225 ["--gen-type-interface-defs"],
226 "include/mlir/IR/BuiltinTypeInterfaces.cpp.inc",
229 tblgen = ":mlir-tblgen",
230 td_file = "include/mlir/IR/BuiltinTypeInterfaces.td",
231 deps = [":BuiltinDialectTdFiles"],
241 "include/mlir/IR/*.h",
243 "include/mlir/Interfaces/CallInterfaces.h",
244 "include/mlir/Interfaces/CastInterfaces.h",
245 "include/mlir/Interfaces/SideEffectInterfaces.h",
246 "include/mlir/Interfaces/DataLayoutInterfaces.h",
247 "include/mlir/Interfaces/DecodeAttributesInterfaces.h",
248 "include/mlir/Interfaces/FoldInterfaces.h",
250 includes = ["include"],
252 ":BuiltinAttributesIncGen",
253 ":BuiltinDialectIncGen",
254 ":BuiltinLocationAttributesIncGen",
256 ":BuiltinTypeInterfacesIncGen",
257 ":BuiltinTypesIncGen",
258 ":CallOpInterfacesIncGen",
259 ":CastOpInterfacesIncGen",
260 ":DataLayoutInterfacesIncGen",
261 ":InferTypeOpInterfaceIncGen",
262 ":OpAsmInterfaceIncGen",
263 ":RegionKindInterfaceIncGen",
264 ":SideEffectInterfacesIncGen",
265 ":SubElementInterfacesIncGen",
267 ":SymbolInterfacesIncGen",
268 ":TensorEncodingIncGen",
280 "include/mlir/Pass/*.h",
282 includes = ["include"],
293 "lib/CAPI/Dialect/Standard.cpp",
294 "lib/CAPI/IR/AffineExpr.cpp",
295 "lib/CAPI/IR/AffineMap.cpp",
296 "lib/CAPI/IR/BuiltinAttributes.cpp",
297 "lib/CAPI/IR/BuiltinTypes.cpp",
298 "lib/CAPI/IR/Diagnostics.cpp",
299 "lib/CAPI/IR/DialectHandle.cpp",
300 "lib/CAPI/IR/IR.cpp",
301 "lib/CAPI/IR/IntegerSet.cpp",
302 "lib/CAPI/IR/Pass.cpp",
303 "lib/CAPI/IR/Support.cpp",
306 "include/mlir-c/AffineExpr.h",
307 "include/mlir-c/AffineMap.h",
308 "include/mlir-c/BuiltinAttributes.h",
309 "include/mlir-c/BuiltinTypes.h",
310 "include/mlir-c/Diagnostics.h",
311 "include/mlir-c/Dialect/Standard.h",
312 "include/mlir-c/ExecutionEngine.h",
313 "include/mlir-c/IR.h",
314 "include/mlir-c/IntegerSet.h",
315 "include/mlir-c/Pass.h",
316 "include/mlir-c/Registration.h",
317 "include/mlir-c/Support.h",
318 "include/mlir/CAPI/AffineExpr.h",
319 "include/mlir/CAPI/AffineMap.h",
320 "include/mlir/CAPI/Diagnostics.h",
321 "include/mlir/CAPI/IR.h",
322 "include/mlir/CAPI/IntegerSet.h",
323 "include/mlir/CAPI/Pass.h",
324 "include/mlir/CAPI/Registration.h",
325 "include/mlir/CAPI/Support.h",
326 "include/mlir/CAPI/Utils.h",
327 "include/mlir/CAPI/Wrap.h",
329 includes = ["include"],
331 ":ConversionPassIncGen",
333 ":InferTypeOpInterface",
345 "lib/CAPI/Dialect/Async.cpp",
346 "lib/CAPI/Dialect/AsyncPasses.cpp",
349 "include/mlir-c/Dialect/Async.h",
351 includes = ["include"],
364 "lib/CAPI/Dialect/Linalg.cpp",
365 "lib/CAPI/Dialect/LinalgPasses.cpp",
368 "include/mlir-c/Dialect/Linalg.h",
370 includes = ["include"],
383 "lib/CAPI/Dialect/LLVM.cpp",
386 "include/mlir-c/Dialect/LLVM.h",
388 includes = ["include"],
398 "lib/CAPI/Dialect/GPU.cpp",
399 "lib/CAPI/Dialect/GPUPasses.cpp",
402 "include/mlir-c/Dialect/GPU.h",
404 includes = ["include"],
415 name = "CAPISparseTensor",
417 "lib/CAPI/Dialect/SparseTensor.cpp",
418 "lib/CAPI/Dialect/SparseTensorPasses.cpp",
421 "include/mlir-c/Dialect/SparseTensor.h",
423 includes = ["include"],
428 ":SparseTensorPassIncGen",
429 ":SparseTensorTransforms",
435 name = "CAPIConversion",
436 srcs = ["lib/CAPI/Conversion/Passes.cpp"],
437 hdrs = ["include/mlir-c/Conversion.h"],
438 includes = ["include"],
441 ":ConversionPassIncGen",
449 srcs = ["lib/CAPI/Debug/Debug.cpp"],
450 hdrs = ["include/mlir-c/Debug.h"],
451 includes = ["include"],
460 name = "CAPIExecutionEngine",
461 srcs = ["lib/CAPI/ExecutionEngine/ExecutionEngine.cpp"],
463 "include/mlir-c/ExecutionEngine.h",
464 "include/mlir/CAPI/ExecutionEngine.h",
466 includes = ["include"],
470 ":ExecutionEngineUtils",
471 ":LLVMToLLVMIRTranslation",
478 name = "CAPITransforms",
479 srcs = ["lib/CAPI/Transforms/Passes.cpp"],
480 hdrs = ["include/mlir-c/Transforms.h"],
481 includes = ["include"],
486 ":TransformsPassIncGen",
491 name = "CAPIRegistration",
492 srcs = ["lib/CAPI/Registration/Registration.cpp"],
493 hdrs = ["include/mlir-c/Registration.h"],
494 includes = ["include"],
496 ":AllPassesAndDialects",
498 ":LLVMToLLVMIRTranslation",
502 ##---------------------------------------------------------------------------##
503 # Sources of Python bindings.
504 #----------------------------------------------------------------------------##
507 glob(["lib/Bindings/Python/**/*.cpp"]),
511 name = "MLIRBindingsPythonHeadersAndDeps",
514 "lib/Bindings/Python",
517 "manual", # External dependency
518 "nobuildkite", # TODO(gcmn): Add support for this target
520 textual_hdrs = glob([
521 "lib/Bindings/Python/*.h",
522 "include/mlir-c/Bindings/Python/*.h",
523 "include/mlir/Bindings/Python/*.h",
528 "@python_runtime//:headers",
533 name = "MLIRBindingsPythonCore",
535 "lib/Bindings/Python/DialectLinalg.cpp",
536 "lib/Bindings/Python/DialectSparseTensor.cpp",
537 "lib/Bindings/Python/IRAffine.cpp",
538 "lib/Bindings/Python/IRAttributes.cpp",
539 "lib/Bindings/Python/IRCore.cpp",
540 "lib/Bindings/Python/IRModule.cpp",
541 "lib/Bindings/Python/IRTypes.cpp",
542 "lib/Bindings/Python/Pass.cpp",
543 "lib/Bindings/Python/PybindUtils.cpp",
545 # These flags are needed for pybind11 to work.
551 # Cannot use header_modules (parse_headers feature fails).
552 "-use_header_modules",
555 "manual", # External dependency
556 "nobuildkite", # TODO(gcmn): Add support for this target
566 ":MLIRBindingsPythonHeadersAndDeps",
569 "@python_runtime//:headers",
578 PYBIND11_FEATURES = [
579 # Cannot use header_modules (parse_headers feature fails).
580 "-use_header_modules",
583 # Dynamic library with the MLIR Python extension.
586 srcs = ["lib/Bindings/Python/MainModule.cpp"],
587 # These flags are needed for pybind11 to work.
588 copts = PYBIND11_COPTS,
589 features = PYBIND11_FEATURES,
593 "manual", # External dependency
594 "nobuildkite", # TODO(gcmn): Add support for this target
597 ":MLIRBindingsPythonCore",
598 ":MLIRBindingsPythonHeadersAndDeps",
602 # Dynamic library with the MLIR Conversions Python extension.
604 name = "_mlirConversions.so",
605 srcs = ["lib/Bindings/Python/Conversions/Conversions.cpp"],
606 copts = PYBIND11_COPTS,
607 features = PYBIND11_FEATURES,
611 "manual", # External dependency
612 "nobuildkite", # TODO(gcmn): Add support for this target
616 ":MLIRBindingsPythonHeadersAndDeps",
618 "@python_runtime//:headers",
622 # Dynamic library with the MLIR Conversions Python extension.
624 name = "_mlirExecutionEngine.so",
625 srcs = ["lib/Bindings/Python/ExecutionEngineModule.cpp"],
626 copts = PYBIND11_COPTS,
627 features = PYBIND11_FEATURES,
631 "manual", # External dependency
632 "nobuildkite", # TODO(gcmn): Add support for this target
635 ":CAPIExecutionEngine",
636 ":MLIRBindingsPythonHeadersAndDeps",
638 "@python_runtime//:headers",
642 # Dynamic library with the MLIR Transforms Python extension.
644 name = "_mlirTransforms.so",
645 srcs = ["lib/Bindings/Python/Transforms/Transforms.cpp"],
646 copts = PYBIND11_COPTS,
647 features = PYBIND11_FEATURES,
651 "manual", # External dependency
652 "nobuildkite", # TODO(gcmn): Add support for this target
656 ":MLIRBindingsPythonHeadersAndDeps",
658 "@python_runtime//:headers",
662 # Dynamic library with the MLIR Linalg dialect+passes Python extension.
664 name = "_mlirLinalgPasses.so",
665 srcs = ["lib/Bindings/Python/LinalgPasses.cpp"],
666 copts = PYBIND11_COPTS,
667 features = PYBIND11_FEATURES,
671 "manual", # External dependency
672 "nobuildkite", # TODO(gcmn): Add support for this target
676 ":MLIRBindingsPythonHeadersAndDeps",
678 "@python_runtime//:headers",
682 ##---------------------------------------------------------------------------##
685 name = "OpBaseTdFiles",
687 "include/mlir/IR/OpAsmInterface.td",
688 "include/mlir/IR/OpBase.td",
689 "include/mlir/IR/RegionKindInterface.td",
690 "include/mlir/IR/SymbolInterfaces.td",
691 "include/mlir/IR/TensorEncoding.td",
693 includes = ["include"],
697 name = "CallInterfacesTdFiles",
698 srcs = ["include/mlir/Interfaces/CallInterfaces.td"],
699 includes = ["include"],
700 deps = [":OpBaseTdFiles"],
704 name = "CastInterfacesTdFiles",
705 srcs = ["include/mlir/Interfaces/CastInterfaces.td"],
706 includes = ["include"],
707 deps = [":OpBaseTdFiles"],
711 name = "ControlFlowInterfacesTdFiles",
712 srcs = ["include/mlir/Interfaces/ControlFlowInterfaces.td"],
713 includes = ["include"],
714 deps = [":OpBaseTdFiles"],
718 name = "CopyOpInterfaceTdFiles",
719 srcs = ["include/mlir/Interfaces/CopyOpInterface.td"],
720 includes = ["include"],
721 deps = [":OpBaseTdFiles"],
725 name = "DerivedAttributeOpInterfaceTdFiles",
726 srcs = ["include/mlir/Interfaces/DerivedAttributeOpInterface.td"],
727 includes = ["include"],
728 deps = [":OpBaseTdFiles"],
732 name = "InferTypeOpInterfaceTdFiles",
733 srcs = ["include/mlir/Interfaces/InferTypeOpInterface.td"],
734 includes = ["include"],
735 deps = [":OpBaseTdFiles"],
739 name = "LoopLikeInterfaceTdFiles",
740 srcs = ["include/mlir/Interfaces/LoopLikeInterface.td"],
741 includes = ["include"],
742 deps = [":OpBaseTdFiles"],
746 name = "SideEffectInterfacesTdFiles",
748 "include/mlir/Interfaces/SideEffectInterfaceBase.td",
749 "include/mlir/Interfaces/SideEffectInterfaces.td",
751 includes = ["include"],
752 deps = [":OpBaseTdFiles"],
756 name = "SideEffectTdFiles",
757 actual = ":SideEffectInterfacesTdFiles",
761 name = "VectorInterfacesTdFiles",
762 srcs = ["include/mlir/Interfaces/VectorInterfaces.td"],
763 includes = ["include"],
764 deps = [":OpBaseTdFiles"],
768 name = "ViewLikeInterfaceTdFiles",
769 srcs = ["include/mlir/Interfaces/ViewLikeInterface.td"],
770 includes = ["include"],
771 deps = [":OpBaseTdFiles"],
775 name = "ReducerTdFiles",
776 srcs = ["include/mlir/Reducer/Passes.td"],
777 includes = ["include"],
778 deps = [":OpBaseTdFiles"],
781 ##---------------------------------------------------------------------------##
783 ##---------------------------------------------------------------------------##
786 name = "PassBaseTdFiles",
787 srcs = ["include/mlir/Pass/PassBase.td"],
788 includes = ["include"],
792 name = "RewritePassBaseTdFiles",
793 srcs = ["include/mlir/Rewrite/PassUtil.td"],
794 includes = ["include"],
798 name = "AffineOpsTdFiles",
800 "include/mlir/Dialect/Affine/IR/AffineMemoryOpInterfaces.td",
801 "include/mlir/Dialect/Affine/IR/AffineOps.td",
803 includes = ["include"],
805 ":LoopLikeInterfaceTdFiles",
807 ":SideEffectInterfacesTdFiles",
813 name = "AffineOpsIncGen",
814 strip_include_prefix = "include",
818 "include/mlir/Dialect/Affine/IR/AffineOps.h.inc",
822 "include/mlir/Dialect/Affine/IR/AffineOps.cpp.inc",
825 ["-gen-dialect-decls"],
826 "include/mlir/Dialect/Affine/IR/AffineOpsDialect.h.inc",
829 ["-gen-dialect-defs"],
830 "include/mlir/Dialect/Affine/IR/AffineOpsDialect.cpp.inc",
833 tblgen = ":mlir-tblgen",
834 td_file = "include/mlir/Dialect/Affine/IR/AffineOps.td",
835 deps = [":AffineOpsTdFiles"],
839 name = "AffineMemoryOpInterfacesIncGen",
840 strip_include_prefix = "include",
843 ["-gen-op-interface-decls"],
844 "include/mlir/Dialect/Affine/IR/AffineMemoryOpInterfaces.h.inc",
847 ["-gen-op-interface-defs"],
848 "include/mlir/Dialect/Affine/IR/AffineMemoryOpInterfaces.cpp.inc",
851 tblgen = ":mlir-tblgen",
852 td_file = "include/mlir/Dialect/Affine/IR/AffineMemoryOpInterfaces.td",
853 deps = [":AffineOpsTdFiles"],
856 ##---------------------------------------------------------------------------##
858 ##---------------------------------------------------------------------------##
861 name = "EmitCTdFiles",
863 "include/mlir/Dialect/EmitC/IR/EmitC.td",
864 "include/mlir/Dialect/EmitC/IR/EmitCAttributes.td",
865 "include/mlir/Dialect/EmitC/IR/EmitCBase.td",
866 "include/mlir/Dialect/EmitC/IR/EmitCTypes.td",
868 includes = ["include"],
871 ":SideEffectInterfacesTdFiles",
876 name = "EmitCAttributesIncGen",
877 strip_include_prefix = "include",
880 ["--gen-attrdef-decls"],
881 "include/mlir/Dialect/EmitC/IR/EmitCAttributes.h.inc",
884 ["--gen-attrdef-defs"],
885 "include/mlir/Dialect/EmitC/IR/EmitCAttributes.cpp.inc",
888 tblgen = ":mlir-tblgen",
889 td_file = "include/mlir/Dialect/EmitC/IR/EmitCAttributes.td",
890 deps = [":EmitCTdFiles"],
894 name = "EmitCOpsIncGen",
895 strip_include_prefix = "include",
898 ["-gen-dialect-decls"],
899 "include/mlir/Dialect/EmitC/IR/EmitCDialect.h.inc",
902 ["-gen-dialect-defs"],
903 "include/mlir/Dialect/EmitC/IR/EmitCDialect.cpp.inc",
907 "include/mlir/Dialect/EmitC/IR/EmitC.h.inc",
911 "include/mlir/Dialect/EmitC/IR/EmitC.cpp.inc",
914 ["-gen-typedef-decls"],
915 "include/mlir/Dialect/EmitC/IR/EmitCTypes.h.inc",
918 ["-gen-typedef-defs"],
919 "include/mlir/Dialect/EmitC/IR/EmitCTypes.cpp.inc",
922 tblgen = ":mlir-tblgen",
923 td_file = "include/mlir/Dialect/EmitC/IR/EmitC.td",
924 deps = [":EmitCTdFiles"],
927 ##---------------------------------------------------------------------------##
929 ##---------------------------------------------------------------------------##
932 name = "AsyncOpsTdFiles",
934 "include/mlir/Dialect/Async/IR/AsyncDialect.td",
935 "include/mlir/Dialect/Async/IR/AsyncOps.td",
936 "include/mlir/Dialect/Async/IR/AsyncTypes.td",
938 includes = ["include"],
940 ":ControlFlowInterfacesTdFiles",
942 ":SideEffectInterfacesTdFiles",
947 name = "AsyncOpsIncGen",
948 strip_include_prefix = "include",
952 "include/mlir/Dialect/Async/IR/AsyncOps.h.inc",
956 "include/mlir/Dialect/Async/IR/AsyncOps.cpp.inc",
959 ["-gen-dialect-decls"],
960 "include/mlir/Dialect/Async/IR/AsyncOpsDialect.h.inc",
963 ["-gen-dialect-defs"],
964 "include/mlir/Dialect/Async/IR/AsyncOpsDialect.cpp.inc",
967 ["-gen-typedef-decls"],
968 "include/mlir/Dialect/Async/IR/AsyncOpsTypes.h.inc",
971 ["-gen-typedef-defs"],
972 "include/mlir/Dialect/Async/IR/AsyncOpsTypes.cpp.inc",
975 tblgen = ":mlir-tblgen",
976 td_file = "include/mlir/Dialect/Async/IR/AsyncOps.td",
977 deps = [":AsyncOpsTdFiles"],
981 name = "AsyncPassIncGen",
982 strip_include_prefix = "include",
989 "include/mlir/Dialect/Async/Passes.h.inc",
993 "-gen-pass-capi-header",
996 "include/mlir/Dialect/Async/Passes.capi.h.inc",
1000 "-gen-pass-capi-impl",
1003 "include/mlir/Dialect/Async/Passes.capi.cpp.inc",
1006 tblgen = ":mlir-tblgen",
1007 td_file = "include/mlir/Dialect/Async/Passes.td",
1008 deps = [":PassBaseTdFiles"],
1011 ##---------------------------------------------------------------------------##
1013 ##---------------------------------------------------------------------------##
1016 name = "ArmNeonTdFiles",
1017 srcs = ["include/mlir/Dialect/ArmNeon/ArmNeon.td"],
1018 includes = ["include"],
1022 ":SideEffectInterfacesTdFiles",
1027 name = "ArmNeonIncGen",
1028 strip_include_prefix = "include",
1032 "-gen-dialect-decls",
1033 "-dialect=arm_neon",
1035 "include/mlir/Dialect/ArmNeon/ArmNeonDialect.h.inc",
1039 "-gen-dialect-defs",
1040 "-dialect=arm_neon",
1042 "include/mlir/Dialect/ArmNeon/ArmNeonDialect.cpp.inc",
1046 "include/mlir/Dialect/ArmNeon/ArmNeon.h.inc",
1050 "include/mlir/Dialect/ArmNeon/ArmNeon.cpp.inc",
1054 "g3doc/Dialects/ArmNeon/ArmNeon.md",
1057 tblgen = ":mlir-tblgen",
1058 td_file = "include/mlir/Dialect/ArmNeon/ArmNeon.td",
1059 deps = [":ArmNeonTdFiles"],
1064 srcs = ["lib/Dialect/ArmNeon/IR/ArmNeonDialect.cpp"],
1065 hdrs = ["include/mlir/Dialect/ArmNeon/ArmNeonDialect.h"],
1066 includes = ["include"],
1070 ":SideEffectInterfaces",
1078 name = "ArmNeonConversionIncGen",
1079 strip_include_prefix = "include",
1082 ["-gen-llvmir-conversions"],
1083 "include/mlir/Dialect/ArmNeon/ArmNeonConversions.inc",
1086 tblgen = ":mlir-tblgen",
1087 td_file = "include/mlir/Dialect/ArmNeon/ArmNeon.td",
1088 deps = [":ArmNeonTdFiles"],
1092 name = "ArmNeon2dToIntr",
1094 "lib/Conversion/ArmNeon2dToIntr/*.cpp",
1095 "lib/Conversion/ArmNeon2dToIntr/*.h",
1096 ]) + ["lib/Conversion/PassDetail.h"],
1098 "include/mlir/Conversion/ArmNeon2dToIntr/*.h",
1100 includes = ["include"],
1103 ":ConversionPassIncGen",
1116 ##---------------------------------------------------------------------------##
1118 ##---------------------------------------------------------------------------##
1121 name = "ArmSVETdFiles",
1123 "include/mlir/Dialect/ArmSVE/ArmSVE.td",
1124 "include/mlir/Dialect/ArmSVE/ArmSVEOpBase.td",
1126 includes = ["include"],
1130 ":SideEffectInterfacesTdFiles",
1136 name = "ArmSVEIncGen",
1137 strip_include_prefix = "include",
1141 "include/mlir/Dialect/ArmSVE/ArmSVE.h.inc",
1145 "include/mlir/Dialect/ArmSVE/ArmSVE.cpp.inc",
1148 ["-gen-typedef-decls"],
1149 "include/mlir/Dialect/ArmSVE/ArmSVETypes.h.inc",
1152 ["-gen-typedef-defs"],
1153 "include/mlir/Dialect/ArmSVE/ArmSVETypes.cpp.inc",
1157 "-gen-dialect-decls",
1160 "include/mlir/Dialect/ArmSVE/ArmSVEDialect.h.inc",
1164 "-gen-dialect-defs",
1167 "include/mlir/Dialect/ArmSVE/ArmSVEDialect.cpp.inc",
1170 tblgen = ":mlir-tblgen",
1171 td_file = "include/mlir/Dialect/ArmSVE/ArmSVE.td",
1172 deps = [":ArmSVETdFiles"],
1177 srcs = ["lib/Dialect/ArmSVE/IR/ArmSVEDialect.cpp"],
1178 hdrs = ["include/mlir/Dialect/ArmSVE/ArmSVEDialect.h"],
1179 includes = ["include"],
1184 ":SideEffectInterfaces",
1193 name = "ArmSVETransforms",
1194 srcs = glob(["lib/Dialect/ArmSVE/Transforms/*.cpp"]),
1195 hdrs = ["include/mlir/Dialect/ArmSVE/Transforms.h"],
1196 includes = ["include"],
1200 ":LLVMCommonConversion",
1211 name = "ArmSVEConversionIncGen",
1212 strip_include_prefix = "include",
1215 ["-gen-llvmir-conversions"],
1216 "include/mlir/Dialect/ArmSVE/ArmSVEConversions.inc",
1219 tblgen = ":mlir-tblgen",
1220 td_file = "include/mlir/Dialect/ArmSVE/ArmSVE.td",
1221 deps = [":ArmSVETdFiles"],
1224 ##---------------------------------------------------------------------------##
1226 ##---------------------------------------------------------------------------##
1229 name = "AMXTdFiles",
1230 srcs = ["include/mlir/Dialect/AMX/AMX.td"],
1231 includes = ["include"],
1234 ":SideEffectInterfacesTdFiles",
1240 strip_include_prefix = "include",
1244 "-gen-dialect-decls",
1247 "include/mlir/Dialect/AMX/AMXDialect.h.inc",
1251 "-gen-dialect-defs",
1254 "include/mlir/Dialect/AMX/AMXDialect.cpp.inc",
1258 "include/mlir/Dialect/AMX/AMX.h.inc",
1262 "include/mlir/Dialect/AMX/AMX.cpp.inc",
1266 "g3doc/Dialects/AMX/AMX.md",
1269 tblgen = ":mlir-tblgen",
1270 td_file = "include/mlir/Dialect/AMX/AMX.td",
1271 deps = [":AMXTdFiles"],
1276 srcs = ["lib/Dialect/AMX/IR/AMXDialect.cpp"],
1277 hdrs = ["include/mlir/Dialect/AMX/AMXDialect.h"],
1278 includes = ["include"],
1283 ":SideEffectInterfaces",
1290 name = "AMXTransforms",
1291 srcs = glob(["lib/Dialect/AMX/Transforms/*.cpp"]),
1292 hdrs = ["include/mlir/Dialect/AMX/Transforms.h"],
1293 includes = ["include"],
1297 ":LLVMCommonConversion",
1306 name = "AMXConversionIncGen",
1307 strip_include_prefix = "include",
1310 ["-gen-llvmir-conversions"],
1311 "include/mlir/Dialect/AMX/AMXConversions.inc",
1314 tblgen = ":mlir-tblgen",
1315 td_file = "include/mlir/Dialect/AMX/AMX.td",
1316 deps = [":AMXTdFiles"],
1319 ##---------------------------------------------------------------------------##
1320 # X86Vector dialect.
1321 ##---------------------------------------------------------------------------##
1324 name = "X86VectorTdFiles",
1325 srcs = ["include/mlir/Dialect/X86Vector/X86Vector.td"],
1326 includes = ["include"],
1329 ":SideEffectInterfacesTdFiles",
1334 name = "X86VectorIncGen",
1335 strip_include_prefix = "include",
1339 "-gen-dialect-decls",
1340 "-dialect=x86vector",
1342 "include/mlir/Dialect/X86Vector/X86VectorDialect.h.inc",
1346 "-gen-dialect-defs",
1347 "-dialect=x86vector",
1349 "include/mlir/Dialect/X86Vector/X86VectorDialect.cpp.inc",
1353 "include/mlir/Dialect/X86Vector/X86Vector.h.inc",
1357 "include/mlir/Dialect/X86Vector/X86Vector.cpp.inc",
1361 "g3doc/Dialects/X86Vector/X86Vector.md",
1364 tblgen = ":mlir-tblgen",
1365 td_file = "include/mlir/Dialect/X86Vector/X86Vector.td",
1366 deps = [":X86VectorTdFiles"],
1371 srcs = ["lib/Dialect/X86Vector/IR/X86VectorDialect.cpp"],
1372 hdrs = ["include/mlir/Dialect/X86Vector/X86VectorDialect.h"],
1373 includes = ["include"],
1377 ":SideEffectInterfaces",
1385 name = "X86VectorTransforms",
1386 srcs = glob(["lib/Dialect/X86Vector/Transforms/*.cpp"]),
1387 hdrs = ["include/mlir/Dialect/X86Vector/Transforms.h"],
1388 includes = ["include"],
1391 ":LLVMCommonConversion",
1401 name = "X86VectorConversionIncGen",
1402 strip_include_prefix = "include",
1405 ["-gen-llvmir-conversions"],
1406 "include/mlir/Dialect/X86Vector/X86VectorConversions.inc",
1409 tblgen = ":mlir-tblgen",
1410 td_file = "include/mlir/Dialect/X86Vector/X86Vector.td",
1411 deps = [":X86VectorTdFiles"],
1414 ##---------------------------------------------------------------------------##
1416 ##---------------------------------------------------------------------------##
1419 name = "SCFTdFiles",
1420 srcs = ["include/mlir/Dialect/SCF/SCFOps.td"],
1421 includes = ["include"],
1423 ":ControlFlowInterfacesTdFiles",
1424 ":LoopLikeInterfaceTdFiles",
1425 ":SideEffectInterfacesTdFiles",
1431 strip_include_prefix = "include",
1435 "include/mlir/Dialect/SCF/SCFOps.h.inc",
1439 "include/mlir/Dialect/SCF/SCFOps.cpp.inc",
1442 ["-gen-dialect-decls"],
1443 "include/mlir/Dialect/SCF/SCFOpsDialect.h.inc",
1446 ["-gen-dialect-defs"],
1447 "include/mlir/Dialect/SCF/SCFOpsDialect.cpp.inc",
1450 tblgen = ":mlir-tblgen",
1451 td_file = "include/mlir/Dialect/SCF/SCFOps.td",
1452 deps = [":SCFTdFiles"],
1456 name = "SCFPassIncGen",
1457 strip_include_prefix = "include",
1464 "include/mlir/Dialect/SCF/Passes.h.inc",
1467 tblgen = ":mlir-tblgen",
1468 td_file = "include/mlir/Dialect/SCF/Passes.td",
1469 deps = [":PassBaseTdFiles"],
1473 name = "SCFTransforms",
1475 "lib/Dialect/SCF/Transforms/*.cpp",
1476 "lib/Dialect/SCF/Transforms/*.h",
1478 hdrs = ["include/mlir/Dialect/SCF/Passes.h"],
1479 includes = ["include"],
1496 ##---------------------------------------------------------------------------##
1497 # SparseTensor dialect.
1498 ##---------------------------------------------------------------------------##
1501 name = "SparseTensorTdFiles",
1503 "include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.td",
1504 "include/mlir/Dialect/SparseTensor/IR/SparseTensorBase.td",
1505 "include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td",
1507 includes = ["include"],
1510 ":SideEffectInterfacesTdFiles",
1515 name = "SparseTensorAttrDefsIncGen",
1516 strip_include_prefix = "include",
1519 ["--gen-attrdef-decls"],
1520 "include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.h.inc",
1523 ["--gen-attrdef-defs"],
1524 "include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.cpp.inc",
1527 tblgen = ":mlir-tblgen",
1528 td_file = "include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.td",
1529 deps = [":SparseTensorTdFiles"],
1533 name = "SparseTensorOpsIncGen",
1534 strip_include_prefix = "include",
1538 "-gen-dialect-decls",
1539 "-dialect=sparse_tensor",
1541 "include/mlir/Dialect/SparseTensor/IR/SparseTensorOpsDialect.h.inc",
1545 "-gen-dialect-defs",
1546 "-dialect=sparse_tensor",
1548 "include/mlir/Dialect/SparseTensor/IR/SparseTensorOpsDialect.cpp.inc",
1552 "include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.h.inc",
1556 "include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.cpp.inc",
1560 "g3doc/Dialects/SparseTensor/SparseTensor.md",
1563 tblgen = ":mlir-tblgen",
1564 td_file = "include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td",
1565 deps = [":SparseTensorTdFiles"],
1569 name = "SparseTensorPassIncGen",
1570 strip_include_prefix = "include",
1575 "-name=SparseTensor",
1577 "include/mlir/Dialect/SparseTensor/Transforms/Passes.h.inc",
1581 "-gen-pass-capi-header",
1582 "--prefix=SparseTensor",
1584 "include/mlir/Dialect/SparseTensor/Transforms/Passes.capi.h.inc",
1588 "-gen-pass-capi-impl",
1589 "--prefix=SparseTensor",
1591 "include/mlir/Dialect/SparseTensor/Transforms/Passes.capi.cpp.inc",
1594 tblgen = ":mlir-tblgen",
1595 td_file = "include/mlir/Dialect/SparseTensor/Transforms/Passes.td",
1596 deps = [":PassBaseTdFiles"],
1600 name = "SparseTensor",
1602 "lib/Dialect/SparseTensor/IR/*.cpp",
1604 hdrs = ["include/mlir/Dialect/SparseTensor/IR/SparseTensor.h"],
1605 includes = ["include"],
1608 ":SideEffectInterfaces",
1609 ":SparseTensorAttrDefsIncGen",
1610 ":SparseTensorOpsIncGen",
1611 ":SparseTensorUtils",
1618 name = "SparseTensorUtils",
1619 srcs = glob(["lib/Dialect/SparseTensor/Utils/*.cpp"]),
1620 hdrs = glob(["include/mlir/Dialect/SparseTensor/Utils/*.h"]),
1621 includes = ["include"],
1625 ":SideEffectInterfaces",
1626 ":SparseTensorAttrDefsIncGen",
1627 ":SparseTensorOpsIncGen",
1634 name = "SparseTensorTransforms",
1635 srcs = glob(["lib/Dialect/SparseTensor/Transforms/*.cpp"]),
1636 hdrs = ["include/mlir/Dialect/SparseTensor/Transforms/Passes.h"],
1637 includes = ["include"],
1643 ":LinalgTransforms",
1648 ":SparseTensorPassIncGen",
1649 ":SparseTensorUtils",
1651 ":StandardOpsTransforms",
1660 name = "StdOpsTdFiles",
1662 "include/mlir/Dialect/StandardOps/IR/Ops.td",
1663 "include/mlir/Dialect/StandardOps/IR/StandardOpsBase.td",
1665 includes = ["include"],
1667 ":CallInterfacesTdFiles",
1668 ":CastInterfacesTdFiles",
1669 ":ControlFlowInterfacesTdFiles",
1671 ":SideEffectInterfacesTdFiles",
1672 ":VectorInterfacesTdFiles",
1677 name = "StandardOpsIncGen",
1678 strip_include_prefix = "include",
1682 "include/mlir/Dialect/StandardOps/IR/Ops.h.inc",
1686 "include/mlir/Dialect/StandardOps/IR/Ops.cpp.inc",
1689 ["-gen-dialect-decls"],
1690 "include/mlir/Dialect/StandardOps/IR/OpsDialect.h.inc",
1693 ["-gen-dialect-defs"],
1694 "include/mlir/Dialect/StandardOps/IR/OpsDialect.cpp.inc",
1697 ["-gen-enum-decls"],
1698 "include/mlir/Dialect/StandardOps/IR/OpsEnums.h.inc",
1702 "include/mlir/Dialect/StandardOps/IR/OpsEnums.cpp.inc",
1705 tblgen = ":mlir-tblgen",
1706 td_file = "include/mlir/Dialect/StandardOps/IR/Ops.td",
1707 deps = [":StdOpsTdFiles"],
1713 "lib/Dialect/*.cpp",
1717 "include/mlir/Dialect/*.h",
1719 includes = ["include"],
1727 name = "DialectUtils",
1729 "lib/Dialect/Utils/*.cpp",
1730 "lib/Dialect/Utils/*.h",
1733 "include/mlir/Dialect/Utils/*.h",
1735 includes = ["include"],
1747 "lib/Dialect/Affine/IR/*.cpp",
1748 "lib/Dialect/Affine/IR/*.h",
1750 ) + ["include/mlir/Transforms/InliningUtils.h"],
1752 "include/mlir/Dialect/Affine/IR/*.h",
1754 includes = ["include"],
1756 ":AffineMemoryOpInterfacesIncGen",
1759 ":LoopLikeInterface",
1761 ":SideEffectInterfaces",
1771 "lib/Dialect/EmitC/IR/*.cpp",
1774 "include/mlir/Dialect/EmitC/IR/*.h",
1776 includes = ["include"],
1779 ":EmitCAttributesIncGen",
1782 ":SideEffectInterfaces",
1790 "lib/Dialect/Async/IR/*.cpp",
1793 "include/mlir/Dialect/Async/IR/*.h",
1795 includes = ["include"],
1798 ":ControlFlowInterfaces",
1801 ":SideEffectInterfaces",
1809 name = "AsyncTransforms",
1811 "lib/Dialect/Async/Transforms/*.cpp",
1812 "lib/Dialect/Async/Transforms/*.h",
1814 hdrs = ["include/mlir/Dialect/Async/Passes.h"],
1815 includes = ["include"],
1828 ":TransformsPassIncGen",
1835 name = "AffineUtils",
1838 "lib/Dialect/Affine/Utils/*.cpp",
1839 "lib/Dialect/Affine/Utils/*.h",
1842 hdrs = ["include/mlir/Dialect/Affine/Utils.h"],
1843 includes = ["include"],
1855 name = "AffinePassIncGen",
1856 strip_include_prefix = "include",
1863 "include/mlir/Dialect/Affine/Passes.h.inc",
1866 tblgen = ":mlir-tblgen",
1867 td_file = "include/mlir/Dialect/Affine/Passes.td",
1868 deps = [":PassBaseTdFiles"],
1872 name = "AffineTransforms",
1874 "lib/Dialect/Affine/Transforms/*.cpp",
1875 "lib/Dialect/Affine/Transforms/*.h",
1877 hdrs = ["include/mlir/Dialect/Affine/Passes.h"],
1878 includes = ["include"],
1881 ":AffinePassIncGen",
1897 name = "ConversionPassIncGen",
1898 strip_include_prefix = "include",
1905 "include/mlir/Conversion/Passes.h.inc",
1909 "-gen-pass-capi-header",
1910 "--prefix=Conversion",
1912 "include/mlir/Conversion/Passes.capi.h.inc",
1916 "-gen-pass-capi-impl",
1917 "--prefix=Conversion",
1919 "include/mlir/Conversion/Passes.capi.cpp.inc",
1922 tblgen = ":mlir-tblgen",
1923 td_file = "include/mlir/Conversion/Passes.td",
1924 deps = [":PassBaseTdFiles"],
1928 name = "ConversionPasses",
1929 hdrs = ["include/mlir/Conversion/Passes.h"],
1930 includes = ["include"],
1932 ":AffineToStandard",
1936 ":ComplexToStandard",
1937 ":ConversionPassIncGen",
1938 ":GPUToGPURuntimeTransforms",
1939 ":GPUToNVVMTransforms",
1940 ":GPUToROCDLTransforms",
1942 ":GPUToVulkanTransforms",
1945 ":LinalgToStandard",
1975 name = "AsyncToLLVM",
1977 "lib/Conversion/AsyncToLLVM/*.cpp",
1978 "lib/Conversion/AsyncToLLVM/*.h",
1979 ]) + ["lib/Conversion/PassDetail.h"],
1980 hdrs = glob(["include/mlir/Conversion/AsyncToLLVM/*.h"]),
1981 includes = ["include"],
1984 ":ConversionPassIncGen",
1986 ":LLVMCommonConversion",
1990 ":StandardOpsTransforms",
1999 name = "AffineToStandard",
2001 "lib/Conversion/AffineToStandard/*.cpp",
2002 "lib/Conversion/AffineToStandard/*.h",
2003 ]) + ["lib/Conversion/PassDetail.h"],
2004 hdrs = glob(["include/mlir/Conversion/AffineToStandard/*.h"]),
2005 includes = ["include"],
2008 ":ConversionPassIncGen",
2021 name = "AffineToStandardTransforms",
2022 actual = "AffineToStandard",
2025 # SDBM dialect only contains attribute components that can be constructed given
2026 # a dialect object, so whenever it is used it must also be registered. Therefore
2027 # we don't split out the registration library for it.
2031 "lib/Dialect/SDBM/*.cpp",
2032 "lib/Dialect/SDBM/*.h",
2035 "include/mlir/Dialect/SDBM/*.h",
2037 includes = ["include"],
2046 name = "SCFDialect",
2049 "lib/Dialect/SCF/*.cpp",
2050 "lib/Dialect/SCF/*.h",
2054 "include/mlir/Dialect/SCF/*.h",
2056 includes = ["include"],
2058 ":ControlFlowInterfaces",
2060 ":LoopLikeInterface",
2073 name = "LinalgInterfaces",
2074 srcs = ["lib/Dialect/Linalg/IR/LinalgInterfaces.cpp"],
2075 hdrs = ["include/mlir/Dialect/Linalg/IR/LinalgInterfaces.h"],
2076 includes = ["include"],
2081 ":InferTypeOpInterface",
2082 ":LinalgInterfacesIncGen",
2083 ":LinalgStructuredOpsIncGen",
2085 ":ViewLikeInterface",
2091 name = "DataLayoutInterfaces",
2092 srcs = ["lib/Interfaces/DataLayoutInterfaces.cpp"],
2093 hdrs = ["include/mlir/Interfaces/DataLayoutInterfaces.h"],
2094 includes = ["include"],
2096 ":DataLayoutInterfacesIncGen",
2103 name = "LoopLikeInterface",
2104 srcs = ["lib/Interfaces/LoopLikeInterface.cpp"],
2105 hdrs = ["include/mlir/Interfaces/LoopLikeInterface.h"],
2106 includes = ["include"],
2109 ":LoopLikeInterfaceIncGen",
2114 name = "VectorInterfaces",
2115 srcs = ["lib/Interfaces/VectorInterfaces.cpp"],
2116 hdrs = ["include/mlir/Interfaces/VectorInterfaces.h"],
2117 includes = ["include"],
2120 ":VectorInterfacesIncGen",
2125 name = "ViewLikeInterface",
2126 srcs = ["lib/Interfaces/ViewLikeInterface.cpp"],
2127 hdrs = ["include/mlir/Interfaces/ViewLikeInterface.h"],
2128 includes = ["include"],
2132 ":ViewLikeInterfaceIncGen",
2137 name = "CopyOpInterface",
2138 srcs = ["lib/Interfaces/CopyOpInterface.cpp"],
2139 hdrs = ["include/mlir/Interfaces/CopyOpInterface.h"],
2140 includes = ["include"],
2142 ":CopyOpInterfaceIncGen",
2148 name = "ShapeOpsTdFiles",
2150 "include/mlir/Dialect/Shape/IR/ShapeBase.td",
2151 "include/mlir/Dialect/Shape/IR/ShapeOps.td",
2153 includes = ["include"],
2155 ":ControlFlowInterfacesTdFiles",
2156 ":InferTypeOpInterfaceTdFiles",
2157 ":SideEffectInterfacesTdFiles",
2162 name = "ShapeOpsIncGen",
2163 strip_include_prefix = "include",
2167 "include/mlir/Dialect/Shape/IR/ShapeOps.h.inc",
2171 "include/mlir/Dialect/Shape/IR/ShapeOps.cpp.inc",
2174 ["-gen-dialect-decls"],
2175 "include/mlir/Dialect/Shape/IR/ShapeOpsDialect.h.inc",
2178 ["-gen-dialect-defs"],
2179 "include/mlir/Dialect/Shape/IR/ShapeOpsDialect.cpp.inc",
2182 tblgen = ":mlir-tblgen",
2183 td_file = "include/mlir/Dialect/Shape/IR/ShapeOps.td",
2184 deps = [":ShapeOpsTdFiles"],
2188 name = "MLIRShapeCanonicalizationIncGen",
2189 strip_include_prefix = "include/mlir/Dialect/Shape/IR",
2193 "include/mlir/Dialect/Shape/IR/ShapeCanonicalization.inc",
2196 tblgen = ":mlir-tblgen",
2197 td_file = "lib/Dialect/Shape/IR/ShapeCanonicalization.td",
2201 ":TensorOpsTdFiles",
2207 srcs = glob(["lib/Dialect/Shape/IR/*.cpp"]),
2208 hdrs = ["include/mlir/Dialect/Shape/IR/Shape.h"],
2209 includes = ["include"],
2211 ":CallOpInterfaces",
2213 ":ControlFlowInterfaces",
2216 ":InferTypeOpInterface",
2217 ":MLIRShapeCanonicalizationIncGen",
2219 ":SideEffectInterfaces",
2228 name = "ShapeToStandardGen",
2229 strip_include_prefix = "lib/Conversion/ShapeToStandard",
2233 "lib/Conversion/ShapeToStandard/ShapeToStandard.cpp.inc",
2236 tblgen = ":mlir-tblgen",
2237 td_file = "lib/Conversion/ShapeToStandard/ShapeToStandard.td",
2238 deps = [":ShapeOpsTdFiles"],
2242 name = "ShapeToStandard",
2244 "lib/Conversion/ShapeToStandard/*.cpp",
2245 "lib/Conversion/ShapeToStandard/*.h",
2246 ]) + ["lib/Conversion/PassDetail.h"],
2247 hdrs = ["include/mlir/Conversion/ShapeToStandard/ShapeToStandard.h"],
2248 includes = ["include"],
2250 ":ConversionPassIncGen",
2256 ":ShapeToStandardGen",
2266 name = "ShapeTransformsPassIncGen",
2267 strip_include_prefix = "include",
2273 "include/mlir/Dialect/Shape/Transforms/Passes.h.inc",
2275 tblgen = ":mlir-tblgen",
2276 td_file = "include/mlir/Dialect/Shape/Transforms/Passes.td",
2277 deps = [":PassBaseTdFiles"],
2281 name = "ShapeTransforms",
2283 "lib/Dialect/Shape/Transforms/*.cpp",
2284 "lib/Dialect/Shape/Transforms/*.h",
2286 hdrs = ["include/mlir/Dialect/Shape/Transforms/Passes.h"],
2287 includes = ["include"],
2293 ":ShapeTransformsPassIncGen",
2300 name = "StandardOps",
2303 "lib/Dialect/StandardOps/IR/*.cpp",
2304 "lib/Dialect/StandardOps/IR/*.h",
2305 "lib/Dialect/StandardOps/Utils/*.cpp",
2309 "include/mlir/Dialect/StandardOps/IR/*.h",
2310 "include/mlir/Dialect/StandardOps/Utils/*.h",
2311 ]) + ["include/mlir/Transforms/InliningUtils.h"],
2312 includes = ["include"],
2314 ":CallOpInterfaces",
2315 ":CastOpInterfaces",
2317 ":ControlFlowInterfaces",
2319 ":SideEffectInterfaces",
2320 ":StandardOpsIncGen",
2322 ":VectorInterfaces",
2328 name = "StandardOpsTransformsPassIncGen",
2329 strip_include_prefix = "include",
2335 "include/mlir/Dialect/StandardOps/Transforms/Passes.h.inc",
2337 tblgen = ":mlir-tblgen",
2338 td_file = "include/mlir/Dialect/StandardOps/Transforms/Passes.td",
2339 deps = [":PassBaseTdFiles"],
2343 name = "StandardOpsTransforms",
2345 "lib/Dialect/StandardOps/Transforms/*.cpp",
2346 "lib/Dialect/StandardOps/Transforms/*.h",
2348 hdrs = glob(["include/mlir/Dialect/StandardOps/Transforms/*.h"]),
2349 includes = ["include"],
2353 ":MemRefDialect", # TODO: Remove dependency on MemRef dialect
2357 ":StandardOpsTransformsPassIncGen",
2369 "lib/Dialect/Vector/*.cpp",
2370 "lib/Dialect/Vector/*.h",
2374 "include/mlir/Dialect/Vector/*.h",
2376 includes = ["include"],
2381 ":DataLayoutInterfaces",
2387 ":SideEffectInterfaces",
2391 ":VectorInterfaces",
2393 ":ViewLikeInterface",
2402 "lib/Support/*.cpp",
2406 # TODO(jpienaar): Move this out, else Support depends on Analysis/
2407 "lib/Support/MlirOptMain.cpp",
2411 ["include/mlir/Support/*.h"],
2412 exclude = ["include/mlir/Support/MlirOptMain.h"],
2414 includes = ["include"],
2415 deps = ["//llvm:Support"],
2419 name = "MlirLspServerLib",
2422 "lib/Tools/mlir-lsp-server/*.cpp",
2423 "lib/Tools/mlir-lsp-server/*.h",
2424 "lib/Tools/mlir-lsp-server/lsp/*.cpp",
2425 "lib/Tools/mlir-lsp-server/lsp/*.h",
2429 ["include/mlir/Tools/mlir-lsp-server/*.h"],
2431 includes = ["include"],
2441 name = "ParserTokenKinds",
2442 # strip_include_prefix does not apply to textual_hdrs.
2443 hdrs = ["lib/Parser/TokenKinds.def"],
2444 strip_include_prefix = "lib/Parser",
2445 textual_hdrs = ["lib/Parser/TokenKinds.def"],
2455 "include/mlir/Parser/*.h",
2457 "include/mlir/Parser.h",
2459 includes = ["include"],
2462 ":ParserTokenKinds",
2469 name = "LLVMDialectInterfaceIncGen",
2470 strip_include_prefix = "include",
2473 ["-gen-op-interface-decls"],
2474 "include/mlir/Dialect/LLVMIR/LLVMOpsInterfaces.h.inc",
2477 ["-gen-op-interface-defs"],
2478 "include/mlir/Dialect/LLVMIR/LLVMOpsInterfaces.cpp.inc",
2481 ["-gen-type-interface-decls"],
2482 "include/mlir/Dialect/LLVMIR/LLVMTypeInterfaces.h.inc",
2485 ["-gen-type-interface-defs"],
2486 "include/mlir/Dialect/LLVMIR/LLVMTypeInterfaces.cpp.inc",
2489 tblgen = ":mlir-tblgen",
2490 td_file = "include/mlir/Dialect/LLVMIR/LLVMOpsInterfaces.td",
2491 deps = [":LLVMOpsTdFiles"],
2495 name = "LLVMDialectAttributesIncGen",
2496 strip_include_prefix = "include",
2499 ["--gen-attrdef-decls"],
2500 "include/mlir/Dialect/LLVMIR/LLVMOpsAttrDefs.h.inc",
2503 ["--gen-attrdef-defs"],
2504 "include/mlir/Dialect/LLVMIR/LLVMOpsAttrDefs.cpp.inc",
2507 tblgen = ":mlir-tblgen",
2508 td_file = "include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td",
2509 deps = [":LLVMOpsTdFiles"],
2513 name = "LLVMDialect",
2516 "lib/Dialect/LLVMIR/IR/*.cpp",
2517 "lib/Dialect/LLVMIR/IR/*.h",
2520 "lib/Dialect/LLVMIR/IR/*AMX*.cpp",
2521 "lib/Dialect/LLVMIR/IR/*AMX*.h",
2522 "lib/Dialect/LLVMIR/IR/*ArmSVE*.cpp",
2523 "lib/Dialect/LLVMIR/IR/*ArmSVE*.h",
2524 "lib/Dialect/LLVMIR/IR/NVVM*.cpp",
2525 "lib/Dialect/LLVMIR/IR/NVVM*.h",
2526 "lib/Dialect/LLVMIR/IR/ROCDL*.cpp",
2527 "lib/Dialect/LLVMIR/IR/ROCDL*.h",
2528 "lib/Dialect/LLVMIR/IR/*X86Vector*.cpp",
2529 "lib/Dialect/LLVMIR/IR/*X86Vector*.h",
2533 ["include/mlir/Dialect/LLVMIR/*.h"],
2535 "include/mlir/Dialect/LLVMIR/*AMX*.h",
2536 "include/mlir/Dialect/LLVMIR/*ArmSVE*.h",
2537 "include/mlir/Dialect/LLVMIR/NVVM*.h",
2538 "include/mlir/Dialect/LLVMIR/ROCDL*.h",
2539 "include/mlir/Dialect/LLVMIR/*X86Vector*.h",
2542 includes = ["include"],
2544 ":ControlFlowInterfaces",
2545 ":DataLayoutInterfaces",
2547 ":LLVMDialectAttributesIncGen",
2548 ":LLVMDialectInterfaceIncGen",
2550 ":SideEffectInterfaces",
2561 name = "LLVMPassIncGen",
2562 strip_include_prefix = "include",
2569 "include/mlir/Dialect/LLVMIR/Transforms/Passes.h.inc",
2572 tblgen = ":mlir-tblgen",
2573 td_file = "include/mlir/Dialect/LLVMIR/Transforms/Passes.td",
2574 deps = [":PassBaseTdFiles"],
2578 name = "LLVMIRTransforms",
2580 "lib/Dialect/LLVMIR/Transforms/*.cpp",
2581 "lib/Dialect/LLVMIR/Transforms/*.h",
2583 hdrs = glob(["include/mlir/Dialect/LLVMIR/Transforms/*.h"]),
2584 includes = ["include"],
2594 name = "GPUOpsTdFiles",
2596 "include/mlir/Dialect/GPU/GPUBase.td",
2597 "include/mlir/Dialect/GPU/GPUOps.td",
2599 includes = ["include"],
2601 ":DLTIDialectTdFiles",
2602 ":DataLayoutInterfacesTdFiles",
2605 ":SideEffectInterfacesTdFiles",
2610 name = "ParallelLoopMapperAttrGen",
2611 strip_include_prefix = "include",
2614 ["-gen-struct-attr-decls"],
2615 "include/mlir/Dialect/GPU/ParallelLoopMapperAttr.h.inc",
2618 ["-gen-struct-attr-defs"],
2619 "include/mlir/Dialect/GPU/ParallelLoopMapperAttr.cpp.inc",
2622 ["-gen-enum-decls"],
2623 "include/mlir/Dialect/GPU/ParallelLoopMapperEnums.h.inc",
2627 "include/mlir/Dialect/GPU/ParallelLoopMapperEnums.cpp.inc",
2630 tblgen = ":mlir-tblgen",
2631 td_file = "include/mlir/Dialect/GPU/ParallelLoopMapperAttr.td",
2632 deps = [":GPUOpsTdFiles"],
2636 name = "GPUBaseIncGen",
2637 strip_include_prefix = "include",
2641 "-gen-dialect-decls",
2644 "include/mlir/Dialect/GPU/GPUOpsDialect.h.inc",
2648 "-gen-dialect-defs",
2651 "include/mlir/Dialect/GPU/GPUOpsDialect.cpp.inc",
2654 ["-gen-op-interface-decls"],
2655 "include/mlir/Dialect/GPU/GPUOpInterfaces.h.inc",
2658 ["-gen-op-interface-defs"],
2659 "include/mlir/Dialect/GPU/GPUOpInterfaces.cpp.inc",
2662 tblgen = ":mlir-tblgen",
2663 td_file = "include/mlir/Dialect/GPU/GPUBase.td",
2664 deps = [":GPUOpsTdFiles"],
2668 name = "GPUOpsIncGen",
2669 strip_include_prefix = "include",
2673 "include/mlir/Dialect/GPU/GPUOps.h.inc",
2677 "include/mlir/Dialect/GPU/GPUOps.cpp.inc",
2680 tblgen = ":mlir-tblgen",
2681 td_file = "include/mlir/Dialect/GPU/GPUOps.td",
2683 ":DLTIDialectTdFiles",
2689 name = "GPUDialect",
2692 "lib/Dialect/GPU/IR/*.cpp",
2693 "lib/Dialect/GPU/IR/*.h",
2696 hdrs = ["include/mlir/Dialect/GPU/GPUDialect.h"],
2697 includes = ["include"],
2705 ":SideEffectInterfaces",
2713 name = "GPUPassIncGen",
2714 strip_include_prefix = "include",
2721 "include/mlir/Dialect/GPU/Passes.h.inc",
2725 "-gen-pass-capi-header",
2728 "include/mlir/Dialect/GPU/Passes.capi.h.inc",
2732 "-gen-pass-capi-impl",
2735 "include/mlir/Dialect/GPU/Passes.capi.cpp.inc",
2738 tblgen = ":mlir-tblgen",
2739 td_file = "include/mlir/Dialect/GPU/Passes.td",
2740 deps = [":PassBaseTdFiles"],
2744 name = "GPUTransforms",
2747 "lib/Dialect/GPU/Transforms/*.cpp",
2748 "lib/Dialect/GPU/Transforms/*.h",
2752 "include/mlir/Dialect/GPU/MemoryPromotion.h",
2753 "include/mlir/Dialect/GPU/ParallelLoopMapper.h",
2754 "include/mlir/Dialect/GPU/Passes.h",
2755 "include/mlir/Dialect/GPU/Utils.h",
2757 defines = if_cuda_available(["MLIR_GPU_TO_CUBIN_PASS_ENABLE"]),
2758 includes = ["include"],
2765 ":ParallelLoopMapperAttrGen",
2771 ":ToLLVMIRTranslation",
2772 ":LLVMToLLVMIRTranslation",
2776 ] + if_cuda_available([
2777 # Dependencies for SerializeToCubin.cpp with
2778 # -DMLIR_GPU_TO_CUBIN_PASS_ENABLE
2779 ":NVVMToLLVMIRTranslation",
2780 "//llvm:NVPTXCodeGen",
2781 "@cuda//:cuda_headers",
2787 name = "LLVMOpsTdFiles",
2789 "include/mlir/Dialect/LLVMIR/LLVMOpBase.td",
2790 "include/mlir/Dialect/LLVMIR/LLVMOps.td",
2791 "include/mlir/Dialect/LLVMIR/LLVMOpsInterfaces.td",
2793 includes = ["include"],
2795 ":ControlFlowInterfacesTdFiles",
2797 ":SideEffectInterfacesTdFiles",
2802 name = "GPUCommonTransforms",
2804 "lib/Conversion/GPUCommon/GPUOpsLowering.cpp",
2807 "lib/Conversion/GPUCommon/GPUOpsLowering.h",
2808 "lib/Conversion/GPUCommon/IndexIntrinsicsOpLowering.h",
2809 "lib/Conversion/GPUCommon/OpToFuncCallLowering.h",
2814 ":LLVMCommonConversion",
2822 name = "GPUToNVVMGen",
2823 strip_include_prefix = "lib/Conversion/GPUToNVVM",
2827 "lib/Conversion/GPUToNVVM/GPUToNVVM.cpp.inc",
2830 tblgen = ":mlir-tblgen",
2831 td_file = "lib/Conversion/GPUToNVVM/GPUToNVVM.td",
2839 name = "GPUToNVVMTransforms",
2841 "lib/Conversion/GPUToNVVM/*.cpp",
2842 "lib/Conversion/GPUToNVVM/*.h",
2843 ]) + ["lib/Conversion/PassDetail.h"],
2845 "include/mlir/Conversion/GPUToNVVM/*.h",
2847 includes = ["include"],
2849 ":ConversionPassIncGen",
2850 ":GPUCommonTransforms",
2855 ":LLVMCommonConversion",
2869 name = "VectorToROCDL",
2871 "lib/Conversion/PassDetail.h",
2872 "lib/Conversion/VectorToROCDL/VectorToROCDL.cpp",
2874 hdrs = ["include/mlir/Conversion/VectorToROCDL/VectorToROCDL.h"],
2875 includes = ["include"],
2877 ":ConversionPassIncGen",
2879 ":LLVMCommonConversion",
2892 name = "VectorToSPIRV",
2894 "lib/Conversion/VectorToSPIRV/*.cpp",
2895 "lib/Conversion/VectorToSPIRV/*.h",
2896 ]) + ["lib/Conversion/PassDetail.h"],
2898 "include/mlir/Conversion/VectorToSPIRV/*.h",
2900 includes = ["include"],
2902 ":ConversionPassIncGen",
2912 name = "GPUToROCDLTGen",
2913 strip_include_prefix = "lib/Conversion/GPUToROCDL",
2917 "lib/Conversion/GPUToROCDL/GPUToROCDL.cpp.inc",
2920 tblgen = ":mlir-tblgen",
2921 td_file = "lib/Conversion/GPUToROCDL/GPUToROCDL.td",
2929 name = "GPUToROCDLTransforms",
2931 "lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp",
2932 "lib/Conversion/PassDetail.h",
2934 hdrs = ["include/mlir/Conversion/GPUToROCDL/GPUToROCDLPass.h"],
2935 includes = ["include"],
2937 ":ConversionPassIncGen",
2938 ":GPUCommonTransforms",
2942 ":LLVMCommonConversion",
2958 name = "GPUToVulkanTransforms",
2960 "lib/Conversion/GPUToVulkan/ConvertGPULaunchFuncToVulkanLaunchFunc.cpp",
2961 "lib/Conversion/GPUToVulkan/ConvertLaunchFuncToVulkanCalls.cpp",
2962 "lib/Conversion/PassDetail.h",
2964 hdrs = ["include/mlir/Conversion/GPUToVulkan/ConvertGPUToVulkanPass.h"],
2965 includes = ["include"],
2967 ":ConversionPassIncGen",
2973 ":SPIRVSerialization",
2981 name = "GPUToGPURuntimeTransforms",
2983 "lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp",
2984 "lib/Conversion/PassDetail.h",
2986 hdrs = ["include/mlir/Conversion/GPUCommon/GPUCommonPass.h"],
2987 includes = ["include"],
2991 ":ConversionPassIncGen",
2995 ":LLVMCommonConversion",
2998 ":NVVMToLLVMIRTranslation",
3008 name = "GPUToSPIRV",
3010 "lib/Conversion/GPUToSPIRV/*.cpp",
3011 "lib/Conversion/GPUToSPIRV/*.h",
3012 ]) + ["lib/Conversion/PassDetail.h"],
3014 "include/mlir/Conversion/GPUToSPIRV/*.h",
3018 "lib/Conversions/GPUToSPIRV",
3021 ":ConversionPassIncGen",
3039 name = "PDLToPDLInterp",
3041 "lib/Conversion/PDLToPDLInterp/*.cpp",
3042 "lib/Conversion/PDLToPDLInterp/*.h",
3043 ]) + ["lib/Conversion/PassDetail.h"],
3044 hdrs = ["include/mlir/Conversion/PDLToPDLInterp/PDLToPDLInterp.h"],
3045 includes = ["include"],
3047 ":ConversionPassIncGen",
3049 ":InferTypeOpInterface",
3051 ":PDLInterpDialect",
3059 name = "SPIRVToLLVM",
3061 "lib/Conversion/SPIRVToLLVM/*.cpp",
3062 ]) + ["lib/Conversion/PassDetail.h"],
3064 "include/mlir/Conversion/SPIRVToLLVM/*.h",
3066 includes = ["include"],
3068 ":ConversionPassIncGen",
3071 ":LLVMCommonConversion",
3086 name = "LLVMOpsIncGen",
3087 strip_include_prefix = "include",
3091 "include/mlir/Dialect/LLVMIR/LLVMOps.h.inc",
3095 "include/mlir/Dialect/LLVMIR/LLVMOps.cpp.inc",
3098 ["-gen-dialect-decls"],
3099 "include/mlir/Dialect/LLVMIR/LLVMOpsDialect.h.inc",
3102 ["-gen-dialect-defs"],
3103 "include/mlir/Dialect/LLVMIR/LLVMOpsDialect.cpp.inc",
3106 ["-gen-enum-decls"],
3107 "include/mlir/Dialect/LLVMIR/LLVMOpsEnums.h.inc",
3111 "include/mlir/Dialect/LLVMIR/LLVMOpsEnums.cpp.inc",
3114 tblgen = ":mlir-tblgen",
3115 td_file = "include/mlir/Dialect/LLVMIR/LLVMOps.td",
3116 deps = [":LLVMOpsTdFiles"],
3120 name = "LLVMConversionIncGen",
3121 strip_include_prefix = "include",
3124 ["-gen-llvmir-conversions"],
3125 "include/mlir/Dialect/LLVMIR/LLVMConversions.inc",
3128 ["-gen-enum-to-llvmir-conversions"],
3129 "include/mlir/Dialect/LLVMIR/LLVMConversionEnumsToLLVM.inc",
3132 ["-gen-enum-from-llvmir-conversions"],
3133 "include/mlir/Dialect/LLVMIR/LLVMConversionEnumsFromLLVM.inc",
3136 tblgen = ":mlir-tblgen",
3137 td_file = "include/mlir/Dialect/LLVMIR/LLVMOps.td",
3138 deps = [":LLVMOpsTdFiles"],
3142 name = "NVVMDialect",
3143 srcs = ["lib/Dialect/LLVMIR/IR/NVVMDialect.cpp"],
3144 hdrs = ["include/mlir/Dialect/LLVMIR/NVVMDialect.h"],
3145 includes = ["include"],
3150 ":SideEffectInterfaces",
3160 name = "NVVMOpsTdFiles",
3161 srcs = ["include/mlir/Dialect/LLVMIR/NVVMOps.td"],
3162 includes = ["include"],
3166 ":SideEffectInterfacesTdFiles",
3171 name = "NVVMOpsIncGen",
3172 strip_include_prefix = "include",
3176 "include/mlir/Dialect/LLVMIR/NVVMOps.h.inc",
3180 "include/mlir/Dialect/LLVMIR/NVVMOps.cpp.inc",
3184 "-gen-dialect-decls",
3187 "include/mlir/Dialect/LLVMIR/NVVMOpsDialect.h.inc",
3191 "-gen-dialect-defs",
3194 "include/mlir/Dialect/LLVMIR/NVVMOpsDialect.cpp.inc",
3197 tblgen = ":mlir-tblgen",
3198 td_file = "include/mlir/Dialect/LLVMIR/NVVMOps.td",
3199 deps = [":NVVMOpsTdFiles"],
3203 name = "NVVMConversionIncGen",
3204 strip_include_prefix = "include",
3207 ["-gen-llvmir-conversions"],
3208 "include/mlir/Dialect/LLVMIR/NVVMConversions.inc",
3211 tblgen = ":mlir-tblgen",
3212 td_file = "include/mlir/Dialect/LLVMIR/NVVMOps.td",
3213 deps = [":NVVMOpsTdFiles"],
3217 name = "ROCDLDialect",
3218 srcs = ["lib/Dialect/LLVMIR/IR/ROCDLDialect.cpp"],
3219 hdrs = ["include/mlir/Dialect/LLVMIR/ROCDLDialect.h"],
3220 includes = ["include"],
3225 ":SideEffectInterfaces",
3235 name = "ROCDLOpsTdFiles",
3236 srcs = ["include/mlir/Dialect/LLVMIR/ROCDLOps.td"],
3237 includes = ["include"],
3241 ":SideEffectInterfacesTdFiles",
3246 name = "ROCDLOpsIncGen",
3247 strip_include_prefix = "include",
3251 "include/mlir/Dialect/LLVMIR/ROCDLOps.h.inc",
3255 "include/mlir/Dialect/LLVMIR/ROCDLOps.cpp.inc",
3259 "-gen-dialect-decls",
3262 "include/mlir/Dialect/LLVMIR/ROCDLOpsDialect.h.inc",
3266 "-gen-dialect-defs",
3269 "include/mlir/Dialect/LLVMIR/ROCDLOpsDialect.cpp.inc",
3272 tblgen = ":mlir-tblgen",
3273 td_file = "include/mlir/Dialect/LLVMIR/ROCDLOps.td",
3274 deps = [":ROCDLOpsTdFiles"],
3278 name = "ROCDLConversionIncGen",
3279 strip_include_prefix = "include",
3282 ["-gen-llvmir-conversions"],
3283 "include/mlir/Dialect/LLVMIR/ROCDLConversions.inc",
3286 tblgen = ":mlir-tblgen",
3287 td_file = "include/mlir/Dialect/LLVMIR/ROCDLOps.td",
3288 deps = [":ROCDLOpsTdFiles"],
3292 name = "PDLDialect",
3294 "lib/Dialect/PDL/IR/*.cpp",
3295 "lib/Dialect/PDL/IR/*.h",
3298 "include/mlir/Dialect/PDL/IR/*.h",
3300 includes = ["include"],
3303 ":InferTypeOpInterface",
3313 name = "PDLDialectTdFiles",
3315 "include/mlir/Dialect/PDL/IR/PDLDialect.td",
3316 "include/mlir/Dialect/PDL/IR/PDLOps.td",
3317 "include/mlir/Dialect/PDL/IR/PDLTypes.td",
3321 ":SideEffectInterfacesTdFiles",
3326 name = "PDLOpsIncGen",
3327 strip_include_prefix = "include",
3331 "include/mlir/Dialect/PDL/IR/PDLOps.h.inc",
3335 "include/mlir/Dialect/PDL/IR/PDLOps.cpp.inc",
3338 ["-gen-dialect-decls"],
3339 "include/mlir/Dialect/PDL/IR/PDLOpsDialect.h.inc",
3342 ["-gen-dialect-defs"],
3343 "include/mlir/Dialect/PDL/IR/PDLOpsDialect.cpp.inc",
3346 tblgen = ":mlir-tblgen",
3347 td_file = "include/mlir/Dialect/PDL/IR/PDLOps.td",
3348 deps = [":PDLDialectTdFiles"],
3352 name = "PDLTypesIncGen",
3353 strip_include_prefix = "include",
3356 ["-gen-typedef-decls"],
3357 "include/mlir/Dialect/PDL/IR/PDLOpsTypes.h.inc",
3360 ["-gen-typedef-defs"],
3361 "include/mlir/Dialect/PDL/IR/PDLOpsTypes.cpp.inc",
3364 tblgen = ":mlir-tblgen",
3365 td_file = "include/mlir/Dialect/PDL/IR/PDLTypes.td",
3366 deps = [":PDLDialectTdFiles"],
3370 name = "PDLInterpDialect",
3372 "lib/Dialect/PDLInterp/IR/*.cpp",
3373 "lib/Dialect/PDLInterp/IR/*.h",
3376 "include/mlir/Dialect/PDLInterp/IR/*.h",
3378 includes = ["include"],
3381 ":InferTypeOpInterface",
3383 ":PDLInterpOpsIncGen",
3391 name = "PDLInterpOpsTdFiles",
3392 srcs = ["include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.td"],
3393 includes = ["include"],
3396 ":PDLDialectTdFiles",
3397 ":SideEffectInterfacesTdFiles",
3402 name = "PDLInterpOpsIncGen",
3403 strip_include_prefix = "include",
3407 "include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.h.inc",
3411 "include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.cpp.inc",
3415 "-gen-dialect-decls",
3416 "-dialect=pdl_interp",
3418 "include/mlir/Dialect/PDLInterp/IR/PDLInterpOpsDialect.h.inc",
3422 "-gen-dialect-defs",
3423 "-dialect=pdl_interp",
3425 "include/mlir/Dialect/PDLInterp/IR/PDLInterpOpsDialect.cpp.inc",
3428 tblgen = ":mlir-tblgen",
3429 td_file = "include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.td",
3430 deps = [":PDLInterpOpsTdFiles"],
3434 name = "SPIRVOpsTdFiles",
3435 srcs = glob(["include/mlir/Dialect/SPIRV/IR/*.td"]),
3436 includes = ["include"],
3438 ":CallInterfacesTdFiles",
3439 ":ControlFlowInterfacesTdFiles",
3441 ":SideEffectInterfacesTdFiles",
3446 name = "SPIRVOpsIncGen",
3447 strip_include_prefix = "include",
3451 "include/mlir/Dialect/SPIRV/IR/SPIRVOps.h.inc",
3455 "include/mlir/Dialect/SPIRV/IR/SPIRVOps.cpp.inc",
3458 ["-gen-dialect-decls"],
3459 "include/mlir/Dialect/SPIRV/IR/SPIRVOpsDialect.h.inc",
3462 ["-gen-dialect-defs"],
3463 "include/mlir/Dialect/SPIRV/IR/SPIRVOpsDialect.cpp.inc",
3467 "g3doc/Dialects/SPIRV/SPIRVOps.md",
3470 ["-gen-enum-decls"],
3471 "include/mlir/Dialect/SPIRV/IR/SPIRVEnums.h.inc",
3475 "include/mlir/Dialect/SPIRV/IR/SPIRVEnums.cpp.inc",
3478 ["-gen-spirv-enum-avail-decls"],
3479 "include/mlir/Dialect/SPIRV/IR/SPIRVEnumAvailability.h.inc",
3482 ["-gen-spirv-enum-avail-defs"],
3483 "include/mlir/Dialect/SPIRV/IR/SPIRVEnumAvailability.cpp.inc",
3486 ["-gen-spirv-capability-implication"],
3487 "include/mlir/Dialect/SPIRV/IR/SPIRVCapabilityImplication.inc",
3490 tblgen = ":mlir-tblgen",
3491 td_file = "include/mlir/Dialect/SPIRV/IR/SPIRVOps.td",
3492 deps = [":SPIRVOpsTdFiles"],
3496 name = "SPIRVCanonicalizationIncGen",
3497 strip_include_prefix = "lib/Dialect/SPIRV/IR",
3501 "lib/Dialect/SPIRV/IR/SPIRVCanonicalization.inc",
3504 tblgen = ":mlir-tblgen",
3505 td_file = "lib/Dialect/SPIRV/IR/SPIRVCanonicalization.td",
3506 deps = [":SPIRVOpsTdFiles"],
3510 name = "SPIRVAvailabilityIncGen",
3511 strip_include_prefix = "include",
3514 ["-gen-avail-interface-decls"],
3515 "include/mlir/Dialect/SPIRV/IR/SPIRVAvailability.h.inc",
3518 ["-gen-avail-interface-defs"],
3519 "include/mlir/Dialect/SPIRV/IR/SPIRVAvailability.cpp.inc",
3522 ["-gen-spirv-avail-impls"],
3523 "include/mlir/Dialect/SPIRV/IR/SPIRVOpAvailabilityImpl.inc",
3526 tblgen = ":mlir-tblgen",
3527 td_file = "include/mlir/Dialect/SPIRV/IR/SPIRVOps.td",
3528 deps = [":SPIRVOpsTdFiles"],
3532 name = "SPIRVTargetAndABIStructGen",
3535 ["-gen-struct-attr-decls"],
3536 "include/mlir/Dialect/SPIRV/IR/TargetAndABI.h.inc",
3539 ["-gen-struct-attr-defs"],
3540 "include/mlir/Dialect/SPIRV/IR/TargetAndABI.cpp.inc",
3543 tblgen = ":mlir-tblgen",
3544 td_file = "include/mlir/Dialect/SPIRV/IR/TargetAndABI.td",
3545 deps = [":SPIRVOpsTdFiles"],
3549 name = "SPIRVAttrUtilsGen",
3550 strip_include_prefix = "include",
3553 ["-gen-spirv-attr-utils"],
3554 "include/mlir/Dialect/SPIRV/IR/SPIRVAttrUtils.inc",
3557 tblgen = ":mlir-tblgen",
3558 td_file = "include/mlir/Dialect/SPIRV/IR/SPIRVBase.td",
3559 deps = [":SPIRVOpsTdFiles"],
3563 name = "SPIRVSerializationGen",
3564 strip_include_prefix = "include",
3567 ["-gen-spirv-serialization"],
3568 "include/mlir/Dialect/SPIRV/IR/SPIRVSerialization.inc",
3571 tblgen = ":mlir-tblgen",
3572 td_file = "include/mlir/Dialect/SPIRV/IR/SPIRVOps.td",
3573 deps = [":SPIRVOpsTdFiles"],
3577 name = "SPIRVDialect",
3579 "lib/Dialect/SPIRV/IR/*.cpp",
3580 "lib/Dialect/SPIRV/IR/*.h",
3581 ]) + ["include/mlir/Transforms/InliningUtils.h"],
3583 "include/mlir/Dialect/SPIRV/IR/*.h",
3585 includes = ["include"],
3588 ":ControlFlowInterfaces",
3592 ":SPIRVAttrUtilsGen",
3593 ":SPIRVAvailabilityIncGen",
3594 ":SPIRVCanonicalizationIncGen",
3596 ":SPIRVSerializationGen",
3597 ":SPIRVTargetAndABIStructGen",
3598 ":SideEffectInterfaces",
3606 name = "SPIRVPassIncGen",
3607 strip_include_prefix = "include",
3614 "include/mlir/Dialect/SPIRV/Transforms/Passes.h.inc",
3617 tblgen = ":mlir-tblgen",
3618 td_file = "include/mlir/Dialect/SPIRV/Transforms/Passes.td",
3619 deps = [":PassBaseTdFiles"],
3623 name = "SPIRVUtils",
3625 "lib/Dialect/SPIRV/Utils/*.cpp",
3628 "include/mlir/Dialect/SPIRV/Utils/*.h",
3630 includes = ["include"],
3639 name = "SPIRVConversion",
3640 srcs = ["lib/Dialect/SPIRV/Transforms/SPIRVConversion.cpp"],
3641 hdrs = ["include/mlir/Dialect/SPIRV/Transforms/SPIRVConversion.h"],
3642 includes = ["include"],
3652 name = "SPIRVTransforms",
3655 "lib/Dialect/SPIRV/Transforms/*.cpp",
3656 "lib/Dialect/SPIRV/Transforms/*.h",
3658 exclude = ["lib/Dialect/SPIRV/Transforms/SPIRVConversion.cpp"],
3661 ["include/mlir/Dialect/SPIRV/Transforms/*.h"],
3662 exclude = ["include/mlir/Dialect/SPIRV/Transforms/SPIRVConversion.h"],
3664 includes = ["include"],
3679 name = "MathToSPIRV",
3681 "lib/Conversion/MathToSPIRV/*.cpp",
3682 "lib/Conversion/MathToSPIRV/*.h",
3683 ]) + ["lib/Conversion/PassDetail.h"],
3685 "include/mlir/Conversion/MathToSPIRV/*.h",
3689 "lib/Conversion/MathToSPIRV",
3692 ":ConversionPassIncGen",
3705 name = "StandardToSPIRV",
3707 "lib/Conversion/StandardToSPIRV/*.cpp",
3708 "lib/Conversion/StandardToSPIRV/*.h",
3709 ]) + ["lib/Conversion/PassDetail.h"],
3711 "include/mlir/Conversion/StandardToSPIRV/*.h",
3715 "lib/Conversion/StandardToSPIRV",
3718 ":ConversionPassIncGen",
3734 name = "SPIRVBinaryUtils",
3735 srcs = ["lib/Target/SPIRV/SPIRVBinaryUtils.cpp"],
3736 hdrs = ["include/mlir/Target/SPIRV/SPIRVBinaryUtils.h"],
3737 includes = ["include"],
3740 ":SPIRVAttrUtilsGen",
3749 name = "SPIRVSerialization",
3751 "lib/Target/SPIRV/Serialization/Serialization.cpp",
3752 "lib/Target/SPIRV/Serialization/SerializeOps.cpp",
3753 "lib/Target/SPIRV/Serialization/Serializer.cpp",
3754 "lib/Target/SPIRV/Serialization/Serializer.h",
3756 hdrs = ["include/mlir/Target/SPIRV/Serialization.h"],
3757 includes = ["include"],
3760 ":SPIRVAttrUtilsGen",
3761 ":SPIRVBinaryUtils",
3764 ":SPIRVSerializationGen",
3772 name = "SPIRVDeserialization",
3774 "lib/Target/SPIRV/Deserialization/*.cpp",
3775 "lib/Target/SPIRV/Deserialization/*.h",
3777 hdrs = ["include/mlir/Target/SPIRV/Deserialization.h"],
3778 includes = ["include"],
3781 ":SPIRVAttrUtilsGen",
3782 ":SPIRVBinaryUtils",
3785 ":SPIRVSerializationGen",
3793 name = "SPIRVModuleCombiner",
3795 ["lib/Dialect/SPIRV/Linking/ModuleCombiner/*.cpp"],
3797 hdrs = ["include/mlir/Dialect/SPIRV/Linking/ModuleCombiner.h"],
3798 includes = ["include"],
3808 name = "SPIRVTranslateRegistration",
3809 srcs = ["lib/Target/SPIRV/TranslateRegistration.cpp"],
3810 includes = ["include"],
3814 ":SPIRVDeserialization",
3816 ":SPIRVSerialization",
3824 name = "TensorOpsTdFiles",
3826 "include/mlir/Dialect/Tensor/IR/TensorBase.td",
3827 "include/mlir/Dialect/Tensor/IR/TensorOps.td",
3829 includes = ["include"],
3831 ":CastInterfacesTdFiles",
3832 ":ControlFlowInterfacesTdFiles",
3833 ":InferTypeOpInterfaceTdFiles",
3835 ":SideEffectInterfacesTdFiles",
3836 ":ViewLikeInterfaceTdFiles",
3841 name = "TensorOpsIncGen",
3842 strip_include_prefix = "include",
3846 "-gen-dialect-decls",
3849 "include/mlir/Dialect/Tensor/IR/TensorOpsDialect.h.inc",
3853 "-gen-dialect-defs",
3856 "include/mlir/Dialect/Tensor/IR/TensorOpsDialect.cpp.inc",
3860 "include/mlir/Dialect/Tensor/IR/TensorOps.h.inc",
3864 "include/mlir/Dialect/Tensor/IR/TensorOps.cpp.inc",
3867 tblgen = ":mlir-tblgen",
3868 td_file = "include/mlir/Dialect/Tensor/IR/TensorOps.td",
3869 deps = [":TensorOpsTdFiles"],
3873 name = "TensorDialect",
3876 "lib/Dialect/Tensor/IR/*.cpp",
3877 "lib/Dialect/Tensor/IR/*.h",
3879 ) + ["include/mlir/Transforms/InliningUtils.h"],
3880 hdrs = ["include/mlir/Dialect/Tensor/IR/Tensor.h"],
3881 includes = ["include"],
3883 ":CastOpInterfaces",
3884 ":ControlFlowInterfaces",
3887 ":InferTypeOpInterface",
3888 ":SideEffectInterfaces",
3892 ":ViewLikeInterface",
3898 name = "TensorPassIncGen",
3899 strip_include_prefix = "include",
3906 "include/mlir/Dialect/Tensor/Transforms/Passes.h.inc",
3909 tblgen = ":mlir-tblgen",
3910 td_file = "include/mlir/Dialect/Tensor/Transforms/Passes.td",
3911 deps = [":PassBaseTdFiles"],
3915 name = "TensorTransforms",
3918 "lib/Dialect/Tensor/Transforms/*.cpp",
3919 "lib/Dialect/Tensor/Transforms/*.h",
3922 hdrs = ["include/mlir/Dialect/Tensor/Transforms/Passes.h"],
3923 includes = ["include"],
3928 ":ParallelLoopMapperAttrGen",
3934 ":TensorPassIncGen",
3943 "lib/Rewrite/*.cpp",
3946 hdrs = glob(["include/mlir/Rewrite/*.h"]),
3947 includes = ["include"],
3952 ":PDLInterpDialect",
3955 ":SideEffectInterfaces",
3961 name = "TransformUtils",
3963 "lib/Transforms/Utils/*.cpp",
3964 "lib/Transforms/Utils/*.h",
3967 "include/mlir/Transforms/*.h",
3969 includes = ["include"],
3973 ":ControlFlowInterfaces",
3979 ":SideEffectInterfaces",
3982 ":TransformsPassIncGen",
3988 name = "DerivedAttributeOpInterfaceIncGen",
3989 strip_include_prefix = "include",
3992 ["-gen-op-interface-decls"],
3993 "include/mlir/Interfaces/DerivedAttributeOpInterface.h.inc",
3996 ["-gen-op-interface-defs"],
3997 "include/mlir/Interfaces/DerivedAttributeOpInterface.cpp.inc",
4000 tblgen = ":mlir-tblgen",
4001 td_file = "include/mlir/Interfaces/DerivedAttributeOpInterface.td",
4002 deps = [":DerivedAttributeOpInterfaceTdFiles"],
4006 name = "DerivedAttributeOpInterface",
4007 srcs = ["lib/Interfaces/DerivedAttributeOpInterface.cpp"],
4008 hdrs = ["include/mlir/Interfaces/DerivedAttributeOpInterface.h"],
4009 includes = ["include"],
4011 ":DerivedAttributeOpInterfaceIncGen",
4019 name = "DataLayoutInterfacesTdFiles",
4020 srcs = ["include/mlir/Interfaces/DataLayoutInterfaces.td"],
4021 includes = ["include"],
4025 name = "DataLayoutInterfacesIncGen",
4028 ["-gen-attr-interface-decls"],
4029 "include/mlir/Interfaces/DataLayoutAttrInterface.h.inc",
4032 ["-gen-attr-interface-defs"],
4033 "include/mlir/Interfaces/DataLayoutAttrInterface.cpp.inc",
4036 ["-gen-op-interface-decls"],
4037 "include/mlir/Interfaces/DataLayoutOpInterface.h.inc",
4040 ["-gen-op-interface-defs"],
4041 "include/mlir/Interfaces/DataLayoutOpInterface.cpp.inc",
4044 ["-gen-type-interface-decls"],
4045 "include/mlir/Interfaces/DataLayoutTypeInterface.h.inc",
4048 ["-gen-type-interface-defs"],
4049 "include/mlir/Interfaces/DataLayoutTypeInterface.cpp.inc",
4052 tblgen = ":mlir-tblgen",
4053 td_file = "include/mlir/Interfaces/DataLayoutInterfaces.td",
4054 deps = [":OpBaseTdFiles"],
4058 name = "LoopLikeInterfaceIncGen",
4059 strip_include_prefix = "include",
4062 ["-gen-op-interface-decls"],
4063 "include/mlir/Interfaces/LoopLikeInterface.h.inc",
4066 ["-gen-op-interface-defs"],
4067 "include/mlir/Interfaces/LoopLikeInterface.cpp.inc",
4070 tblgen = ":mlir-tblgen",
4071 td_file = "include/mlir/Interfaces/LoopLikeInterface.td",
4072 deps = [":LoopLikeInterfaceTdFiles"],
4076 name = "VectorInterfacesIncGen",
4077 strip_include_prefix = "include",
4080 ["-gen-op-interface-decls"],
4081 "include/mlir/Interfaces/VectorInterfaces.h.inc",
4084 ["-gen-op-interface-defs"],
4085 "include/mlir/Interfaces/VectorInterfaces.cpp.inc",
4088 tblgen = ":mlir-tblgen",
4089 td_file = "include/mlir/Interfaces/VectorInterfaces.td",
4090 deps = [":VectorInterfacesTdFiles"],
4094 name = "ViewLikeInterfaceIncGen",
4095 strip_include_prefix = "include",
4098 ["-gen-op-interface-decls"],
4099 "include/mlir/Interfaces/ViewLikeInterface.h.inc",
4102 ["-gen-op-interface-defs"],
4103 "include/mlir/Interfaces/ViewLikeInterface.cpp.inc",
4106 tblgen = ":mlir-tblgen",
4107 td_file = "include/mlir/Interfaces/ViewLikeInterface.td",
4108 deps = [":ViewLikeInterfaceTdFiles"],
4112 name = "CopyOpInterfaceIncGen",
4113 strip_include_prefix = "include",
4116 ["-gen-op-interface-decls"],
4117 "include/mlir/Interfaces/CopyOpInterface.h.inc",
4120 ["-gen-op-interface-defs"],
4121 "include/mlir/Interfaces/CopyOpInterface.cpp.inc",
4124 tblgen = ":mlir-tblgen",
4125 td_file = "include/mlir/Interfaces/CopyOpInterface.td",
4126 deps = [":CopyOpInterfaceTdFiles"],
4130 name = "TransformsPassIncGen",
4131 strip_include_prefix = "include",
4138 "include/mlir/Transforms/Passes.h.inc",
4142 "-gen-pass-capi-header",
4143 "--prefix=Transforms",
4145 "include/mlir/Transforms/Transforms.capi.h.inc",
4149 "-gen-pass-capi-impl",
4150 "--prefix=Transforms",
4152 "include/mlir/Transforms/Transforms.capi.cpp.inc",
4155 tblgen = ":mlir-tblgen",
4156 td_file = "include/mlir/Transforms/Passes.td",
4159 ":RewritePassBaseTdFiles",
4164 name = "Transforms",
4166 "lib/Transforms/*.cpp",
4167 "lib/Transforms/*.h",
4169 hdrs = glob(["include/mlir/Transforms/*.h"]),
4170 includes = ["include"],
4174 ":ControlFlowInterfaces",
4178 ":LoopLikeInterface",
4183 ":SideEffectInterfaces",
4188 ":TransformsPassIncGen",
4194 name = "CommonFolders",
4197 hdrs = ["include/mlir/Dialect/CommonFolders.h"],
4198 includes = ["include"],
4207 srcs = ["lib/Conversion/SCFToGPU/SCFToGPU.cpp"],
4208 hdrs = ["include/mlir/Conversion/SCFToGPU/SCFToGPU.h"],
4209 includes = ["include"],
4212 ":AffineToStandard",
4213 ":ConversionPassIncGen",
4229 name = "SCFToGPUPass",
4231 "lib/Conversion/PassDetail.h",
4232 "lib/Conversion/SCFToGPU/SCFToGPUPass.cpp",
4234 hdrs = ["include/mlir/Conversion/SCFToGPU/SCFToGPUPass.h"],
4235 includes = ["include"],
4239 ":ConversionPassIncGen",
4252 name = "SCFToSPIRV",
4254 "lib/Conversion/SCFToSPIRV/*.cpp",
4255 "lib/Conversion/SCFToSPIRV/*.h",
4256 ]) + ["lib/Conversion/PassDetail.h"],
4258 "include/mlir/Conversion/SCFToSPIRV/*.h",
4260 includes = ["include"],
4263 ":ConversionPassIncGen",
4280 name = "SCFToOpenMP",
4282 "lib/Conversion/PassDetail.h",
4283 "lib/Conversion/SCFToOpenMP/SCFToOpenMP.cpp",
4285 hdrs = ["include/mlir/Conversion/SCFToOpenMP/SCFToOpenMP.h"],
4286 includes = ["include"],
4288 ":ConversionPassIncGen",
4299 name = "SCFToStandard",
4301 "lib/Conversion/PassDetail.h",
4302 "lib/Conversion/SCFToStandard/SCFToStandard.cpp",
4304 hdrs = ["include/mlir/Conversion/SCFToStandard/SCFToStandard.h"],
4305 includes = ["include"],
4307 ":ConversionPassIncGen",
4320 name = "CFGTransforms",
4321 actual = "SCFToStandard",
4325 name = "LLVMCommonConversion",
4327 "lib/Conversion/LLVMCommon/*.cpp",
4328 ]) + ["lib/Conversion/LLVMCommon/MemRefDescriptor.h"],
4329 hdrs = glob(["include/mlir/Conversion/LLVMCommon/*.h"]),
4330 includes = ["include"],
4341 name = "StandardToLLVM",
4343 "lib/Conversion/PassDetail.h",
4344 "lib/Conversion/StandardToLLVM/StandardToLLVM.cpp",
4347 "include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h",
4348 "include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h",
4350 includes = ["include"],
4353 ":ConversionPassIncGen",
4354 ":DataLayoutInterfaces",
4357 ":LLVMCommonConversion",
4364 ":StandardOpsTransforms",
4374 name = "MemRefToLLVM",
4375 srcs = glob(["lib/Conversion/MemRefToLLVM/*.cpp"]) + ["lib/Conversion/PassDetail.h"],
4376 hdrs = glob(["include/mlir/Conversion/MemRefToLLVM/*.h"]),
4377 includes = ["include"],
4380 ":ConversionPassIncGen",
4381 ":DataLayoutInterfaces",
4383 ":LLVMCommonConversion",
4393 name = "MemRefToSPIRV",
4395 "lib/Conversion/MemRefToSPIRV/*.cpp",
4396 "lib/Conversion/MemRefToSPIRV/*.h",
4397 ]) + ["lib/Conversion/PassDetail.h"],
4399 "include/mlir/Conversion/MemRefToSPIRV/*.h",
4403 "lib/Conversion/MemRefToSPIRV",
4406 ":ConversionPassIncGen",
4419 name = "MathToLLVM",
4420 srcs = glob(["lib/Conversion/MathToLLVM/*.cpp"]) + ["lib/Conversion/PassDetail.h"],
4421 hdrs = glob(["include/mlir/Conversion/MathToLLVM/*.h"]),
4422 includes = ["include"],
4425 ":ConversionPassIncGen",
4426 ":DataLayoutInterfaces",
4428 ":LLVMCommonConversion",
4438 name = "LLVMTransforms",
4439 actual = "StandardToLLVM",
4443 name = "CallOpInterfacesIncGen",
4444 strip_include_prefix = "include",
4447 ["-gen-op-interface-decls"],
4448 "include/mlir/Interfaces/CallInterfaces.h.inc",
4451 ["-gen-op-interface-defs"],
4452 "include/mlir/Interfaces/CallInterfaces.cpp.inc",
4455 tblgen = ":mlir-tblgen",
4456 td_file = "include/mlir/Interfaces/CallInterfaces.td",
4457 deps = [":CallInterfacesTdFiles"],
4461 name = "CallOpInterfaces",
4462 srcs = ["lib/Interfaces/CallInterfaces.cpp"],
4463 hdrs = ["include/mlir/Interfaces/CallInterfaces.h"],
4464 includes = ["include"],
4466 ":CallOpInterfacesIncGen",
4474 name = "CastOpInterfacesIncGen",
4475 strip_include_prefix = "include",
4478 ["-gen-op-interface-decls"],
4479 "include/mlir/Interfaces/CastInterfaces.h.inc",
4482 ["-gen-op-interface-defs"],
4483 "include/mlir/Interfaces/CastInterfaces.cpp.inc",
4486 tblgen = ":mlir-tblgen",
4487 td_file = "include/mlir/Interfaces/CastInterfaces.td",
4488 deps = [":CastInterfacesTdFiles"],
4492 name = "CastOpInterfaces",
4493 srcs = ["lib/Interfaces/CastInterfaces.cpp"],
4494 hdrs = ["include/mlir/Interfaces/CastInterfaces.h"],
4495 includes = ["include"],
4497 ":CastOpInterfacesIncGen",
4505 name = "ControlFlowInterfacesIncGen",
4506 strip_include_prefix = "include",
4509 ["-gen-op-interface-decls"],
4510 "include/mlir/Interfaces/ControlFlowInterfaces.h.inc",
4513 ["-gen-op-interface-defs"],
4514 "include/mlir/Interfaces/ControlFlowInterfaces.cpp.inc",
4517 tblgen = ":mlir-tblgen",
4518 td_file = "include/mlir/Interfaces/ControlFlowInterfaces.td",
4519 deps = [":ControlFlowInterfacesTdFiles"],
4523 name = "ControlFlowInterfaces",
4524 srcs = ["lib/Interfaces/ControlFlowInterfaces.cpp"],
4525 hdrs = ["include/mlir/Interfaces/ControlFlowInterfaces.h"],
4526 includes = ["include"],
4528 ":ControlFlowInterfacesIncGen",
4536 name = "InferTypeOpInterfaceIncGen",
4537 strip_include_prefix = "include",
4540 ["-gen-op-interface-decls"],
4541 "include/mlir/Interfaces/InferTypeOpInterface.h.inc",
4544 ["-gen-op-interface-defs"],
4545 "include/mlir/Interfaces/InferTypeOpInterface.cpp.inc",
4548 tblgen = ":mlir-tblgen",
4549 td_file = "include/mlir/Interfaces/InferTypeOpInterface.td",
4550 deps = [":InferTypeOpInterfaceTdFiles"],
4554 name = "InferTypeOpInterface",
4555 srcs = ["lib/Interfaces/InferTypeOpInterface.cpp"],
4556 hdrs = ["include/mlir/Interfaces/InferTypeOpInterface.h"],
4557 includes = ["include"],
4560 ":InferTypeOpInterfaceIncGen",
4567 name = "SideEffectInterfacesIncGen",
4568 strip_include_prefix = "include",
4571 ["-gen-op-interface-decls"],
4572 "include/mlir/Interfaces/SideEffectInterfaces.h.inc",
4575 ["-gen-op-interface-defs"],
4576 "include/mlir/Interfaces/SideEffectInterfaces.cpp.inc",
4579 tblgen = ":mlir-tblgen",
4580 td_file = "include/mlir/Interfaces/SideEffectInterfaces.td",
4581 deps = [":SideEffectInterfacesTdFiles"],
4585 name = "SideEffectInterfaces",
4586 srcs = ["lib/Interfaces/SideEffectInterfaces.cpp"],
4587 hdrs = ["include/mlir/Interfaces/SideEffectInterfaces.h"],
4588 includes = ["include"],
4591 ":SideEffectInterfacesIncGen",
4598 name = "SideEffects",
4599 actual = "SideEffectInterfaces",
4606 "lib/Analysis/*.cpp",
4608 "lib/Analysis/*/*.cpp",
4609 "lib/Analysis/*/*.h",
4612 "lib/Analysis/Vector*.cpp",
4613 "lib/Analysis/Vector*.h",
4618 "include/mlir/Analysis/*.h",
4619 "include/mlir/Analysis/*/*.h",
4621 exclude = ["include/mlir/Analysis/Vector*.h"],
4623 includes = ["include"],
4626 ":CallOpInterfaces",
4627 ":ControlFlowInterfaces",
4628 ":DataLayoutInterfaces",
4632 ":SideEffectInterfaces",
4635 ":ViewLikeInterface",
4641 name = "Translation",
4643 "lib/Translation/*.cpp",
4644 "lib/Translation/*.h",
4646 hdrs = ["include/mlir/Translation.h"],
4647 includes = ["include"],
4658 name = "ToLLVMIRTranslation",
4660 "lib/Target/LLVMIR/DebugTranslation.cpp",
4661 "lib/Target/LLVMIR/DebugTranslation.h",
4662 "lib/Target/LLVMIR/ModuleTranslation.cpp",
4663 "lib/Target/LLVMIR/TypeToLLVM.cpp",
4666 "include/mlir/Target/LLVMIR/Export.h",
4667 "include/mlir/Target/LLVMIR/LLVMTranslationInterface.h",
4668 "include/mlir/Target/LLVMIR/ModuleTranslation.h",
4669 "include/mlir/Target/LLVMIR/TypeToLLVM.h",
4671 includes = ["include"],
4674 ":LLVMConversionIncGen",
4676 ":LLVMIRTransforms",
4680 "//llvm:FrontendOpenMP",
4682 "//llvm:TransformUtils",
4687 name = "AMXToLLVMIRTranslation",
4688 srcs = glob(["lib/Target/LLVMIR/Dialect/AMX/*.cpp"]),
4689 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/AMX/*.h"]),
4690 includes = ["include"],
4693 ":AMXConversionIncGen",
4696 ":ToLLVMIRTranslation",
4703 name = "X86VectorToLLVMIRTranslation",
4704 srcs = glob(["lib/Target/LLVMIR/Dialect/X86Vector/*.cpp"]),
4705 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/X86Vector/*.h"]),
4706 includes = ["include"],
4710 ":ToLLVMIRTranslation",
4712 ":X86VectorConversionIncGen",
4719 name = "ArmNeonToLLVMIRTranslation",
4720 srcs = glob(["lib/Target/LLVMIR/Dialect/ArmNeon/*.cpp"]),
4721 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/ArmNeon/*.h"]),
4722 includes = ["include"],
4725 ":ArmNeonConversionIncGen",
4729 ":ToLLVMIRTranslation",
4736 name = "ArmSVEToLLVMIRTranslation",
4737 srcs = glob(["lib/Target/LLVMIR/Dialect/ArmSVE/*.cpp"]),
4738 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/ArmSVE/*.h"]),
4739 includes = ["include"],
4742 ":ArmSVEConversionIncGen",
4745 ":ToLLVMIRTranslation",
4752 name = "NVVMToLLVMIRTranslation",
4753 srcs = glob(["lib/Target/LLVMIR/Dialect/NVVM/*.cpp"]),
4754 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/NVVM/*.h"]),
4755 includes = ["include"],
4758 ":NVVMConversionIncGen",
4761 ":ToLLVMIRTranslation",
4768 name = "ROCDLToLLVMIRTranslation",
4769 srcs = glob(["lib/Target/LLVMIR/Dialect/ROCDL/*.cpp"]),
4770 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/ROCDL/*.h"]),
4771 includes = ["include"],
4774 ":ROCDLConversionIncGen",
4777 ":ToLLVMIRTranslation",
4784 name = "LLVMToLLVMIRTranslation",
4785 srcs = glob(["lib/Target/LLVMIR/Dialect/LLVMIR/*.cpp"]),
4786 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/LLVMIR/*.h"]),
4787 includes = ["include"],
4790 ":LLVMConversionIncGen",
4793 ":ToLLVMIRTranslation",
4800 name = "OpenACCToLLVMIRTranslation",
4801 srcs = glob(["lib/Target/LLVMIR/Dialect/OpenACC/*.cpp"]),
4802 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/OpenACC/*.h"]),
4803 includes = ["include"],
4810 ":ToLLVMIRTranslation",
4812 "//llvm:FrontendOpenMP",
4818 name = "OpenMPToLLVMIRTranslation",
4819 srcs = glob(["lib/Target/LLVMIR/Dialect/OpenMP/*.cpp"]),
4820 hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/OpenMP/*.h"]),
4821 includes = ["include"],
4826 ":ToLLVMIRTranslation",
4828 "//llvm:FrontendOpenMP",
4834 name = "AllToLLVMIRTranslations",
4835 hdrs = ["include/mlir/Target/LLVMIR/Dialect/All.h"],
4836 includes = ["include"],
4838 ":AMXToLLVMIRTranslation",
4839 ":ArmNeonToLLVMIRTranslation",
4840 ":ArmSVEToLLVMIRTranslation",
4841 ":LLVMToLLVMIRTranslation",
4842 ":NVVMToLLVMIRTranslation",
4843 ":OpenACCToLLVMIRTranslation",
4844 ":OpenMPToLLVMIRTranslation",
4845 ":ROCDLToLLVMIRTranslation",
4846 ":X86VectorToLLVMIRTranslation",
4851 name = "ToLLVMIRTranslationRegistration",
4852 srcs = ["lib/Target/LLVMIR/ConvertToLLVMIR.cpp"],
4853 includes = ["include"],
4855 ":AllToLLVMIRTranslations",
4857 ":ToLLVMIRTranslation",
4865 name = "FromLLVMIRTranslation",
4867 "lib/Target/LLVMIR/ConvertFromLLVMIR.cpp",
4868 "lib/Target/LLVMIR/TypeFromLLVM.cpp",
4871 "include/mlir/Target/LLVMIR/Import.h",
4872 "include/mlir/Target/LLVMIR/TypeFromLLVM.h",
4874 includes = ["include"],
4877 ":LLVMConversionIncGen",
4888 name = "ExecutionEngine",
4890 "include/mlir/ExecutionEngine/CRunnerUtils.h",
4891 "lib/ExecutionEngine/ExecutionEngine.cpp",
4894 "include/mlir/ExecutionEngine/ExecutionEngine.h",
4895 "include/mlir/ExecutionEngine/MemRefUtils.h",
4897 includes = ["include"],
4899 ":AllToLLVMIRTranslations",
4903 ":ToLLVMIRTranslation",
4908 "//llvm:ExecutionEngine",
4912 "//llvm:Target", # fixdeps: keep
4913 "//llvm:TransformUtils",
4914 "//llvm:X86CodeGen", # fixdeps: keep
4915 "//llvm:X86Disassembler", # fixdeps: keep
4920 name = "ExecutionEngineUtils",
4921 srcs = ["lib/ExecutionEngine/OptUtils.cpp"],
4922 hdrs = ["include/mlir/ExecutionEngine/OptUtils.h"],
4923 includes = ["include"],
4927 "//llvm:Coroutines",
4931 "//llvm:common_transforms",
4935 # TODO(jpienaar): Update this.
4937 name = "MlirOptLib",
4938 srcs = ["lib/Support/MlirOptMain.cpp"],
4939 hdrs = ["include/mlir/Support/MlirOptMain.h"],
4940 includes = ["include"],
4943 ":ConversionPasses",
4944 ":GPUToGPURuntimeTransforms",
4945 ":GPUToNVVMTransforms",
4946 ":GPUToROCDLTransforms",
4955 ":StandardOpsTransforms",
4964 name = "AllTranslations",
4965 hdrs = ["include/mlir/InitAllTranslations.h"],
4967 ":FromLLVMIRTranslation",
4968 ":SPIRVTranslateRegistration",
4969 ":ToLLVMIRTranslationRegistration",
4974 name = "MlirTranslateMain",
4975 srcs = ["tools/mlir-translate/mlir-translate.cpp"],
4977 ":AllPassesAndDialects",
4988 name = "mlir-translate",
4989 deps = [":MlirTranslateMain"],
4993 name = "AllPassesAndDialects",
4995 "include/mlir/InitAllDialects.h",
4996 "include/mlir/InitAllPasses.h",
5002 ":AffinePassIncGen",
5003 ":AffineToStandard",
5004 ":AffineTransforms",
5007 ":ArmSVETransforms",
5014 ":ConversionPasses",
5019 ":GPUToGPURuntimeTransforms",
5020 ":GPUToNVVMTransforms",
5021 ":GPUToROCDLTransforms",
5023 ":GPUToVulkanTransforms",
5027 ":LLVMIRTransforms",
5030 ":LinalgPassIncGen",
5033 ":LinalgToStandard",
5034 ":LinalgTransforms",
5043 ":MemRefTransforms",
5049 ":PDLInterpDialect",
5067 ":ShapeTransformsPassIncGen",
5069 ":SparseTensorTransforms",
5071 ":StandardOpsTransforms",
5072 ":StandardOpsTransformsPassIncGen",
5076 ":TensorTransforms",
5080 ":TransformsPassIncGen",
5087 ":X86VectorTransforms",
5092 name = "mlir-lsp-server",
5093 srcs = ["tools/mlir-lsp-server/mlir-lsp-server.cpp"],
5094 includes = ["include"],
5096 ":AllPassesAndDialects",
5098 ":MlirLspServerLib",
5104 srcs = ["tools/mlir-opt/mlir-opt.cpp"],
5105 local_defines = ["MLIR_INCLUDE_TESTS"],
5107 ":AllPassesAndDialects",
5117 "//llvm:AllTargetsCodeGens",
5119 "//mlir/test:TestAffine",
5120 "//mlir/test:TestAnalysis",
5121 "//mlir/test:TestDLTI",
5122 "//mlir/test:TestDialect",
5123 "//mlir/test:TestGPU",
5124 "//mlir/test:TestIR",
5125 "//mlir/test:TestLinalg",
5126 "//mlir/test:TestMath",
5127 "//mlir/test:TestPass",
5128 "//mlir/test:TestReducer",
5129 "//mlir/test:TestRewrite",
5130 "//mlir/test:TestSCF",
5131 "//mlir/test:TestSPIRV",
5132 "//mlir/test:TestShapeDialect",
5133 "//mlir/test:TestStandardOps",
5134 "//mlir/test:TestStandardToLLVM",
5135 "//mlir/test:TestTosaDialect",
5136 "//mlir/test:TestTransforms",
5137 "//mlir/test:TestTypeDialect",
5138 "//mlir/test:TestVector",
5143 name = "MlirJitRunner",
5144 srcs = ["lib/ExecutionEngine/JitRunner.cpp"],
5145 hdrs = ["include/mlir/ExecutionEngine/JitRunner.h"],
5146 includes = ["include"],
5148 ":AllPassesAndDialects",
5150 ":ExecutionEngineUtils",
5153 ":LLVMToLLVMIRTranslation",
5154 ":OpenACCToLLVMIRTranslation",
5155 ":OpenMPToLLVMIRTranslation",
5167 name = "mlir_c_runner_utils",
5169 "lib/ExecutionEngine/CRunnerUtils.cpp",
5170 "lib/ExecutionEngine/SparseUtils.cpp",
5172 hdrs = ["include/mlir/ExecutionEngine/CRunnerUtils.h"],
5173 includes = ["include"],
5177 name = "mlir_async_runtime_api",
5178 hdrs = ["include/mlir/ExecutionEngine/AsyncRuntime.h"],
5179 includes = ["include"],
5183 name = "mlir_async_runtime",
5184 srcs = ["lib/ExecutionEngine/AsyncRuntime.cpp"],
5185 copts = ["-Dmlir_async_runtime_EXPORTS"],
5187 ":mlir_async_runtime_api",
5193 name = "mlir_runner_utils",
5194 srcs = ["lib/ExecutionEngine/RunnerUtils.cpp"],
5195 hdrs = ["include/mlir/ExecutionEngine/RunnerUtils.h"],
5196 includes = ["include"],
5197 deps = [":mlir_c_runner_utils"],
5201 name = "mlir-cpu-runner",
5202 srcs = ["tools/mlir-cpu-runner/mlir-cpu-runner.cpp"],
5204 ":AllToLLVMIRTranslations",
5205 ":ExecutionEngineUtils",
5208 ":LLVMToLLVMIRTranslation",
5210 ":OpenACCToLLVMIRTranslation",
5211 ":OpenMPToLLVMIRTranslation",
5212 ":ToLLVMIRTranslation",
5215 "//llvm:X86AsmParser",
5219 # This target provides the headers from LLVM's Support target without any of
5220 # the symbols. In particular, it does not contain the static registration code
5221 # which may be executed by at most one shared library loaded by ORCJit. Direct
5222 # dependencies need to avoid requiring symbols from LLVMSupport by adding
5223 # copts = ["-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1"].
5225 # Bazel links the dependencies' object files instead of the archives, which
5226 # means that symbols are linked in even if none are used. The LLVM cmake build
5227 # on the other hand links archives (or shared libraries, depending on
5228 # BUILD_SHARED_LIBS), skipping them if none of the symbols are used.
5229 # See also https://reviews.llvm.org/D95613.
5231 name = "LLVMSupportHeaders",
5232 src = "//llvm:Support",
5236 name = "mlir_cuda_runtime",
5237 srcs = ["lib/ExecutionEngine/CudaRuntimeWrappers.cpp"],
5238 # Prevent needing EnableABIBreakingChecks symbol from LLVMSupport.
5239 copts = ["-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1"],
5241 "manual", # External dependency
5242 "nobuildkite", # TODO(gcmn): Add support for this target
5245 ":LLVMSupportHeaders",
5246 ":mlir_c_runner_utils",
5247 "@cuda//:cuda_headers",
5253 name = "VulkanRuntime",
5254 srcs = ["tools/mlir-vulkan-runner/VulkanRuntime.cpp"],
5255 hdrs = ["tools/mlir-vulkan-runner/VulkanRuntime.h"],
5257 "manual", # External dependency
5263 ":SideEffectInterfaces",
5268 "@vulkan_sdk//:sdk",
5273 name = "tools/libvulkan-runtime-wrappers.so",
5274 srcs = ["tools/mlir-vulkan-runner/vulkan-runtime-wrappers.cpp"],
5277 "manual", # External dependency
5286 name = "mlir-vulkan-runner",
5287 srcs = ["tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp"],
5289 ":ExecutionEngineUtils",
5292 ":GPUToVulkanTransforms",
5294 ":LLVMCommonConversion",
5296 ":LLVMToLLVMIRTranslation",
5299 ":MemRefTransforms",
5307 ":ToLLVMIRTranslation",
5313 name = "mlir-spirv-cpu-runner",
5314 srcs = ["tools/mlir-spirv-cpu-runner/mlir-spirv-cpu-runner.cpp"],
5316 ":ExecutionEngineUtils",
5322 ":LLVMToLLVMIRTranslation",
5332 ":ToLLVMIRTranslation",
5341 srcs = glob(["lib/TableGen/*.cpp"]),
5342 hdrs = glob(["include/mlir/TableGen/*.h"]),
5343 includes = ["include"],
5352 name = "MlirTableGenMain",
5353 srcs = ["tools/mlir-tblgen/mlir-tblgen.cpp"],
5354 includes = ["include"],
5365 name = "mlir-tblgen",
5367 "tools/mlir-tblgen/*.h",
5368 "tools/mlir-tblgen/*.cpp",
5371 ":MlirTableGenMain",
5381 name = "mlir-linalg-ods-gen",
5383 "tools/mlir-linalg-ods-gen/mlir-linalg-ods-gen.cpp",
5395 name = "mlir-linalg-ods-yaml-gen",
5397 "tools/mlir-linalg-ods-gen/mlir-linalg-ods-yaml-gen.cpp",
5411 # TODO(gcmn): This is sticking td files in a cc_library
5413 name = "AccCommonGen",
5414 includes = ["/llvm/include"],
5415 strip_include_prefix = "include",
5418 ["-gen-directive-decl"],
5419 "include/mlir/Dialect/OpenACC/AccCommon.td",
5422 tblgen = ":mlir-tblgen",
5423 td_file = "//llvm:include/llvm/Frontend/OpenACC/ACC.td",
5424 deps = ["//llvm:acc_td_files"],
5428 name = "OpenAccOpsTdFiles",
5430 "include/mlir/Dialect/OpenACC/AccCommon.td",
5431 "include/mlir/Dialect/OpenACC/OpenACCOps.td",
5433 includes = ["include"],
5434 deps = [":OpBaseTdFiles"],
5438 name = "OpenACCOpsIncGen",
5439 strip_include_prefix = "include",
5443 "-gen-dialect-decls",
5446 "include/mlir/Dialect/OpenACC/OpenACCOpsDialect.h.inc",
5450 "-gen-dialect-defs",
5453 "include/mlir/Dialect/OpenACC/OpenACCOpsDialect.cpp.inc",
5457 "include/mlir/Dialect/OpenACC/OpenACCOps.h.inc",
5461 "include/mlir/Dialect/OpenACC/OpenACCOps.cpp.inc",
5464 ["-gen-enum-decls"],
5465 "include/mlir/Dialect/OpenACC/OpenACCOpsEnums.h.inc",
5469 "include/mlir/Dialect/OpenACC/OpenACCOpsEnums.cpp.inc",
5473 "g3doc/Dialects/OpenACC/OpenACCOps.md",
5476 tblgen = ":mlir-tblgen",
5477 td_file = "include/mlir/Dialect/OpenACC/OpenACCOps.td",
5478 deps = [":OpenAccOpsTdFiles"],
5482 name = "OpenACCDialect",
5485 "lib/Dialect/OpenACC/IR/*.cpp",
5486 "lib/Dialect/OpenACC/IR/*.h",
5490 "include/mlir/Dialect/OpenACC/*.h",
5492 includes = ["include"],
5495 ":OpenACCOpsIncGen",
5504 # TODO(gcmn): This is sticking td files in a cc_library
5506 name = "OmpCommonTdGen",
5507 includes = ["/llvm/include"],
5508 strip_include_prefix = "include",
5511 ["-gen-directive-decl"],
5512 "include/mlir/Dialect/OpenMP/OmpCommon.td",
5515 tblgen = ":mlir-tblgen",
5516 td_file = "//llvm:include/llvm/Frontend/OpenMP/OMP.td",
5519 "//llvm:omp_td_files",
5524 name = "OpenMPOpsTdFiles",
5526 "include/mlir/Dialect/OpenMP/OmpCommon.td",
5527 "include/mlir/Dialect/OpenMP/OpenMPOps.td",
5536 name = "OpenMPOpsIncGen",
5537 strip_include_prefix = "include",
5541 "include/mlir/Dialect/OpenMP/OpenMPOps.h.inc",
5545 "include/mlir/Dialect/OpenMP/OpenMPOps.cpp.inc",
5548 ["-gen-enum-decls"],
5549 "include/mlir/Dialect/OpenMP/OpenMPOpsEnums.h.inc",
5553 "include/mlir/Dialect/OpenMP/OpenMPOpsEnums.cpp.inc",
5557 "-gen-dialect-decls",
5560 "include/mlir/Dialect/OpenMP/OpenMPOpsDialect.h.inc",
5564 "-gen-dialect-defs",
5567 "include/mlir/Dialect/OpenMP/OpenMPOpsDialect.cpp.inc",
5570 ["-gen-type-interface-decls"],
5571 "include/mlir/Dialect/OpenMP/OpenMPTypeInterfaces.h.inc",
5574 ["-gen-type-interface-defs"],
5575 "include/mlir/Dialect/OpenMP/OpenMPTypeInterfaces.cpp.inc",
5579 "g3doc/Dialects/OpenMP/OpenMPOps.md",
5582 tblgen = ":mlir-tblgen",
5583 td_file = "include/mlir/Dialect/OpenMP/OpenMPOps.td",
5584 deps = [":OpenMPOpsTdFiles"],
5588 name = "OpenMPDialect",
5591 "lib/Dialect/OpenMP/IR/*.cpp",
5592 "lib/Dialect/OpenMP/IR/*.h",
5596 "include/mlir/Dialect/OpenMP/*.h",
5598 includes = ["include"],
5600 ":ControlFlowInterfaces",
5604 ":SideEffectInterfaces",
5611 name = "OpenACCToSCF",
5613 "lib/Conversion/OpenACCToSCF/*.cpp",
5614 "lib/Conversion/OpenACCToSCF/*.h",
5615 ]) + ["lib/Conversion/PassDetail.h"],
5617 "include/mlir/Conversion/OpenACCToSCF/*.h",
5619 includes = ["include"],
5621 ":ConversionPassIncGen",
5632 name = "OpenACCToLLVM",
5634 "lib/Conversion/OpenACCToLLVM/*.cpp",
5635 "lib/Conversion/OpenACCToLLVM/*.h",
5636 ]) + ["lib/Conversion/PassDetail.h"],
5638 "include/mlir/Conversion/OpenACCToLLVM/*.h",
5640 includes = ["include"],
5642 ":ConversionPassIncGen",
5644 ":LLVMCommonConversion",
5656 name = "OpenMPToLLVM",
5658 "lib/Conversion/OpenMPToLLVM/*.cpp",
5659 "lib/Conversion/OpenMPToLLVM/*.h",
5660 ]) + ["lib/Conversion/PassDetail.h"],
5662 "include/mlir/Conversion/OpenMPToLLVM/*.h",
5664 includes = ["include"],
5666 ":ConversionPassIncGen",
5668 ":LLVMCommonConversion",
5682 name = "QuantizationOpsTdFiles",
5684 "include/mlir/Dialect/Quant/QuantOps.td",
5685 "include/mlir/Dialect/Quant/QuantOpsBase.td",
5687 includes = ["include"],
5690 ":SideEffectInterfacesTdFiles",
5695 name = "QuantOpsIncGen",
5696 strip_include_prefix = "include",
5700 "include/mlir/Dialect/Quant/QuantOps.h.inc",
5704 "include/mlir/Dialect/Quant/QuantOps.cpp.inc",
5707 ["-gen-dialect-decls"],
5708 "include/mlir/Dialect/Quant/QuantOpsDialect.h.inc",
5711 ["-gen-dialect-defs"],
5712 "include/mlir/Dialect/Quant/QuantOpsDialect.cpp.inc",
5716 "g3doc/Dialects/QuantOps/QuantOps.md",
5719 tblgen = ":mlir-tblgen",
5720 td_file = "include/mlir/Dialect/Quant/QuantOps.td",
5721 deps = [":QuantizationOpsTdFiles"],
5725 name = "QuantPassIncGen",
5726 strip_include_prefix = "include",
5733 "include/mlir/Dialect/Quant/Passes.h.inc",
5736 tblgen = ":mlir-tblgen",
5737 td_file = "include/mlir/Dialect/Quant/Passes.td",
5738 deps = [":PassBaseTdFiles"],
5744 "lib/Dialect/Quant/IR/QuantOps.cpp",
5745 "lib/Dialect/Quant/IR/QuantTypes.cpp",
5746 "lib/Dialect/Quant/IR/TypeDetail.h",
5747 "lib/Dialect/Quant/IR/TypeParser.cpp",
5748 "lib/Dialect/Quant/Transforms/ConvertConst.cpp",
5749 "lib/Dialect/Quant/Transforms/ConvertSimQuant.cpp",
5750 "lib/Dialect/Quant/Transforms/PassDetail.h",
5751 "lib/Dialect/Quant/Utils/FakeQuantSupport.cpp",
5752 "lib/Dialect/Quant/Utils/QuantizeUtils.cpp",
5753 "lib/Dialect/Quant/Utils/UniformSupport.cpp",
5756 "include/mlir/Dialect/Quant/FakeQuantSupport.h",
5757 "include/mlir/Dialect/Quant/Passes.h",
5758 "include/mlir/Dialect/Quant/QuantOps.h",
5759 "include/mlir/Dialect/Quant/QuantTypes.h",
5760 "include/mlir/Dialect/Quant/QuantizeUtils.h",
5761 "include/mlir/Dialect/Quant/UniformSupport.h",
5763 includes = ["include"],
5769 ":SideEffectInterfaces",
5777 name = "LinalgOpsTdFiles",
5779 "include/mlir/Dialect/Linalg/IR/LinalgBase.td",
5780 "include/mlir/Dialect/Linalg/IR/LinalgOps.td",
5782 includes = ["include"],
5784 ":ControlFlowInterfacesTdFiles",
5785 ":InferTypeOpInterfaceTdFiles",
5786 ":LoopLikeInterfaceTdFiles",
5788 ":SideEffectInterfacesTdFiles",
5789 ":ViewLikeInterfaceTdFiles",
5794 name = "LinalgOpsIncGen",
5795 strip_include_prefix = "include",
5799 "include/mlir/Dialect/Linalg/IR/LinalgOps.h.inc",
5803 "include/mlir/Dialect/Linalg/IR/LinalgOps.cpp.inc",
5807 "-gen-dialect-decls",
5810 "include/mlir/Dialect/Linalg/IR/LinalgOpsDialect.h.inc",
5814 "-gen-dialect-defs",
5817 "include/mlir/Dialect/Linalg/IR/LinalgOpsDialect.cpp.inc",
5820 tblgen = ":mlir-tblgen",
5821 td_file = "include/mlir/Dialect/Linalg/IR/LinalgOps.td",
5822 deps = [":LinalgOpsTdFiles"],
5826 name = "LinalgNamedStructuredOpsTcIncGen",
5827 src = "include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOpsSpec.tc",
5831 "include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.tcgen.cpp.inc",
5834 "-gen-ods-decl -o=$@",
5835 "include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.tcgen.td",
5838 linalggen = ":mlir-linalg-ods-gen",
5842 name = "LinalgNamedStructuredOpsYamlIncGen",
5843 src = "include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yaml",
5847 "include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yamlgen.cpp.inc",
5851 "include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yamlgen.td",
5854 linalggen = ":mlir-linalg-ods-yaml-gen",
5858 name = "LinalgStructuredOpsTdFiles",
5860 "include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td",
5861 "include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.tcgen.td",
5862 "include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yamlgen.td",
5863 "include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td",
5865 includes = ["include"],
5867 ":CopyOpInterfaceTdFiles",
5868 ":LinalgOpsTdFiles",
5870 ":SideEffectInterfacesTdFiles",
5875 name = "LinalgStructuredOpsIncGen",
5876 strip_include_prefix = "include",
5880 "include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.h.inc",
5884 "include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.cpp.inc",
5887 tblgen = ":mlir-tblgen",
5888 td_file = "include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td",
5889 deps = [":LinalgStructuredOpsTdFiles"],
5893 name = "LinalgInterfacesIncGen",
5894 strip_include_prefix = "include",
5897 ["-gen-op-interface-decls"],
5898 "include/mlir/Dialect/Linalg/IR/LinalgInterfaces.h.inc",
5901 ["-gen-op-interface-defs"],
5902 "include/mlir/Dialect/Linalg/IR/LinalgInterfaces.cpp.inc",
5905 tblgen = ":mlir-tblgen",
5906 td_file = "include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td",
5907 deps = [":LinalgStructuredOpsTdFiles"],
5911 name = "LinalgDocTdFiles",
5912 srcs = ["include/mlir/Dialect/Linalg/IR/LinalgDoc.td"],
5913 includes = ["include"],
5915 ":LinalgOpsTdFiles",
5916 ":LinalgStructuredOpsTdFiles",
5921 name = "LinalgDocIncGen",
5922 strip_include_prefix = "include",
5926 "g3doc/Dialects/Linalg/LinalgOps.md",
5929 tblgen = ":mlir-tblgen",
5930 td_file = "include/mlir/Dialect/Linalg/IR/LinalgDoc.td",
5931 deps = [":LinalgDocTdFiles"],
5935 name = "LinalgToLLVM",
5937 "lib/Conversion/LinalgToLLVM/*.cpp",
5938 "lib/Conversion/LinalgToLLVM/*.h",
5939 ]) + ["lib/Conversion/PassDetail.h"],
5941 "include/mlir/Conversion/LinalgToLLVM/*.h",
5943 includes = ["include"],
5945 ":AffineToStandard",
5947 ":ConversionPassIncGen",
5949 ":LLVMCommonConversion",
5952 ":LinalgTransforms",
5968 name = "LinalgToStandard",
5970 "lib/Conversion/LinalgToStandard/*.cpp",
5971 "lib/Conversion/LinalgToStandard/*.h",
5972 ]) + ["lib/Conversion/PassDetail.h"],
5974 "include/mlir/Conversion/LinalgToStandard/*.h",
5976 includes = ["include"],
5979 ":ConversionPassIncGen",
5982 ":LinalgTransforms",
5995 name = "LinalgToSPIRV",
5997 "lib/Conversion/LinalgToSPIRV/*.cpp",
5998 "lib/Conversion/LinalgToSPIRV/*.h",
5999 ]) + ["lib/Conversion/PassDetail.h"],
6001 "include/mlir/Conversion/LinalgToSPIRV/*.h",
6003 includes = ["include"],
6005 ":ConversionPassIncGen",
6009 ":LinalgTransforms",
6021 "lib/Dialect/Linalg/IR/LinalgOps.cpp",
6022 "lib/Dialect/Linalg/IR/LinalgTypes.cpp",
6025 "include/mlir/Dialect/Linalg/IR/LinalgOps.h",
6026 "include/mlir/Dialect/Linalg/IR/LinalgTypes.h",
6028 includes = ["include"],
6034 ":InferTypeOpInterface",
6035 ":LinalgInterfaces",
6036 ":LinalgInterfacesIncGen",
6037 ":LinalgNamedStructuredOpsTcIncGen",
6038 ":LinalgNamedStructuredOpsYamlIncGen",
6040 ":LinalgStructuredOpsIncGen",
6044 ":SideEffectInterfaces",
6048 ":ViewLikeInterface",
6054 name = "LinalgPassIncGen",
6055 strip_include_prefix = "include",
6062 "include/mlir/Dialect/Linalg/Passes.h.inc",
6066 "-gen-pass-capi-header",
6069 "include/mlir/Dialect/Linalg/Passes.capi.h.inc",
6073 "-gen-pass-capi-impl",
6076 "include/mlir/Dialect/Linalg/Passes.capi.cpp.inc",
6079 tblgen = ":mlir-tblgen",
6080 td_file = "include/mlir/Dialect/Linalg/Passes.td",
6081 deps = [":PassBaseTdFiles"],
6085 name = "LinalgTransforms",
6087 "lib/Dialect/Linalg/Transforms/*.cpp",
6088 "lib/Dialect/Linalg/Transforms/*.h",
6090 "lib/Dialect/Linalg/Analysis/DependenceAnalysis.cpp",
6091 "lib/Dialect/Linalg/Utils/Utils.cpp",
6094 "include/mlir/Dialect/Linalg/Analysis/DependenceAnalysis.h",
6095 "include/mlir/Dialect/Linalg/Passes.h",
6096 "include/mlir/Dialect/Linalg/Transforms/CodegenStrategy.h",
6097 "include/mlir/Dialect/Linalg/Transforms/Hoisting.h",
6098 "include/mlir/Dialect/Linalg/Transforms/Transforms.h",
6099 "include/mlir/Dialect/Linalg/Utils/Utils.h",
6101 includes = ["include"],
6110 ":LinalgPassIncGen",
6111 ":LinalgStructuredOpsIncGen",
6118 ":StandardOpsTransforms",
6129 name = "VectorOpsTdFiles",
6130 srcs = ["include/mlir/Dialect/Vector/VectorOps.td"],
6131 includes = ["include"],
6134 ":SideEffectInterfacesTdFiles",
6135 ":VectorInterfacesTdFiles",
6136 ":ViewLikeInterfaceTdFiles",
6141 name = "VectorOpsIncGen",
6142 strip_include_prefix = "include",
6146 "include/mlir/Dialect/Vector/VectorOps.h.inc",
6150 "include/mlir/Dialect/Vector/VectorOps.cpp.inc",
6154 "-gen-dialect-decls",
6157 "include/mlir/Dialect/Vector/VectorOpsDialect.h.inc",
6161 "-gen-dialect-defs",
6164 "include/mlir/Dialect/Vector/VectorOpsDialect.cpp.inc",
6167 ["-gen-enum-decls"],
6168 "include/mlir/Dialect/Vector/VectorOpsEnums.h.inc",
6172 "include/mlir/Dialect/Vector/VectorOpsEnums.cpp.inc",
6176 "g3doc/Dialects/Vector/VectorOps.md",
6179 tblgen = ":mlir-tblgen",
6180 td_file = "include/mlir/Dialect/Vector/VectorOps.td",
6181 deps = [":VectorOpsTdFiles"],
6185 name = "VectorToLLVM",
6187 "lib/Conversion/VectorToLLVM/*.cpp",
6188 "lib/Conversion/VectorToLLVM/*.h",
6189 ]) + ["lib/Conversion/PassDetail.h"],
6191 "include/mlir/Conversion/VectorToLLVM/*.h",
6193 includes = ["include"],
6199 ":ArmSVETransforms",
6200 ":ConversionPassIncGen",
6203 ":LLVMCommonConversion",
6209 ":ToLLVMIRTranslation",
6213 ":X86VectorTransforms",
6220 name = "VectorToGPU",
6222 "lib/Conversion/VectorToGPU/*.cpp",
6223 "lib/Conversion/VectorToGPU/*.h",
6224 ]) + ["lib/Conversion/PassDetail.h"],
6226 "include/mlir/Conversion/VectorToGPU/*.h",
6228 includes = ["include"],
6232 ":ConversionPassIncGen",
6251 name = "VectorToSCF",
6253 "lib/Conversion/VectorToSCF/*.cpp",
6254 "lib/Conversion/VectorToSCF/*.h",
6255 ]) + ["lib/Conversion/PassDetail.h"],
6257 "include/mlir/Conversion/VectorToSCF/*.h",
6259 includes = ["include"],
6263 ":ConversionPassIncGen",
6280 name = "TosaDialectTdFiles",
6281 srcs = glob(["include/mlir/Dialect/Tosa/IR/*.td"]),
6283 ":InferTypeOpInterfaceTdFiles",
6284 ":LoopLikeInterfaceTdFiles",
6286 ":SideEffectInterfacesTdFiles",
6291 name = "TosaDialectIncGen",
6292 strip_include_prefix = "include",
6296 "include/mlir/Dialect/Tosa/IR/TosaOps.h.inc",
6300 "include/mlir/Dialect/Tosa/IR/TosaOps.cpp.inc",
6303 ["-gen-struct-attr-decls"],
6304 "include/mlir/Dialect/Tosa/IR/TosaStructs.h.inc",
6307 ["-gen-struct-attr-defs"],
6308 "include/mlir/Dialect/Tosa/IR/TosaStructs.cpp.inc",
6311 ["-gen-dialect-decls"],
6312 "include/mlir/Dialect/Tosa/IR/TosaOpsDialect.h.inc",
6315 ["-gen-dialect-defs"],
6316 "include/mlir/Dialect/Tosa/IR/TosaOpsDialect.cpp.inc",
6320 "g3doc/Dialects/Tosa/TosaOps.md",
6323 tblgen = ":mlir-tblgen",
6324 td_file = "include/mlir/Dialect/Tosa/IR/TosaOps.td",
6325 deps = [":TosaDialectTdFiles"],
6329 name = "TosaInterfacesIncGen",
6330 strip_include_prefix = "include",
6333 ["-gen-op-interface-decls"],
6334 "include/mlir/Dialect/Tosa/IR/TosaInterfaces.h.inc",
6337 ["-gen-op-interface-defs"],
6338 "include/mlir/Dialect/Tosa/IR/TosaInterfaces.cpp.inc",
6341 tblgen = ":mlir-tblgen",
6342 td_file = "include/mlir/Dialect/Tosa/IR/TosaInterfaces.td",
6343 deps = [":TosaDialectTdFiles"],
6347 name = "TosaPassIncGen",
6348 strip_include_prefix = "include",
6355 "include/mlir/Dialect/Tosa/Transforms/Passes.h.inc",
6358 tblgen = ":mlir-tblgen",
6359 td_file = "include/mlir/Dialect/Tosa/Transforms/Passes.td",
6360 deps = [":PassBaseTdFiles"],
6364 name = "TosaDialect",
6366 "lib/Dialect/Tosa/IR/*.cpp",
6367 "lib/Dialect/Tosa/IR/*.h",
6368 "lib/Dialect/Tosa/Utils/*.cpp",
6369 "lib/Dialect/Tosa/Transforms/*.cpp",
6372 "include/mlir/Dialect/Tosa/IR/*.h",
6373 "include/mlir/Dialect/Tosa/Utils/*.h",
6374 "include/mlir/Dialect/Tosa/Transforms/*.h",
6376 includes = ["include"],
6381 ":InferTypeOpInterface",
6382 ":LoopLikeInterface",
6385 ":SideEffectInterfaces",
6388 ":TosaDialectIncGen",
6389 ":TosaInterfacesIncGen",
6397 name = "TosaToLinalg",
6399 "lib/Conversion/TosaToLinalg/*.cpp",
6400 "lib/Conversion/TosaToLinalg/*.h",
6401 ]) + ["lib/Conversion/PassDetail.h"],
6403 "include/mlir/Conversion/TosaToLinalg/*.h",
6407 "lib/Conversion/TosaToLinalg",
6410 ":ConversionPassIncGen",
6426 "lib/Conversion/TosaToSCF/*.cpp",
6427 "lib/Conversion/TosaToSCF/*.h",
6428 ]) + ["lib/Conversion/PassDetail.h"],
6430 "include/mlir/Conversion/TosaToSCF/*.h",
6434 "lib/Conversion/TosaToSCF",
6437 ":ConversionPassIncGen",
6448 name = "TosaToStandard",
6450 "lib/Conversion/TosaToStandard/*.cpp",
6451 "lib/Conversion/TosaToStandard/*.h",
6452 ]) + ["lib/Conversion/PassDetail.h"],
6454 "include/mlir/Conversion/TosaToStandard/*.h",
6458 "lib/Conversion/TosaToStandard",
6461 ":ConversionPassIncGen",
6472 name = "ComplexOpsTdFiles",
6474 "include/mlir/Dialect/Complex/IR/ComplexBase.td",
6475 "include/mlir/Dialect/Complex/IR/ComplexOps.td",
6477 includes = ["include"],
6480 ":SideEffectInterfacesTdFiles",
6485 name = "ComplexBaseIncGen",
6486 strip_include_prefix = "include",
6490 "-gen-dialect-decls",
6493 "include/mlir/Dialect/Complex/IR/ComplexOpsDialect.h.inc",
6497 "-gen-dialect-defs",
6500 "include/mlir/Dialect/Complex/IR/ComplexOpsDialect.cpp.inc",
6503 tblgen = ":mlir-tblgen",
6504 td_file = "include/mlir/Dialect/Complex/IR/ComplexBase.td",
6505 deps = [":ComplexOpsTdFiles"],
6509 name = "ComplexOpsIncGen",
6510 strip_include_prefix = "include",
6514 "include/mlir/Dialect/Complex/IR/ComplexOps.h.inc",
6518 "include/mlir/Dialect/Complex/IR/ComplexOps.cpp.inc",
6521 tblgen = ":mlir-tblgen",
6522 td_file = "include/mlir/Dialect/Complex/IR/ComplexOps.td",
6523 deps = [":ComplexOpsTdFiles"],
6527 name = "ComplexDialect",
6530 "lib/Dialect/Complex/IR/*.cpp",
6531 "lib/Dialect/Complex/IR/*.h",
6534 hdrs = ["include/mlir/Dialect/Complex/IR/Complex.h"],
6535 includes = ["include"],
6537 ":ComplexBaseIncGen",
6538 ":ComplexOpsIncGen",
6540 ":SideEffectInterfaces",
6542 ":VectorInterfaces",
6548 name = "ComplexToLLVM",
6550 "lib/Conversion/ComplexToLLVM/*.cpp",
6551 "lib/Conversion/ComplexToLLVM/*.h",
6552 ]) + ["lib/Conversion/PassDetail.h"],
6554 "include/mlir/Conversion/ComplexToLLVM/*.h",
6556 includes = ["include"],
6559 ":ConversionPassIncGen",
6561 ":LLVMCommonConversion",
6572 name = "ComplexToStandard",
6574 "lib/Conversion/ComplexToStandard/*.cpp",
6575 "lib/Conversion/ComplexToStandard/*.h",
6576 ]) + ["lib/Conversion/PassDetail.h"],
6578 "include/mlir/Conversion/ComplexToStandard/*.h",
6580 includes = ["include"],
6583 ":ConversionPassIncGen",
6593 "include/mlir/Interfaces/CallInterfaces.h",
6594 "include/mlir/Interfaces/CastInterfaces.h",
6595 "include/mlir/Interfaces/ControlFlowInterfaces.h",
6596 "include/mlir/Transforms/InliningUtils.h",
6600 name = "MathOpsTdFiles",
6602 "include/mlir/Dialect/Math/IR/MathBase.td",
6603 "include/mlir/Dialect/Math/IR/MathOps.td",
6605 includes = ["include"],
6608 ":SideEffectInterfacesTdFiles",
6609 ":VectorInterfacesTdFiles",
6614 name = "MathBaseIncGen",
6615 strip_include_prefix = "include",
6619 "-gen-dialect-decls",
6622 "include/mlir/Dialect/Math/IR/MathOpsDialect.h.inc",
6626 "-gen-dialect-defs",
6629 "include/mlir/Dialect/Math/IR/MathOpsDialect.cpp.inc",
6632 tblgen = ":mlir-tblgen",
6633 td_file = "include/mlir/Dialect/Math/IR/MathBase.td",
6634 deps = [":MathOpsTdFiles"],
6638 name = "MathOpsIncGen",
6639 strip_include_prefix = "include",
6643 "include/mlir/Dialect/Math/IR/MathOps.h.inc",
6647 "include/mlir/Dialect/Math/IR/MathOps.cpp.inc",
6650 tblgen = ":mlir-tblgen",
6651 td_file = "include/mlir/Dialect/Math/IR/MathOps.td",
6652 deps = [":MathOpsTdFiles"],
6656 name = "MathDialect",
6659 "lib/Dialect/Math/IR/*.cpp",
6660 "lib/Dialect/Math/IR/*.h",
6664 "include/mlir/Dialect/Math/IR/Math.h",
6665 "include/mlir/Transforms/InliningUtils.h",
6667 includes = ["include"],
6672 ":SideEffectInterfaces",
6674 ":VectorInterfaces",
6680 name = "MathTransforms",
6682 "lib/Dialect/Math/Transforms/*.cpp",
6683 "lib/Dialect/Math/Transforms/*.h",
6685 hdrs = glob(["include/mlir/Dialect/Math/Transforms/*.h"]),
6686 includes = ["include"],
6701 name = "MathToLibm",
6703 "lib/Conversion/MathToLibm/*.cpp",
6704 "lib/Conversion/MathToLibm/*.h",
6705 ]) + ["lib/Conversion/PassDetail.h"],
6707 "include/mlir/Conversion/MathToLibm/*.h",
6709 includes = ["include"],
6711 ":ConversionPassIncGen",
6726 name = "MemRefOpsTdFiles",
6728 "include/mlir/Dialect/MemRef/IR/MemRefBase.td",
6729 "include/mlir/Dialect/MemRef/IR/MemRefOps.td",
6731 includes = ["include"],
6733 ":CastInterfacesTdFiles",
6734 ":ControlFlowInterfacesTdFiles",
6735 ":CopyOpInterfaceTdFiles",
6737 ":SideEffectInterfacesTdFiles",
6738 ":ViewLikeInterfaceTdFiles",
6743 name = "MemRefBaseIncGen",
6744 strip_include_prefix = "include",
6748 "-gen-dialect-decls",
6751 "include/mlir/Dialect/MemRef/IR/MemRefOpsDialect.h.inc",
6755 "-gen-dialect-defs",
6758 "include/mlir/Dialect/MemRef/IR/MemRefOpsDialect.cpp.inc",
6761 tblgen = ":mlir-tblgen",
6762 td_file = "include/mlir/Dialect/MemRef/IR/MemRefBase.td",
6763 deps = [":MemRefOpsTdFiles"],
6767 name = "MemRefOpsIncGen",
6768 strip_include_prefix = "include",
6772 "include/mlir/Dialect/MemRef/IR/MemRefOps.h.inc",
6776 "include/mlir/Dialect/MemRef/IR/MemRefOps.cpp.inc",
6779 tblgen = ":mlir-tblgen",
6780 td_file = "include/mlir/Dialect/MemRef/IR/MemRefOps.td",
6781 deps = [":MemRefOpsTdFiles"],
6785 name = "MemRefDialect",
6788 "lib/Dialect/MemRef/IR/*.cpp",
6789 "lib/Dialect/MemRef/IR/*.h",
6790 "lib/Dialect/MemRef/Utils/*.cpp",
6794 "include/mlir/Dialect/MemRef/IR/MemRef.h",
6795 "include/mlir/Dialect/MemRef/Utils/MemRefUtils.h",
6797 includes = ["include"],
6799 ":ControlFlowInterfaces",
6803 ":InferTypeOpInterface",
6804 ":MemRefBaseIncGen",
6808 ":ViewLikeInterface",
6814 name = "MemRefPassIncGen",
6815 strip_include_prefix = "include",
6822 "include/mlir/Dialect/MemRef/Transforms/Passes.h.inc",
6825 tblgen = ":mlir-tblgen",
6826 td_file = "include/mlir/Dialect/MemRef/Transforms/Passes.td",
6827 deps = [":PassBaseTdFiles"],
6831 name = "MemRefTransforms",
6834 "lib/Dialect/MemRef/Transforms/*.cpp",
6835 "lib/Dialect/MemRef/Transforms/*.h",
6838 hdrs = glob(["include/mlir/Dialect/MemRef/Transforms/*.h"]),
6839 includes = ["include"],
6843 ":InferTypeOpInterface",
6845 ":MemRefPassIncGen",
6857 name = "DLTIDialectTdFiles",
6859 "include/mlir/Dialect/DLTI/DLTI.td",
6860 "include/mlir/Dialect/DLTI/DLTIBase.td",
6862 includes = ["include"],
6863 deps = [":OpBaseTdFiles"],
6867 name = "DLTIBaseIncGen",
6868 strip_include_prefix = "include",
6872 "-gen-dialect-decls",
6875 "include/mlir/Dialect/DLTI/DLTIDialect.h.inc",
6879 "-gen-dialect-defs",
6882 "include/mlir/Dialect/DLTI/DLTIDialect.cpp.inc",
6885 tblgen = ":mlir-tblgen",
6886 td_file = "include/mlir/Dialect/DLTI/DLTIBase.td",
6887 deps = [":OpBaseTdFiles"],
6891 name = "DLTIDialect",
6892 srcs = glob(["lib/Dialect/DLTI/*.cpp"]),
6893 hdrs = glob(["include/mlir/Dialect/DLTI/*.h"]),
6894 includes = ["include"],
6897 ":DataLayoutInterfaces",
6904 name = "ReducerIncGen",
6905 strip_include_prefix = "include",
6912 "include/mlir/Reducer/Passes.h.inc",
6915 tblgen = ":mlir-tblgen",
6916 td_file = "include/mlir/Reducer/Passes.td",
6925 srcs = glob(["lib/Reducer/*.cpp"]),
6926 hdrs = glob(["include/mlir/Reducer/*.h"]),
6927 includes = ["include"],
6940 name = "MlirReduceLib",
6941 srcs = ["lib/Tools/mlir-reduce/MlirReduceMain.cpp"],
6942 hdrs = ["include/mlir/Tools/mlir-reduce/MlirReduceMain.h"],
6943 includes = ["include"],
6956 name = "mlir-reduce",
6957 srcs = ["tools/mlir-reduce/mlir-reduce.cpp"],
6958 includes = ["include"],
6959 local_defines = ["MLIR_INCLUDE_TESTS"],
6962 ":AllPassesAndDialects",
6967 "//mlir/test:TestDialect",