Home
last modified time | relevance | path

Searched refs:SumType (Results 1 – 3 of 3) sorted by relevance

/llvm-project/llvm/unittests/ADT/
H A DPointerSumTypeTest.cpp23 SumType; typedef
24 SumType a, b, c, n;
27 : f(3.14f), i1(42), i2(-1), a(SumType::create<Float>(&f)), in PointerSumTypeTest()
28 b(SumType::create<Int1>(&i1)), c(SumType::create<Int2>(&i2)), n() {} in PointerSumTypeTest()
82 b = SumType::create<Int2>(&i2); in TEST_F()
87 b = SumType::create<Int2>(&i1); in TEST_F()
93 b = SumType::create<Float>(&Local); in TEST_F()
98 n = SumType::create<Int1>(&i2); in TEST_F()
104 n = SumType::create<Float>(nullptr); in TEST_F()
/llvm-project/llvm/include/llvm/ADT/
H A DPointerSumType.h267 using SumType = PointerSumType<TagT, MemberTs...>;
274 static inline SumType getEmptyKey() {
275 return SumType::template create<SomeTag>(SomePointerInfo::getEmptyKey());
278 static inline SumType getTombstoneKey() {
279 return SumType::template create<SomeTag>(
283 static unsigned getHashValue(const SumType &Arg) {
288 static bool isEqual(const SumType &LHS, const SumType &RHS) {
/llvm-project/llvm/unittests/Frontend/
H A DOpenMPIRBuilderTest.cpp5120 Type *SumType = Builder.getFloatTy(); in TEST_F()
5127 SumReduced = Builder.CreateAlloca(SumType); in TEST_F()
5150 Value *SumPartial = Builder.CreateLoad(SumType, SumReduced, "sum.partial"); in TEST_F()
5203 {SumType, SumReduced, SumPrivatized, in TEST_F()
5364 Type *SumType = Builder.getFloatTy(); in TEST_F()
5371 SumReduced = Builder.CreateAlloca(SumType); in TEST_F()
5391 Value *SumPartial = Builder.CreateLoad(SumType, SumReduced, "sum.partial"); in TEST_F()
5475 {{SumType, SumReduced, SumPrivatized, in TEST_F()
4902 Type *SumType = Builder.getFloatTy(); TEST_F() local
5143 Type *SumType = Builder.getFloatTy(); TEST_F() local