Searched refs:SumType (Results 1 – 2 of 2) sorted by relevance
/external/llvm/unittests/ADT/ |
D | PointerSumTypeTest.cpp | 24 SumType; typedef 25 SumType a, b, c, n; 28 : f(3.14f), i1(42), i2(-1), a(SumType::create<Float>(&f)), in PointerSumTypeTest() 29 b(SumType::create<Int1>(&i1)), c(SumType::create<Int2>(&i2)), n() {} in PointerSumTypeTest() 83 b = SumType::create<Int2>(&i2); in TEST_F() 88 b = SumType::create<Int2>(&i1); in TEST_F() 94 b = SumType::create<Float>(&Local); in TEST_F() 99 n = SumType::create<Int1>(&i2); in TEST_F() 105 n = SumType::create<Float>(nullptr); in TEST_F()
|
/external/llvm/include/llvm/ADT/ |
D | PointerSumType.h | 179 typedef PointerSumType<TagT, MemberTs...> SumType; 187 static inline SumType getEmptyKey() { 188 return SumType::create<SomeTag>(SomePointerInfo::getEmptyKey()); 190 static inline SumType getTombstoneKey() { 191 return SumType::create<SomeTag>( 194 static unsigned getHashValue(const SumType &Arg) { 198 static bool isEqual(const SumType &LHS, const SumType &RHS) {
|