blob: 6734de8e2d950d26061b95ae1f99282d8b6aea08 [file] [log] [blame]
Chandler Carruth94d02512012-06-21 09:51:26 +00001set(LLVM_LINK_COMPONENTS
NAKAMURA Takumib5c4b8762013-12-10 11:13:32 +00002 Analysis
3 AsmParser
4 Core
NAKAMURA Takumib5c4b8762013-12-10 11:13:32 +00005 Support
Chandler Carruth94d02512012-06-21 09:51:26 +00006 )
7
Chandler Carruth74b6a772013-01-07 15:35:46 +00008set(IRSources
Mehdi Aminib9b50aa2016-01-07 20:14:30 +00009 AsmWriterTest.cpp
Benjamin Kramer410780b2013-01-12 14:13:45 +000010 AttributesTest.cpp
Chandler Carruth8fa1e372017-05-26 03:10:00 +000011 BasicBlockTest.cpp
Chandler Carruth8cd041e2014-03-04 12:24:34 +000012 ConstantRangeTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000013 ConstantsTest.cpp
Duncan P. N. Exon Smith176b6912014-10-03 20:01:09 +000014 DebugInfoTest.cpp
Duncan P. N. Exon Smith15617092016-04-19 17:11:06 +000015 DebugTypeODRUniquingTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000016 DominatorTreeTest.cpp
Duncan P. N. Exon Smithbdfc9842016-04-06 06:38:15 +000017 FunctionTest.cpp
Chandler Carruthebabadf2012-07-16 07:44:45 +000018 IRBuilderTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000019 InstructionsTest.cpp
Reid Klecknerc2752da2016-01-26 22:33:19 +000020 IntrinsicsTest.cpp
Chandler Carruth7caea412013-11-09 12:26:54 +000021 LegacyPassManagerTest.cpp
Chandler Carruthec7ad652012-07-15 23:26:50 +000022 MDBuilderTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000023 MetadataTest.cpp
Duncan P. N. Exon Smithac798972016-08-30 16:23:55 +000024 ModuleTest.cpp
Chandler Carruth90a835d2013-11-09 13:09:08 +000025 PassManagerTest.cpp
Arnold Schwaighofereb4f2d62013-05-05 02:14:28 +000026 PatternMatch.cpp
Chandler Carruth36e2ecf2012-07-15 23:45:24 +000027 TypeBuilderTest.cpp
Benjamin Kramer6d29c292012-08-04 09:52:39 +000028 TypesTest.cpp
Duncan P. N. Exon Smith1698de22014-07-24 00:53:19 +000029 UseTest.cpp
Chandler Carruth4c1b05f2014-04-17 09:07:50 +000030 UserTest.cpp
Chandler Carruth4220e9c2014-03-04 11:17:44 +000031 ValueHandleTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000032 ValueMapTest.cpp
Benjamin Kramereee73f52013-04-12 08:33:11 +000033 ValueTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000034 VerifierTest.cpp
Gabor Greiffea6a552012-11-12 10:01:17 +000035 WaymarkTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000036 )
37
NAKAMURA Takumie14e13d2012-06-21 22:17:39 +000038# HACK: Declare a couple of source files as optionally compiled to satisfy the
39# missing-file-checker in LLVM's weird CMake build.
40set(LLVM_OPTIONAL_SOURCES
41 ValueMapTest.cpp
42 )
43
Chandler Carruth74b6a772013-01-07 15:35:46 +000044add_llvm_unittest(IRTests
45 ${IRSources}
Chandler Carruth94d02512012-06-21 09:51:26 +000046 )