1 set(LLVM_OPTIONAL_SOURCES
5 TestFromLLVMIRTranslation.cpp
6 TestToLLVMIRTranslation.cpp
9 set(LLVM_TARGET_DEFINITIONS TestInterfaces.td)
10 mlir_tablegen(TestAttrInterfaces.h.inc -gen-attr-interface-decls)
11 mlir_tablegen(TestAttrInterfaces.cpp.inc -gen-attr-interface-defs)
12 mlir_tablegen(TestTypeInterfaces.h.inc -gen-type-interface-decls)
13 mlir_tablegen(TestTypeInterfaces.cpp.inc -gen-type-interface-defs)
14 mlir_tablegen(TestOpInterfaces.h.inc -gen-op-interface-decls)
15 mlir_tablegen(TestOpInterfaces.cpp.inc -gen-op-interface-defs)
16 add_public_tablegen_target(MLIRTestInterfaceIncGen)
18 set(LLVM_TARGET_DEFINITIONS TestOps.td)
19 mlir_tablegen(TestAttrDefs.h.inc -gen-attrdef-decls -attrdefs-dialect=test)
20 mlir_tablegen(TestAttrDefs.cpp.inc -gen-attrdef-defs -attrdefs-dialect=test)
21 add_public_tablegen_target(MLIRTestAttrDefIncGen)
23 set(LLVM_TARGET_DEFINITIONS TestTypeDefs.td)
24 mlir_tablegen(TestTypeDefs.h.inc -gen-typedef-decls -typedefs-dialect=test)
25 mlir_tablegen(TestTypeDefs.cpp.inc -gen-typedef-defs -typedefs-dialect=test)
26 add_public_tablegen_target(MLIRTestTypeDefIncGen)
28 set(LLVM_TARGET_DEFINITIONS TestEnumDefs.td)
29 mlir_tablegen(TestOpEnums.h.inc -gen-enum-decls)
30 mlir_tablegen(TestOpEnums.cpp.inc -gen-enum-defs)
31 add_public_tablegen_target(MLIRTestEnumDefIncGen)
33 set(LLVM_TARGET_DEFINITIONS TestOps.td)
34 mlir_tablegen(TestOpsDialect.h.inc -gen-dialect-decls -dialect=test)
35 mlir_tablegen(TestOpsDialect.cpp.inc -gen-dialect-defs -dialect=test)
36 mlir_tablegen(TestPatterns.inc -gen-rewriters)
37 add_public_tablegen_target(MLIRTestOpsIncGen)
39 set(LLVM_TARGET_DEFINITIONS TestOpsSyntax.td)
40 mlir_tablegen(TestOpsSyntax.h.inc -gen-op-decls)
41 mlir_tablegen(TestOpsSyntax.cpp.inc -gen-op-defs)
42 add_public_tablegen_target(MLIRTestOpsSyntaxIncGen)
44 add_sharded_ops(TestOps 20)
46 # Exclude tests from libMLIR.so
47 add_mlir_library(MLIRTestDialect
58 TestDialectInterfaces.cpp
66 MLIRTestInterfaceIncGen
69 MLIRTestOpsSyntaxIncGen
73 MLIRControlFlowInterfaces
74 MLIRDataLayoutInterfaces
75 MLIRDerivedAttributeOpInterface
76 MLIRDestinationStyleOpInterface
80 MLIRFunctionInterfaces
83 MLIRInferIntRangeInterface
84 MLIRInferTypeOpInterface
94 MLIRValueBoundsOpInterface
97 add_mlir_translation_library(MLIRTestFromLLVMIRTranslation
98 TestFromLLVMIRTranslation.cpp
110 MLIRTargetLLVMIRImport
111 MLIRLLVMIRToLLVMTranslation
114 add_mlir_translation_library(MLIRTestToLLVMIRTranslation
115 TestToLLVMIRTranslation.cpp
127 MLIRBuiltinToLLVMIRTranslation
128 MLIRLLVMToLLVMIRTranslation