1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Further simplify from r253832, removing unnecessary intermediate lambdas

llvm-svn: 253833
This commit is contained in:
David Blaikie 2015-11-22 20:02:58 +00:00
parent ad88d49779
commit 44297e7f9b

View File

@ -107,36 +107,24 @@ bool EEVT::TypeSet::FillWithPossibleTypes(TreePattern &TP,
/// hasIntegerTypes - Return true if this TypeSet contains iAny or an
/// integer value type.
bool EEVT::TypeSet::hasIntegerTypes() const {
return std::any_of(TypeVec.begin(), TypeVec.end(),
[](MVT::SimpleValueType VT) {
return isInteger(VT);
});
return std::any_of(TypeVec.begin(), TypeVec.end(), isInteger);
}
/// hasFloatingPointTypes - Return true if this TypeSet contains an fAny or
/// a floating point value type.
bool EEVT::TypeSet::hasFloatingPointTypes() const {
return std::any_of(TypeVec.begin(), TypeVec.end(),
[](MVT::SimpleValueType VT) {
return isFloatingPoint(VT);
});
return std::any_of(TypeVec.begin(), TypeVec.end(), isFloatingPoint);
}
/// hasScalarTypes - Return true if this TypeSet contains a scalar value type.
bool EEVT::TypeSet::hasScalarTypes() const {
return std::any_of(TypeVec.begin(), TypeVec.end(),
[](MVT::SimpleValueType VT) {
return isScalar(VT);
});
return std::any_of(TypeVec.begin(), TypeVec.end(), isScalar);
}
/// hasVectorTypes - Return true if this TypeSet contains a vAny or a vector
/// value type.
bool EEVT::TypeSet::hasVectorTypes() const {
return std::any_of(TypeVec.begin(), TypeVec.end(),
[](MVT::SimpleValueType VT) {
return isVector(VT);
});
return std::any_of(TypeVec.begin(), TypeVec.end(), isVector);
}