[InstCombine] Signed saturation patterns
[llvm-core.git] / unittests / Support / CMakeLists.txt
blob385142278e48d79030fd528bb703b179adbf0029
1 set(LLVM_LINK_COMPONENTS
2   Support
3   )
5 add_llvm_unittest(SupportTests
6   AlignmentTest.cpp
7   AlignOfTest.cpp
8   AllocatorTest.cpp
9   AnnotationsTest.cpp
10   ARMAttributeParser.cpp
11   ArrayRecyclerTest.cpp
12   BinaryStreamTest.cpp
13   BlockFrequencyTest.cpp
14   BranchProbabilityTest.cpp
15   CachePruningTest.cpp
16   CrashRecoveryTest.cpp
17   Casting.cpp
18   CheckedArithmeticTest.cpp
19   Chrono.cpp
20   CommandLineTest.cpp
21   CompressionTest.cpp
22   ConvertUTFTest.cpp
23   CRCTest.cpp
24   DataExtractorTest.cpp
25   DebugTest.cpp
26   DebugCounterTest.cpp
27   DJBTest.cpp
28   EndianStreamTest.cpp
29   EndianTest.cpp
30   ErrnoTest.cpp
31   ErrorOrTest.cpp
32   ErrorTest.cpp
33   FileCheckTest.cpp
34   FileCollectorTest.cpp
35   FileOutputBufferTest.cpp
36   FileUtilitiesTest.cpp
37   FormatVariadicTest.cpp
38   GlobPatternTest.cpp
39   Host.cpp
40   ItaniumManglingCanonicalizerTest.cpp
41   JSONTest.cpp
42   KnownBitsTest.cpp
43   LEB128Test.cpp
44   LineIteratorTest.cpp
45   LockFileManagerTest.cpp
46   MatchersTest.cpp
47   MD5Test.cpp
48   ManagedStatic.cpp
49   MathExtrasTest.cpp
50   MemoryBufferTest.cpp
51   MemoryTest.cpp
52   NativeFormatTests.cpp
53   ParallelTest.cpp
54   Path.cpp
55   ProcessTest.cpp
56   ProgramTest.cpp
57   RegexTest.cpp
58   ReverseIterationTest.cpp
59   ReplaceFileTest.cpp
60   ScaledNumberTest.cpp
61   SignalsTest.cpp
62   SourceMgrTest.cpp
63   SpecialCaseListTest.cpp
64   StringPool.cpp
65   SwapByteOrderTest.cpp
66   SymbolRemappingReaderTest.cpp
67   TarWriterTest.cpp
68   TargetParserTest.cpp
69   TaskQueueTest.cpp
70   ThreadLocalTest.cpp
71   ThreadPool.cpp
72   Threading.cpp
73   TimerTest.cpp
74   TypeNameTest.cpp
75   TypeTraitsTest.cpp
76   TrailingObjectsTest.cpp
77   TrigramIndexTest.cpp
78   UnicodeTest.cpp
79   VersionTupleTest.cpp
80   VirtualFileSystemTest.cpp
81   YAMLIOTest.cpp
82   YAMLParserTest.cpp
83   formatted_raw_ostream_test.cpp
84   raw_ostream_test.cpp
85   raw_pwrite_stream_test.cpp
86   raw_sha1_ostream_test.cpp
87   xxhashTest.cpp
88   )
90 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport)
92 # Disable all warning for AlignOfTest.cpp,
93 # as it does things intentionally, and there is no reliable way of
94 # disabling all warnings for all the compilers by using pragmas.
95 # Don't disable on MSVC, because all incriminated warnings are already disabled
96 # in source; and because we would otherwise see this warning:
97 #   cl : Command line warning D9025: overriding '/W4' with '/w'
98 if(NOT MSVC)
99   set_source_files_properties(AlignOfTest.cpp PROPERTIES COMPILE_FLAGS -w)
100 endif()
101 if(MSVC)
102   if( CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.14 )
103     # Since VS2017 15.8, the following snippet: Failed<CustomSubError>()
104     # generates a warning:
105     # \svn\llvm\utils\unittest\googlemock\include\gmock\gmock-matchers.h(186):
106     #   warning C5046: 'testing::MatcherInterface<T>::~MatcherInterface': Symbol involving type with internal linkage not defined
107     set_source_files_properties(ErrorTest.cpp PROPERTIES COMPILE_FLAGS -wd5046)
108   endif()
109 endif()
111 # ManagedStatic.cpp uses <pthread>.
112 target_link_libraries(SupportTests PRIVATE LLVMTestingSupport ${LLVM_PTHREAD_LIB})
114 add_subdirectory(DynamicLibrary)