Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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-15.0.7/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-15.0.7/llvm/unittests/Frontend/
H A DOpenMPIRBuilderTest.cpp3943 Type *SumType = Builder.getFloatTy(); in TEST_F() local
3950 SumReduced = Builder.CreateAlloca(SumType); in TEST_F()
3973 Value *SumPartial = Builder.CreateLoad(SumType, SumReduced, "sum.partial"); in TEST_F()
4024 {SumType, SumReduced, SumPrivatized, sumReduction, sumAtomicReduction}, in TEST_F()
4185 Type *SumType = Builder.getFloatTy(); in TEST_F() local
4192 SumReduced = Builder.CreateAlloca(SumType); in TEST_F()
4212 Value *SumPartial = Builder.CreateLoad(SumType, SumReduced, "sum.partial"); in TEST_F()
4285 {{SumType, SumReduced, SumPrivatized, sumReduction, sumAtomicReduction}}); in TEST_F()