Tuples can occupy quite a lot of space, instead of printing out tuple type
everywhere, just use the type alias if larger (arbitrarily chose a bound for
now).
Differential Revision: https://reviews.llvm.org/D95707
}
return failure();
}
+
+ LogicalResult getAlias(Type type, raw_ostream &os) const final {
+ if (auto tupleType = type.dyn_cast<TupleType>()) {
+ if (tupleType.size() > 16) {
+ os << "tuple";
+ return success();
+ }
+ }
+ return failure();
+ }
};
} // end anonymous namespace.