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
5 load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
6 load("//llvm:lit_test.bzl", "package_path")
7 load("//mlir:tblgen.bzl", "gentbl_cc_library", "gentbl_sharded_ops", "td_library")
10 default_visibility = ["//visibility:public"],
11 features = ["layering_check"],
16 LLVM_LIT_PATH_FUNCTION = " " + \
17 "# Allow generated file to be relocatable.\n" + \
18 "from pathlib import Path\n" + \
20 " if not p: return ''\n" + \
21 " return str((Path(__file__).parent / p).resolve())\n"
23 LIT_SITE_CFG_IN_HEADER = "# Autogenerated, do not edit." + LLVM_LIT_PATH_FUNCTION
26 name = "lit_site_cfg_py",
28 out = "lit.site.cfg.py",
30 "@LIT_SITE_CFG_IN_HEADER@": LIT_SITE_CFG_IN_HEADER,
31 "@LLVM_TOOLS_DIR@": package_path("//llvm:BUILD"),
32 "@ENABLE_SHARED@": "1",
33 "@ENABLE_ASSERTIONS@": "1",
34 "@MLIR_SOURCE_DIR@": package_path("//mlir:BUILD"),
35 "@MLIR_TOOLS_DIR@": package_path("//mlir:BUILD"),
36 "\"@MLIR_BINARY_DIR@\"": "os.environ[\"TEST_UNDECLARED_OUTPUTS_DIR\"]",
37 # All disabled, but required to substituted because they are not in quotes.
38 "@LLVM_BUILD_EXAMPLES@": "0",
39 "@LLVM_HAS_NVPTX_TARGET@": "0",
40 "@MLIR_ENABLE_CUDA_RUNNER@": "0",
41 "@MLIR_ENABLE_ROCM_CONVERSIONS@": "0",
42 "@MLIR_ENABLE_ROCM_RUNNER@": "0",
43 "@MLIR_ENABLE_SYCL_RUNNER@": "0",
44 "@MLIR_ENABLE_SPIRV_CPU_RUNNER@": "0",
45 "@MLIR_ENABLE_VULKAN_RUNNER@": "0",
46 "@MLIR_ENABLE_BINDINGS_PYTHON@": "0",
47 "@MLIR_RUN_AMX_TESTS@": "0",
48 "@MLIR_RUN_ARM_SVE_TESTS@": "0",
49 "@MLIR_RUN_ARM_SME_TESTS@": "0",
50 "@MLIR_RUN_X86VECTOR_TESTS@": "0",
51 "@MLIR_RUN_CUDA_TENSOR_CORE_TESTS@": "0",
52 "@MLIR_RUN_CUDA_SM80_TESTS@": "0",
53 "@MLIR_RUN_CUDA_SM80_LT_TESTS@": "0",
54 "@MLIR_RUN_CUDA_SM90_TESTS@": "0",
55 "@MLIR_INCLUDE_INTEGRATION_TESTS@": "0",
56 "@SHLIBDIR@": package_path("//llvm:BUILD"),
58 template = "lit.site.cfg.py.in",
61 # Common data used by most lit tests.
75 name = "IRProducingAPITest",
81 name = "TestAnalysis",
86 "lib/Analysis/DataFlow/*.cpp",
87 "lib/Analysis/DataFlow/*.h",
90 includes = ["lib/Dialect/Test"],
94 "//mlir:AffineAnalysis",
95 "//mlir:AffineDialect",
97 "//mlir:CallOpInterfaces",
98 "//mlir:ControlFlowInterfaces",
100 "//mlir:FunctionInterfaces",
102 "//mlir:MemRefDialect",
104 "//mlir:SideEffectInterfaces",
110 name = "TestOpTdFiles",
111 srcs = glob(["lib/Dialect/Test/*.td"]),
113 "//mlir:BuiltinDialectTdFiles",
114 "//mlir:CallInterfacesTdFiles",
115 "//mlir:ControlFlowInterfacesTdFiles",
116 "//mlir:CopyOpInterfaceTdFiles",
117 "//mlir:DLTIDialectTdFiles",
118 "//mlir:DataLayoutInterfacesTdFiles",
119 "//mlir:DestinationStyleOpInterfaceTdFiles",
120 "//mlir:FunctionInterfacesTdFiles",
121 "//mlir:InferIntRangeInterfaceTdFiles",
122 "//mlir:InferTypeOpInterfaceTdFiles",
123 "//mlir:LinalgStructuredOpsTdFiles",
124 "//mlir:MemorySlotInterfacesTdFiles",
125 "//mlir:OpBaseTdFiles",
126 "//mlir:PolynomialTdFiles",
127 "//mlir:SideEffectInterfacesTdFiles",
132 name = "TestOpsSyntaxIncGen",
133 strip_include_prefix = "lib/Dialect/Test",
137 "lib/Dialect/Test/TestOpsSyntax.h.inc",
141 "lib/Dialect/Test/TestOpsSyntax.cpp.inc",
144 tblgen = "//mlir:mlir-tblgen",
145 td_file = "lib/Dialect/Test/TestOpsSyntax.td",
153 name = "TestOpsIncGen",
154 strip_include_prefix = "lib/Dialect/Test",
158 "-gen-dialect-decls",
161 "lib/Dialect/Test/TestOpsDialect.h.inc",
168 "lib/Dialect/Test/TestOpsDialect.cpp.inc",
172 "lib/Dialect/Test/TestPatterns.inc",
175 tblgen = "//mlir:mlir-tblgen",
176 td_file = "lib/Dialect/Test/TestOps.td",
184 name = "TestInterfacesIncGen",
185 strip_include_prefix = "lib/Dialect/Test",
188 ["-gen-attr-interface-decls"],
189 "lib/Dialect/Test/TestAttrInterfaces.h.inc",
192 ["-gen-attr-interface-defs"],
193 "lib/Dialect/Test/TestAttrInterfaces.cpp.inc",
196 ["-gen-type-interface-decls"],
197 "lib/Dialect/Test/TestTypeInterfaces.h.inc",
200 ["-gen-type-interface-defs"],
201 "lib/Dialect/Test/TestTypeInterfaces.cpp.inc",
204 ["-gen-op-interface-decls"],
205 "lib/Dialect/Test/TestOpInterfaces.h.inc",
208 ["-gen-op-interface-defs"],
209 "lib/Dialect/Test/TestOpInterfaces.cpp.inc",
212 tblgen = "//mlir:mlir-tblgen",
213 td_file = "lib/Dialect/Test/TestInterfaces.td",
216 "//mlir:OpBaseTdFiles",
217 "//mlir:SideEffectInterfacesTdFiles",
222 name = "TestAttrDefsIncGen",
223 strip_include_prefix = "lib/Dialect/Test",
227 "-gen-attrdef-decls",
228 "--attrdefs-dialect=test",
230 "lib/Dialect/Test/TestAttrDefs.h.inc",
235 "--attrdefs-dialect=test",
237 "lib/Dialect/Test/TestAttrDefs.cpp.inc",
240 tblgen = "//mlir:mlir-tblgen",
241 td_file = "lib/Dialect/Test/TestOps.td",
249 name = "TestEnumDefsIncGen",
250 strip_include_prefix = "lib/Dialect/Test",
254 "lib/Dialect/Test/TestOpEnums.h.inc",
258 "lib/Dialect/Test/TestOpEnums.cpp.inc",
261 tblgen = "//mlir:mlir-tblgen",
262 td_file = "lib/Dialect/Test/TestEnumDefs.td",
270 name = "TestTypeDefsIncGen",
271 strip_include_prefix = "lib/Dialect/Test",
275 "-gen-typedef-decls",
276 "--typedefs-dialect=test",
278 "lib/Dialect/Test/TestTypeDefs.h.inc",
283 "--typedefs-dialect=test",
285 "lib/Dialect/Test/TestTypeDefs.cpp.inc",
288 tblgen = "//mlir:mlir-tblgen",
289 td_file = "lib/Dialect/Test/TestTypeDefs.td",
293 "//mlir:BuiltinDialectTdFiles",
298 name = "TestTestDynDialect",
300 "lib/Dialect/TestDyn/*.cpp",
308 name = "TransformDialectTdFiles",
309 srcs = glob(["lib/Dialect/Transform/*.td"]),
311 "//mlir:OpBaseTdFiles",
316 name = "TestTransformDialectExtensionIncGen",
317 strip_include_prefix = "lib/Dialect/Transform",
321 "lib/Dialect/Transform/TestTransformDialectExtension.h.inc",
325 "lib/Dialect/Transform/TestTransformDialectExtension.cpp.inc",
329 "-gen-typedef-decls",
330 "-typedefs-dialect=transform",
332 "lib/Dialect/Transform/TestTransformDialectExtensionTypes.h.inc",
337 "-typedefs-dialect=transform",
339 "lib/Dialect/Transform/TestTransformDialectExtensionTypes.cpp.inc",
342 tblgen = "//mlir:mlir-tblgen",
343 td_file = "lib/Dialect/Transform/TestTransformDialectExtension.td",
346 ":TransformDialectTdFiles",
347 "//mlir:PDLDialectTdFiles",
348 "//mlir:TransformDialectTdFiles",
349 "//mlir:TransformPDLExtension",
354 name = "TestTransformDialect",
355 srcs = glob(["lib/Dialect/Transform/*.cpp"]),
356 hdrs = glob(["lib/Dialect/Transform/*.h"]),
357 includes = ["lib/Dialect/Transform"],
359 ":TestTransformDialectExtensionIncGen",
361 "//mlir:BytecodeOpInterface",
365 "//mlir:TransformDebugExtension",
366 "//mlir:TransformDialect",
367 "//mlir:TransformDialectInterfaces",
368 "//mlir:TransformDialectTransforms",
369 "//mlir:TransformPDLExtension",
374 name = "TestDialectOpSrcs",
375 hdr_out = "lib/Dialect/Test/TestOps.h.inc",
377 sharder = "//mlir:mlir-src-sharder",
378 src_file = "lib/Dialect/Test/TestOps.cpp",
379 src_out = "lib/Dialect/Test/TestOps.cpp.inc",
380 tblgen = "//mlir:mlir-tblgen",
381 td_file = "lib/Dialect/Test/TestOps.td",
383 deps = [":TestOpTdFiles"],
387 name = "TestDialect",
389 ["lib/Dialect/Test/*.cpp"],
390 exclude = ["lib/Dialect/Test/TestToLLVMIRTranslation.cpp"],
391 ) + [":TestDialectOpSrcs"],
392 hdrs = glob(["lib/Dialect/Test/*.h"]),
397 ":TestAttrDefsIncGen",
398 ":TestEnumDefsIncGen",
399 ":TestInterfacesIncGen",
401 ":TestOpsSyntaxIncGen",
402 ":TestTypeDefsIncGen",
406 "//mlir:ArithDialect",
407 "//mlir:BytecodeOpInterface",
408 "//mlir:CallOpInterfaces",
409 "//mlir:ControlFlowInterfaces",
410 "//mlir:CopyOpInterface",
411 "//mlir:DLTIDialect",
412 "//mlir:DataLayoutInterfaces",
413 "//mlir:DerivedAttributeOpInterface",
414 "//mlir:DestinationStyleOpInterface",
416 "//mlir:DialectUtils",
417 "//mlir:FromLLVMIRTranslation",
418 "//mlir:FuncDialect",
419 "//mlir:FuncTransforms",
420 "//mlir:FunctionInterfaces",
422 "//mlir:InferIntRangeInterface",
423 "//mlir:InferTypeOpInterface",
424 "//mlir:InliningUtils",
425 "//mlir:LLVMDialect",
426 "//mlir:LLVMIRToLLVMTranslation",
427 "//mlir:LinalgDialect",
428 "//mlir:LoopLikeInterface",
429 "//mlir:MemorySlotInterfaces",
431 "//mlir:PolynomialDialect",
433 "//mlir:SideEffectInterfaces",
435 "//mlir:TensorDialect",
436 "//mlir:TransformUtils",
438 "//mlir:TranslateLib",
439 "//mlir:ValueBoundsOpInterface",
440 "//mlir:ViewLikeInterface",
445 name = "TestToLLVMIRTranslation",
446 srcs = ["lib/Dialect/Test/TestToLLVMIRTranslation.cpp"],
451 "//mlir:BuiltinToLLVMIRTranslation",
453 "//mlir:LLVMToLLVMIRTranslation",
454 "//mlir:ToLLVMIRTranslation",
455 "//mlir:TranslateLib",
461 srcs = glob(["lib/IR/*.cpp"]),
466 "//mlir:ArithDialect",
467 "//mlir:BytecodeOpInterface",
468 "//mlir:BytecodeReader",
469 "//mlir:BytecodeWriter",
470 "//mlir:FuncDialect",
471 "//mlir:FunctionInterfaces",
473 "//mlir:LinalgDialect",
481 name = "TestLoopLikeInterface",
482 srcs = glob(["lib/Interfaces/LoopLikeInterface/*.cpp"]),
485 "//mlir:FuncDialect",
487 "//mlir:LoopLikeInterface",
493 name = "TestTilingInterfaceTransformOpsIncGen",
494 includes = ["lib/Interfaces/TilingInterface"],
495 strip_include_prefix = "lib",
499 "lib/Interfaces/TilingInterface/TestTilingInterfaceTransformOps.h.inc",
503 "lib/Interfaces/TilingInterface/TestTilingInterfaceTransformOps.cpp.inc",
506 tblgen = "//mlir:mlir-tblgen",
507 td_file = "lib/Interfaces/TilingInterface/TestTilingInterfaceTransformOps.td",
510 "//mlir:TransformDialectTdFiles",
515 name = "TestTilingInterface",
516 srcs = glob(["lib/Interfaces/TilingInterface/*.cpp"]),
517 includes = ["lib/Interfaces/TilingInterface"],
519 ":TestTilingInterfaceTransformOpsIncGen",
521 "//mlir:AffineDialect",
522 "//mlir:ArithDialect",
523 "//mlir:DialectUtils",
524 "//mlir:FuncDialect",
527 "//mlir:IndexDialect",
528 "//mlir:LinalgDialect",
529 "//mlir:LinalgTransforms",
530 "//mlir:MemRefDialect",
533 "//mlir:SCFTransforms",
534 "//mlir:TensorDialect",
535 "//mlir:TensorTilingInterfaceImpl",
536 "//mlir:TilingInterface",
537 "//mlir:TransformDialect",
538 "//mlir:TransformDialectInterfaces",
545 srcs = glob(["lib/Pass/*.cpp"]),
549 "//mlir:FuncDialect",
551 "//mlir:GPUTransforms",
554 "//mlir:SPIRVDialect",
555 "//mlir:SPIRVToLLVM",
556 "//mlir:SPIRVTransforms",
562 name = "TestRewrite",
564 "lib/Rewrite/TestPDLByteCode.cpp",
568 "//mlir:PDLInterpDialect",
571 "//mlir:TransformUtils",
577 name = "TestReducer",
579 "lib/Reducer/MLIRTestReducer.cpp",
589 name = "TestTransforms",
590 srcs = glob(["lib/Transforms/*.cpp"]),
591 includes = ["lib/Dialect/Test"],
594 ":TestDialectConversionPDLLPatternsIncGen",
596 "//mlir:AffineAnalysis",
597 "//mlir:AffineDialect",
599 "//mlir:ArithDialect",
600 "//mlir:FuncDialect",
602 "//mlir:InliningUtils",
603 "//mlir:MathDialect",
605 "//mlir:PDLInterpDialect",
609 "//mlir:SPIRVDialect",
610 "//mlir:SideEffectInterfaces",
612 "//mlir:TransformUtils",
618 name = "TestFuncToLLVM",
619 srcs = glob(["lib/Conversion/FuncToLLVM/*.cpp"]),
620 includes = ["lib/Dialect/Test"],
623 "//mlir:FuncDialect",
626 "//mlir:LLVMCommonConversion",
627 "//mlir:LLVMDialect",
633 name = "TestOneToNTypeConversion",
634 srcs = glob(["lib/Conversion/OneToNTypeConversion/*.cpp"]),
635 includes = ["lib/Dialect/Test"],
638 "//mlir:FuncDialect",
639 "//mlir:FuncTransforms",
643 "//mlir:SCFTransforms",
644 "//mlir:TransformUtils",
650 name = "TestVectorToSPIRV",
651 srcs = glob(["lib/Conversion/VectorToSPIRV/*.cpp"]),
653 "//mlir:ArithDialect",
654 "//mlir:FuncDialect",
656 "//mlir:SPIRVDialect",
657 "//mlir:TransformUtils",
659 "//mlir:VectorDialect",
660 "//mlir:VectorToSPIRV",
665 name = "TestConvertToSPIRV",
666 srcs = glob(["lib/Conversion/ConvertToSPIRV/*.cpp"]),
668 "//mlir:ArithDialect",
669 "//mlir:FuncDialect",
671 "//mlir:SPIRVConversion",
672 "//mlir:SPIRVDialect",
673 "//mlir:TransformUtils",
675 "//mlir:VectorDialect",
676 "//mlir:VectorTransforms",
683 "lib/Dialect/Affine/*.cpp",
688 "//mlir:AffineAnalysis",
689 "//mlir:AffineDialect",
690 "//mlir:AffineTransforms",
691 "//mlir:AffineUtils",
693 "//mlir:ArithTransforms",
694 "//mlir:DialectUtils",
695 "//mlir:FuncDialect",
697 "//mlir:MemRefDialect",
701 "//mlir:TensorDialect",
702 "//mlir:TransformUtils",
704 "//mlir:ValueBoundsOpInterface",
705 "//mlir:VectorDialect",
706 "//mlir:VectorUtils",
712 srcs = glob(["lib/Dialect/DLTI/*.cpp"]),
713 includes = ["lib/Dialect/Test"],
717 "//mlir:DLTIDialect",
725 srcs = glob(["lib/Dialect/GPU/*.cpp"]),
726 includes = ["lib/Dialect/Test"],
728 "//llvm:NVPTXCodeGen",
730 "//mlir:AffineDialect",
731 "//mlir:AffineToStandard",
732 "//mlir:ArithDialect",
733 "//mlir:ArithToLLVM",
734 "//mlir:FuncDialect",
737 "//mlir:GPUToGPURuntimeTransforms",
738 "//mlir:GPUToNVVMTransforms",
739 "//mlir:GPUTransforms",
741 "//mlir:IndexDialect",
742 "//mlir:IndexToLLVM",
743 "//mlir:LLVMDialect",
744 "//mlir:LinalgTransforms",
746 "//mlir:MemRefDialect",
747 "//mlir:MemRefToLLVM",
748 "//mlir:MemRefTransforms",
749 "//mlir:NVGPUToNVVM",
751 "//mlir:NVVMToLLVMIRTranslation",
753 "//mlir:ROCDLToLLVMIRTranslation",
754 "//mlir:ReconcileUnrealizedCasts",
756 "//mlir:SCFToControlFlow",
757 "//mlir:SPIRVDialect",
758 "//mlir:ToLLVMIRTranslation",
759 "//mlir:TransformUtils",
761 "//mlir:VectorDialect",
762 "//mlir:VectorToLLVM",
763 "//mlir:VectorToSCF",
769 srcs = glob(["lib/Dialect/Linalg/*.cpp"]),
770 includes = ["lib/Dialect/Test"],
773 "//mlir:AffineDialect",
774 "//mlir:ArithDialect",
775 "//mlir:ArithTransforms",
776 "//mlir:BufferizationDialect",
777 "//mlir:BufferizationTransforms",
778 "//mlir:FuncDialect",
779 "//mlir:FuncTransforms",
782 "//mlir:LinalgDialect",
783 "//mlir:LinalgTransforms",
784 "//mlir:LinalgUtils",
785 "//mlir:MemRefDialect",
789 "//mlir:SCFTransforms",
790 "//mlir:TensorDialect",
791 "//mlir:TensorTransforms",
792 "//mlir:TransformUtils",
794 "//mlir:VectorDialect",
795 "//mlir:VectorToSCF",
796 "//mlir:VectorTransforms",
802 srcs = glob(["lib/Dialect/LLVM/*.cpp"]),
803 includes = ["lib/Dialect/Test"],
805 "//mlir:AffineToStandard",
806 "//mlir:FuncDialect",
809 "//mlir:IndexToLLVM",
810 "//mlir:LLVMDialect",
811 "//mlir:LinalgTransforms",
813 "//mlir:MemRefToLLVM",
814 "//mlir:MemRefTransforms",
816 "//mlir:ReconcileUnrealizedCasts",
817 "//mlir:SCFToControlFlow",
819 "//mlir:VectorToLLVM",
820 "//mlir:VectorToSCF",
826 srcs = glob(["lib/Dialect/Math/*.cpp"]),
827 includes = ["lib/Dialect/Test"],
829 "//mlir:ArithDialect",
830 "//mlir:MathDialect",
831 "//mlir:MathTransforms",
834 "//mlir:TransformUtils",
836 "//mlir:VectorDialect",
837 "//mlir:X86VectorDialect",
842 name = "TestMathToVCIX",
843 srcs = glob(["lib/Conversion/MathToVCIX/*.cpp"]),
844 includes = ["lib/Dialect/Test"],
846 "//mlir:ArithDialect",
847 "//mlir:FuncDialect",
849 "//mlir:MathDialect",
851 "//mlir:TransformUtils",
853 "//mlir:VCIXDialect",
854 "//mlir:VectorDialect",
860 srcs = glob(["lib/Dialect/MemRef/*.cpp"]),
861 includes = ["lib/Dialect/Test"],
864 "//mlir:AffineDialect",
865 "//mlir:ArithDialect",
866 "//mlir:ArithTransforms",
867 "//mlir:FuncDialect",
868 "//mlir:MemRefDialect",
869 "//mlir:MemRefTransforms",
871 "//mlir:TransformUtils",
873 "//mlir:VectorDialect",
874 "//mlir:VectorTransforms",
880 srcs = glob(["lib/Dialect/Mesh/**/*.cpp"]),
881 includes = ["lib/Dialect/Test"],
884 "//mlir:ArithDialect",
885 "//mlir:DialectUtils",
886 "//mlir:FuncDialect",
888 "//mlir:MeshDialect",
889 "//mlir:MeshTransforms",
891 "//mlir:SPIRVDialect",
893 "//mlir:TransformUtils",
900 srcs = glob(["lib/Dialect/NVGPU/*.cpp"]),
901 includes = ["lib/Dialect/Test"],
903 "//mlir:AffineDialect",
905 "//mlir:FuncDialect",
908 "//mlir:LLVMDialect",
909 "//mlir:LinalgDialect",
910 "//mlir:LinalgTransforms",
911 "//mlir:MemRefDialect",
912 "//mlir:NVGPUDialect",
913 "//mlir:NVGPUTransforms",
917 "//mlir:TransformUtils",
924 srcs = glob(["lib/Dialect/SCF/*.cpp"]),
925 includes = ["lib/Dialect/Test"],
928 "//mlir:ArithDialect",
929 "//mlir:FuncDialect",
931 "//mlir:MathDialect",
932 "//mlir:MemRefDialect",
935 "//mlir:SCFTransforms",
937 "//mlir:TransformUtils",
944 srcs = glob(["lib/Dialect/Arith/*.cpp"]),
945 includes = ["lib/Dialect/Test"],
947 "//mlir:ArithDialect",
948 "//mlir:ArithTransforms",
949 "//mlir:FuncDialect",
950 "//mlir:LLVMDialect",
951 "//mlir:MathDialect",
953 "//mlir:TransformUtils",
955 "//mlir:VectorDialect",
960 name = "TestArmNeon",
961 srcs = glob(["lib/Dialect/ArmNeon/*.cpp"]),
962 includes = ["lib/Dialect/Test"],
964 "//mlir:ArmNeonDialect",
965 "//mlir:ArmNeonTransforms",
966 "//mlir:FuncDialect",
970 "//mlir:TransformUtils",
977 srcs = glob(["lib/Dialect/ArmSME/*.cpp"]),
978 includes = ["lib/Dialect/Test"],
980 "//mlir:ArithToArmSME",
981 "//mlir:ArmSMEToLLVM",
982 "//mlir:ArmSMEToSCF",
983 "//mlir:ArmSMETransforms",
984 "//mlir:ArmSVETransforms",
985 "//mlir:FuncDialect",
988 "//mlir:SCFToControlFlow",
990 "//mlir:VectorToArmSME",
991 "//mlir:VectorToSCF",
996 name = "TestBufferization",
997 srcs = glob(["lib/Dialect/Bufferization/*.cpp"]),
998 includes = ["lib/Dialect/Test"],
1000 "//mlir:BufferizationDialect",
1001 "//mlir:BufferizationTransforms",
1008 name = "TestControlFlow",
1009 srcs = glob(["lib/Dialect/ControlFlow/*.cpp"]),
1010 includes = ["lib/Dialect/Test"],
1012 "//mlir:ControlFlowDialect",
1013 "//mlir:ControlFlowToLLVM",
1014 "//mlir:FuncDialect",
1015 "//mlir:LLVMCommonConversion",
1016 "//mlir:LLVMDialect",
1018 "//mlir:TransformUtils",
1019 "//mlir:Transforms",
1024 name = "TestShapeDialect",
1026 "lib/Dialect/Shape/TestShapeFunctions.cpp",
1027 "lib/Dialect/Shape/TestShapeMappingAnalysis.cpp",
1031 "//mlir:FuncDialect",
1033 "//mlir:InferTypeOpInterface",
1035 "//mlir:ShapeDialect",
1036 "//mlir:ShapeTransforms",
1043 "lib/Dialect/SPIRV/*.cpp",
1046 "//mlir:FuncDialect",
1047 "//mlir:GPUDialect",
1050 "//mlir:SPIRVConversion",
1051 "//mlir:SPIRVDialect",
1052 "//mlir:SPIRVModuleCombiner",
1053 "//mlir:Transforms",
1059 srcs = glob(["lib/Dialect/Func/*.cpp"]),
1060 includes = ["lib/Dialect/Test"],
1063 "//mlir:AffineDialect",
1064 "//mlir:FuncDialect",
1065 "//mlir:FuncTransforms",
1068 "//mlir:TransformUtils",
1069 "//mlir:Transforms",
1074 name = "TestTensor",
1075 srcs = glob(["lib/Dialect/Tensor/*.cpp"]),
1076 includes = ["lib/Dialect/Test"],
1078 "//mlir:ArithDialect",
1079 "//mlir:LinalgDialect",
1081 "//mlir:SCFDialect",
1082 "//mlir:TensorDialect",
1083 "//mlir:TensorTransforms",
1084 "//mlir:TransformDialect",
1085 "//mlir:TransformDialectInterfaces",
1086 "//mlir:TransformUtils",
1087 "//mlir:Transforms",
1092 name = "TestVector",
1093 srcs = glob(["lib/Dialect/Vector/*.cpp"]),
1094 includes = ["lib/Dialect/Test"],
1096 "//mlir:AffineDialect",
1098 "//mlir:ArithDialect",
1099 "//mlir:FuncDialect",
1100 "//mlir:GPUDialect",
1101 "//mlir:LLVMDialect",
1102 "//mlir:LinalgDialect",
1103 "//mlir:LinalgTransforms",
1104 "//mlir:MemRefDialect",
1105 "//mlir:NVGPUDialect",
1107 "//mlir:SCFDialect",
1109 "//mlir:TensorDialect",
1110 "//mlir:TransformUtils",
1111 "//mlir:Transforms",
1112 "//mlir:VectorDialect",
1113 "//mlir:VectorToSCF",
1114 "//mlir:VectorTransforms",
1115 "//mlir:X86VectorDialect",
1120 name = "TestTosaDialect",
1122 "lib/Dialect/Tosa/*.cpp",
1125 "//mlir:FuncDialect",
1128 "//mlir:TensorDialect",
1129 "//mlir:TosaDialect",
1130 "//mlir:TransformUtils",
1131 "//mlir:Transforms",
1136 name = "TestPDLLPatternsIncGen",
1137 includes = ["lib/Dialect/Test"],
1138 strip_include_prefix = "lib",
1142 "lib/Tools/PDLL/TestPDLLPatterns.h.inc",
1145 tblgen = "//mlir:mlir-pdll",
1146 td_file = "lib/Tools/PDLL/TestPDLL.pdll",
1154 name = "TestDialectConversionPDLLPatternsIncGen",
1155 includes = ["lib/Dialect/Test"],
1156 strip_include_prefix = "lib",
1160 "lib/TestDialectConversionPDLLPatterns.h.inc",
1163 tblgen = "//mlir:mlir-pdll",
1164 td_file = "lib/Transforms/TestDialectConversion.pdll",
1168 "//mlir:DialectConversionPdllFiles",
1174 srcs = ["lib/Tools/PDLL/TestPDLL.cpp"],
1175 includes = ["lib/Tools/PDLL"],
1178 ":TestPDLLPatternsIncGen",
1179 "//mlir:CastInterfaces",
1181 "//mlir:PDLDialect",
1182 "//mlir:PDLInterpDialect",
1186 "//mlir:TransformUtils",
1187 "//mlir:Transforms",