Files
swift-mirror/unittests/Basic/CMakeLists.txt
Michael Gottesman 00d4576977 [multimapcache] Add an efficient CRTP based write-once multimap cache that can be small.
The properties of this multimap cache are:

1. Values are stored (inline if Small) in a Vector and our map internally maps
   keys to (start, length) of slices of the Vector. This is done instead of
   storing arrays refs to ensure that if our array goes from small -> large, we
   do not have stale pointers.

2. Values are only allowed to be inserted all at once. This is ok, since this is
   a cache.

3. One is not storing individual small vectors in a map (or state storing
   SmallVectors). This can inadvertantly add up to using a lot of memory and is
   not needed for homogenous data.
2020-03-31 15:12:37 -07:00

48 lines
1.0 KiB
CMake

set(generated_tests UnicodeGraphemeBreakTest.cpp.gyb)
handle_gyb_sources(
gyb_dependency_targets
generated_tests
${SWIFT_HOST_VARIANT_ARCH})
add_swift_unittest(SwiftBasicTests
BlotMapVectorTest.cpp
CacheTest.cpp
ClusteredBitVectorTest.cpp
DemangleTest.cpp
DiverseStackTest.cpp
EditorPlaceholderTest.cpp
EncodedSequenceTest.cpp
ExponentialGrowthAppendingBinaryByteStreamTests.cpp
FileSystemTest.cpp
FrozenMultiMapTest.cpp
ImmutablePointerSetTest.cpp
JSONSerialization.cpp
OptionSetTest.cpp
OwnedStringTest.cpp
MultiMapCacheTest.cpp
PointerIntEnumTest.cpp
PrefixMapTest.cpp
RangeTest.cpp
SourceManagerTest.cpp
STLExtrasTest.cpp
StringExtrasTest.cpp
SuccessorMapTest.cpp
TaggedUnionTest.cpp
ThreadSafeRefCntPointerTest.cpp
TransformRangeTest.cpp
TreeScopedHashTableTest.cpp
UnicodeTest.cpp
ValueEnumeratorTest.cpp
${generated_tests}
)
add_dependencies(SwiftBasicTests "${gyb_dependency_targets}")
target_link_libraries(SwiftBasicTests
PRIVATE
swiftBasic
clangBasic
LLVMTestingSupport
)