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:ConvertToSPIRV",
550 "//mlir:FuncDialect",
552 "//mlir:GPUTransforms",
554 "//mlir:MemRefTransforms",
556 "//mlir:SPIRVDialect",
557 "//mlir:SPIRVToLLVM",
558 "//mlir:SPIRVTransforms",
564 name = "TestRewrite",
566 "lib/Rewrite/TestPDLByteCode.cpp",
570 "//mlir:PDLInterpDialect",
573 "//mlir:TransformUtils",
579 name = "TestReducer",
581 "lib/Reducer/MLIRTestReducer.cpp",
591 name = "TestTransforms",
592 srcs = glob(["lib/Transforms/*.cpp"]),
593 includes = ["lib/Dialect/Test"],
596 ":TestDialectConversionPDLLPatternsIncGen",
598 "//mlir:AffineAnalysis",
599 "//mlir:AffineDialect",
601 "//mlir:ArithDialect",
602 "//mlir:FuncDialect",
604 "//mlir:InliningUtils",
605 "//mlir:MathDialect",
607 "//mlir:PDLInterpDialect",
611 "//mlir:SPIRVDialect",
612 "//mlir:SideEffectInterfaces",
614 "//mlir:TransformUtils",
620 name = "TestFuncToLLVM",
621 srcs = glob(["lib/Conversion/FuncToLLVM/*.cpp"]),
622 includes = ["lib/Dialect/Test"],
625 "//mlir:FuncDialect",
628 "//mlir:LLVMCommonConversion",
629 "//mlir:LLVMDialect",
635 name = "TestOneToNTypeConversion",
636 srcs = glob(["lib/Conversion/OneToNTypeConversion/*.cpp"]),
637 includes = ["lib/Dialect/Test"],
640 "//mlir:FuncDialect",
641 "//mlir:FuncTransforms",
645 "//mlir:SCFTransforms",
646 "//mlir:TransformUtils",
652 name = "TestVectorToSPIRV",
653 srcs = glob(["lib/Conversion/VectorToSPIRV/*.cpp"]),
655 "//mlir:ArithDialect",
656 "//mlir:FuncDialect",
658 "//mlir:SPIRVDialect",
659 "//mlir:TransformUtils",
661 "//mlir:VectorDialect",
662 "//mlir:VectorToSPIRV",
667 name = "TestConvertToSPIRV",
668 srcs = glob(["lib/Conversion/ConvertToSPIRV/*.cpp"]),
670 "//mlir:ArithDialect",
671 "//mlir:FuncDialect",
673 "//mlir:SPIRVConversion",
674 "//mlir:SPIRVDialect",
675 "//mlir:TransformUtils",
677 "//mlir:VectorDialect",
678 "//mlir:VectorTransforms",
685 "lib/Dialect/Affine/*.cpp",
690 "//mlir:AffineAnalysis",
691 "//mlir:AffineDialect",
692 "//mlir:AffineTransforms",
693 "//mlir:AffineUtils",
695 "//mlir:ArithTransforms",
696 "//mlir:DialectUtils",
697 "//mlir:FuncDialect",
699 "//mlir:MemRefDialect",
703 "//mlir:TensorDialect",
704 "//mlir:TransformUtils",
706 "//mlir:ValueBoundsOpInterface",
707 "//mlir:VectorDialect",
708 "//mlir:VectorUtils",
714 srcs = glob(["lib/Dialect/DLTI/*.cpp"]),
715 includes = ["lib/Dialect/Test"],
719 "//mlir:DLTIDialect",
727 srcs = glob(["lib/Dialect/GPU/*.cpp"]),
728 includes = ["lib/Dialect/Test"],
730 "//llvm:NVPTXCodeGen",
732 "//mlir:AffineDialect",
733 "//mlir:AffineToStandard",
734 "//mlir:ArithDialect",
735 "//mlir:ArithToLLVM",
736 "//mlir:FuncDialect",
739 "//mlir:GPUToGPURuntimeTransforms",
740 "//mlir:GPUToNVVMTransforms",
741 "//mlir:GPUTransforms",
743 "//mlir:IndexDialect",
744 "//mlir:IndexToLLVM",
745 "//mlir:LLVMDialect",
746 "//mlir:LinalgTransforms",
748 "//mlir:MemRefDialect",
749 "//mlir:MemRefToLLVM",
750 "//mlir:MemRefTransforms",
751 "//mlir:NVGPUToNVVM",
753 "//mlir:NVVMToLLVMIRTranslation",
755 "//mlir:ROCDLToLLVMIRTranslation",
756 "//mlir:ReconcileUnrealizedCasts",
758 "//mlir:SCFToControlFlow",
759 "//mlir:SPIRVDialect",
760 "//mlir:ToLLVMIRTranslation",
761 "//mlir:TransformUtils",
763 "//mlir:VectorDialect",
764 "//mlir:VectorToLLVM",
765 "//mlir:VectorToSCF",
771 srcs = glob(["lib/Dialect/Linalg/*.cpp"]),
772 includes = ["lib/Dialect/Test"],
775 "//mlir:AffineDialect",
776 "//mlir:ArithDialect",
777 "//mlir:ArithTransforms",
778 "//mlir:BufferizationDialect",
779 "//mlir:BufferizationTransforms",
780 "//mlir:FuncDialect",
781 "//mlir:FuncTransforms",
784 "//mlir:LinalgDialect",
785 "//mlir:LinalgTransforms",
786 "//mlir:LinalgUtils",
787 "//mlir:MemRefDialect",
791 "//mlir:SCFTransforms",
792 "//mlir:TensorDialect",
793 "//mlir:TensorTransforms",
794 "//mlir:TransformUtils",
796 "//mlir:VectorDialect",
797 "//mlir:VectorToSCF",
798 "//mlir:VectorTransforms",
804 srcs = glob(["lib/Dialect/LLVM/*.cpp"]),
805 includes = ["lib/Dialect/Test"],
807 "//mlir:AffineToStandard",
808 "//mlir:FuncDialect",
811 "//mlir:IndexToLLVM",
812 "//mlir:LLVMCommonConversion",
813 "//mlir:LLVMDialect",
814 "//mlir:LinalgTransforms",
816 "//mlir:MemRefToLLVM",
817 "//mlir:MemRefTransforms",
819 "//mlir:ReconcileUnrealizedCasts",
820 "//mlir:SCFToControlFlow",
821 "//mlir:TransformUtils",
823 "//mlir:VectorToLLVM",
824 "//mlir:VectorToSCF",
830 srcs = glob(["lib/Dialect/Math/*.cpp"]),
831 includes = ["lib/Dialect/Test"],
833 "//mlir:ArithDialect",
834 "//mlir:MathDialect",
835 "//mlir:MathTransforms",
838 "//mlir:TransformUtils",
840 "//mlir:VectorDialect",
841 "//mlir:X86VectorDialect",
846 name = "TestMathToVCIX",
847 srcs = glob(["lib/Conversion/MathToVCIX/*.cpp"]),
848 includes = ["lib/Dialect/Test"],
850 "//mlir:ArithDialect",
851 "//mlir:FuncDialect",
853 "//mlir:MathDialect",
855 "//mlir:TransformUtils",
857 "//mlir:VCIXDialect",
858 "//mlir:VectorDialect",
864 srcs = glob(["lib/Dialect/MemRef/*.cpp"]),
865 includes = ["lib/Dialect/Test"],
868 "//mlir:AffineDialect",
869 "//mlir:ArithDialect",
870 "//mlir:ArithTransforms",
871 "//mlir:FuncDialect",
872 "//mlir:MemRefDialect",
873 "//mlir:MemRefTransforms",
875 "//mlir:TransformUtils",
877 "//mlir:VectorDialect",
878 "//mlir:VectorTransforms",
884 srcs = glob(["lib/Dialect/Mesh/**/*.cpp"]),
885 includes = ["lib/Dialect/Test"],
888 "//mlir:ArithDialect",
889 "//mlir:DialectUtils",
890 "//mlir:FuncDialect",
892 "//mlir:MeshDialect",
893 "//mlir:MeshTransforms",
895 "//mlir:SPIRVDialect",
897 "//mlir:TransformUtils",
904 srcs = glob(["lib/Dialect/NVGPU/*.cpp"]),
905 includes = ["lib/Dialect/Test"],
907 "//mlir:AffineDialect",
909 "//mlir:FuncDialect",
912 "//mlir:LLVMDialect",
913 "//mlir:LinalgDialect",
914 "//mlir:LinalgTransforms",
915 "//mlir:MemRefDialect",
916 "//mlir:NVGPUDialect",
917 "//mlir:NVGPUTransforms",
921 "//mlir:TransformUtils",
928 srcs = glob(["lib/Dialect/SCF/*.cpp"]),
929 includes = ["lib/Dialect/Test"],
932 "//mlir:ArithDialect",
933 "//mlir:FuncDialect",
935 "//mlir:MathDialect",
936 "//mlir:MemRefDialect",
939 "//mlir:SCFTransforms",
941 "//mlir:TransformUtils",
948 srcs = glob(["lib/Dialect/Arith/*.cpp"]),
949 includes = ["lib/Dialect/Test"],
951 "//mlir:ArithDialect",
952 "//mlir:ArithTransforms",
953 "//mlir:FuncDialect",
954 "//mlir:LLVMDialect",
955 "//mlir:MathDialect",
957 "//mlir:TransformUtils",
959 "//mlir:VectorDialect",
964 name = "TestArmNeon",
965 srcs = glob(["lib/Dialect/ArmNeon/*.cpp"]),
966 includes = ["lib/Dialect/Test"],
968 "//mlir:ArmNeonDialect",
969 "//mlir:ArmNeonTransforms",
970 "//mlir:FuncDialect",
974 "//mlir:TransformUtils",
981 srcs = glob(["lib/Dialect/ArmSME/*.cpp"]),
982 includes = ["lib/Dialect/Test"],
984 "//mlir:ArithToArmSME",
985 "//mlir:ArmSMEToLLVM",
986 "//mlir:ArmSMEToSCF",
987 "//mlir:ArmSMETransforms",
988 "//mlir:ArmSVETransforms",
989 "//mlir:FuncDialect",
992 "//mlir:SCFToControlFlow",
994 "//mlir:VectorToArmSME",
995 "//mlir:VectorToSCF",
1000 name = "TestBufferization",
1001 srcs = glob(["lib/Dialect/Bufferization/*.cpp"]),
1002 includes = ["lib/Dialect/Test"],
1004 "//mlir:BufferizationDialect",
1005 "//mlir:BufferizationTransforms",
1012 name = "TestControlFlow",
1013 srcs = glob(["lib/Dialect/ControlFlow/*.cpp"]),
1014 includes = ["lib/Dialect/Test"],
1016 "//mlir:ControlFlowDialect",
1017 "//mlir:ControlFlowToLLVM",
1018 "//mlir:FuncDialect",
1019 "//mlir:LLVMCommonConversion",
1020 "//mlir:LLVMDialect",
1022 "//mlir:TransformUtils",
1023 "//mlir:Transforms",
1028 name = "TestShapeDialect",
1030 "lib/Dialect/Shape/TestShapeFunctions.cpp",
1031 "lib/Dialect/Shape/TestShapeMappingAnalysis.cpp",
1035 "//mlir:FuncDialect",
1037 "//mlir:InferTypeOpInterface",
1039 "//mlir:ShapeDialect",
1040 "//mlir:ShapeTransforms",
1047 "lib/Dialect/SPIRV/*.cpp",
1050 "//mlir:FuncDialect",
1051 "//mlir:GPUDialect",
1054 "//mlir:SPIRVConversion",
1055 "//mlir:SPIRVDialect",
1056 "//mlir:SPIRVModuleCombiner",
1057 "//mlir:Transforms",
1063 srcs = glob(["lib/Dialect/Func/*.cpp"]),
1064 includes = ["lib/Dialect/Test"],
1067 "//mlir:AffineDialect",
1068 "//mlir:FuncDialect",
1069 "//mlir:FuncTransforms",
1072 "//mlir:TransformUtils",
1073 "//mlir:Transforms",
1078 name = "TestTensor",
1079 srcs = glob(["lib/Dialect/Tensor/*.cpp"]),
1080 includes = ["lib/Dialect/Test"],
1082 "//mlir:ArithDialect",
1083 "//mlir:LinalgDialect",
1085 "//mlir:SCFDialect",
1086 "//mlir:TensorDialect",
1087 "//mlir:TensorTransforms",
1088 "//mlir:TransformDialect",
1089 "//mlir:TransformDialectInterfaces",
1090 "//mlir:TransformUtils",
1091 "//mlir:Transforms",
1096 name = "TestVector",
1097 srcs = glob(["lib/Dialect/Vector/*.cpp"]),
1098 includes = ["lib/Dialect/Test"],
1100 "//mlir:AffineDialect",
1102 "//mlir:ArithDialect",
1103 "//mlir:FuncDialect",
1104 "//mlir:GPUDialect",
1105 "//mlir:LLVMDialect",
1106 "//mlir:LinalgDialect",
1107 "//mlir:LinalgTransforms",
1108 "//mlir:MemRefDialect",
1109 "//mlir:NVGPUDialect",
1111 "//mlir:SCFDialect",
1113 "//mlir:TensorDialect",
1114 "//mlir:TransformUtils",
1115 "//mlir:Transforms",
1116 "//mlir:VectorDialect",
1117 "//mlir:VectorToSCF",
1118 "//mlir:VectorTransforms",
1119 "//mlir:X86VectorDialect",
1124 name = "TestTosaDialect",
1126 "lib/Dialect/Tosa/*.cpp",
1129 "//mlir:FuncDialect",
1132 "//mlir:TensorDialect",
1133 "//mlir:TosaDialect",
1134 "//mlir:TransformUtils",
1135 "//mlir:Transforms",
1140 name = "TestPDLLPatternsIncGen",
1141 includes = ["lib/Dialect/Test"],
1142 strip_include_prefix = "lib",
1146 "lib/Tools/PDLL/TestPDLLPatterns.h.inc",
1149 tblgen = "//mlir:mlir-pdll",
1150 td_file = "lib/Tools/PDLL/TestPDLL.pdll",
1158 name = "TestDialectConversionPDLLPatternsIncGen",
1159 includes = ["lib/Dialect/Test"],
1160 strip_include_prefix = "lib",
1164 "lib/TestDialectConversionPDLLPatterns.h.inc",
1167 tblgen = "//mlir:mlir-pdll",
1168 td_file = "lib/Transforms/TestDialectConversion.pdll",
1172 "//mlir:DialectConversionPdllFiles",
1178 srcs = ["lib/Tools/PDLL/TestPDLL.cpp"],
1179 includes = ["lib/Tools/PDLL"],
1182 ":TestPDLLPatternsIncGen",
1183 "//mlir:CastInterfaces",
1185 "//mlir:PDLDialect",
1186 "//mlir:PDLInterpDialect",
1190 "//mlir:TransformUtils",
1191 "//mlir:Transforms",