xref: /llvm-project/llvm/unittests/CodeGen/CMakeLists.txt (revision c931ac5994c4f896f0db03c425924ed38601252a)
1set(LLVM_LINK_COMPONENTS
2  ${LLVM_TARGETS_TO_BUILD}
3  Analysis
4  AsmParser
5  AsmPrinter
6  CodeGen
7  CodeGenTypes
8  Core
9  FileCheck
10  IRPrinter
11  MC
12  MIRParser
13  Passes
14  ScalarOpts
15  SelectionDAG
16  Support
17  Target
18  TargetParser
19  TransformUtils
20  )
21
22add_llvm_unittest(CodeGenTests
23  AArch64SelectionDAGTest.cpp
24  AllocationOrderTest.cpp
25  AMDGPUMetadataTest.cpp
26  AsmPrinterDwarfTest.cpp
27  CCStateTest.cpp
28  DIEHashTest.cpp
29  DIETest.cpp
30  DwarfStringPoolEntryRefTest.cpp
31  InstrRefLDVTest.cpp
32  LowLevelTypeTest.cpp
33  LexicalScopesTest.cpp
34  MachineBasicBlockTest.cpp
35  MachineDomTreeUpdaterTest.cpp
36  MachineInstrBundleIteratorTest.cpp
37  MachineInstrTest.cpp
38  MachineOperandTest.cpp
39  RegAllocScoreTest.cpp
40  PassManagerTest.cpp
41  ScalableVectorMVTsTest.cpp
42  SchedBoundary.cpp
43  SelectionDAGAddressAnalysisTest.cpp
44  SelectionDAGPatternMatchTest.cpp
45  TypeTraitsTest.cpp
46  TargetOptionsTest.cpp
47  TestAsmPrinter.cpp
48  MLRegAllocDevelopmentFeatures.cpp
49  )
50
51add_subdirectory(GlobalISel)
52
53target_link_libraries(CodeGenTests PRIVATE LLVMTestingSupport)
54