summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2018-04-27 21:03:27 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2018-04-27 21:03:27 +0000
commit4f246999d983878243295814b92b978781f366ee (patch)
treedbe2e839c0408bf68023d2e6bd9a78ca6739ab9c /llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
parent5a6482450a3f734d6ad3d22ebf4ab9407dcd2a18 (diff)
downloadbcm5719-llvm-4f246999d983878243295814b92b978781f366ee.tar.gz
bcm5719-llvm-4f246999d983878243295814b92b978781f366ee.zip
Attempt to fix remaining build failures after r331071 by changing the tuple to a struct
Some of the bots were failing in a different way to the others. These were unable to compare tuples. Fix this by changing to a struct, thereby avoiding the quirks of tuples. llvm-svn: 331081
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp b/llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
index b43d88fc237..56b57b53d64 100644
--- a/llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LegalityPredicates.cpp
@@ -43,12 +43,11 @@ LegalityPredicate LegalityPredicates::typePairInSet(
LegalityPredicate LegalityPredicates::typePairAndMemSizeInSet(
unsigned TypeIdx0, unsigned TypeIdx1, unsigned MMOIdx,
- std::initializer_list<std::tuple<LLT, LLT, unsigned>> TypesAndMemSizeInit) {
- SmallVector<std::tuple<LLT, LLT, unsigned>, 4> TypesAndMemSize = TypesAndMemSizeInit;
+ std::initializer_list<TypePairAndMemSize> TypesAndMemSizeInit) {
+ SmallVector<TypePairAndMemSize, 4> TypesAndMemSize = TypesAndMemSizeInit;
return [=](const LegalityQuery &Query) {
- std::tuple<LLT, LLT, unsigned> Match =
- std::make_tuple(Query.Types[TypeIdx0], Query.Types[TypeIdx1],
- Query.MMODescrs[MMOIdx].Size);
+ TypePairAndMemSize Match = {Query.Types[TypeIdx0], Query.Types[TypeIdx1],
+ Query.MMODescrs[MMOIdx].Size};
return std::find(TypesAndMemSize.begin(), TypesAndMemSize.end(), Match) !=
TypesAndMemSize.end();
};
OpenPOWER on IntegriCloud