| 1 |
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS) |
| 2 |
get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS) |
| 3 |
|
| 4 |
set(LLVM_LINK_COMPONENTS |
| 5 |
TargetParser |
| 6 |
) |
| 7 |
|
| 8 |
set(LIBS |
| 9 |
CUFDialect |
| 10 |
FIRBuilder |
| 11 |
FIRCodeGenDialect |
| 12 |
FIRDialect |
| 13 |
FIRDialectSupport |
| 14 |
FIRSupport |
| 15 |
HLFIRDialect |
| 16 |
) |
| 17 |
|
| 18 |
add_flang_unittest(FlangOptimizerTests |
| 19 |
Builder/CharacterTest.cpp |
| 20 |
Builder/ComplexTest.cpp |
| 21 |
Builder/DoLoopHelperTest.cpp |
| 22 |
Builder/FIRBuilderTest.cpp |
| 23 |
Builder/HLFIRToolsTest.cpp |
| 24 |
Builder/Runtime/AllocatableTest.cpp |
| 25 |
Builder/Runtime/AssignTest.cpp |
| 26 |
Builder/Runtime/CommandTest.cpp |
| 27 |
Builder/Runtime/CharacterTest.cpp |
| 28 |
Builder/Runtime/DerivedTest.cpp |
| 29 |
Builder/Runtime/IntrinsicsTest.cpp |
| 30 |
Builder/Runtime/NumericTest.cpp |
| 31 |
Builder/Runtime/RaggedTest.cpp |
| 32 |
Builder/Runtime/ReductionTest.cpp |
| 33 |
Builder/Runtime/StopTest.cpp |
| 34 |
Builder/Runtime/TransformationalTest.cpp |
| 35 |
FIRContextTest.cpp |
| 36 |
FIRTypesTest.cpp |
| 37 |
FortranVariableTest.cpp |
| 38 |
InternalNamesTest.cpp |
| 39 |
KindMappingTest.cpp |
| 40 |
RTBuilder.cpp |
| 41 |
DEPENDS |
| 42 |
CUFDialect |
| 43 |
FIRDialect |
| 44 |
FIRSupport |
| 45 |
HLFIRDialect) |
| 46 |
|
| 47 |
if(NOT FLANG_STANDALONE_BUILD) |
| 48 |
add_dependencies(FlangOptimizerTests |
| 49 |
${dialect_libs}) |
| 50 |
endif() |
| 51 |
|
| 52 |
target_link_libraries(FlangOptimizerTests |
| 53 |
PRIVATE |
| 54 |
${LIBS}) |
| 55 |
mlir_target_link_libraries(FlangOptimizerTests |
| 56 |
PRIVATE |
| 57 |
${dialect_libs} |
| 58 |
${extension_libs} |
| 59 |
) |