[llvm] r253833 - Further simplify from r253832, removing unnecessary intermediate lambdas

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 22 12:02:58 PST 2015


Author: dblaikie
Date: Sun Nov 22 14:02:58 2015
New Revision: 253833

URL: http://llvm.org/viewvc/llvm-project?rev=253833&view=rev
Log:
Further simplify from r253832, removing unnecessary intermediate lambdas

Modified:
    llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp

Modified: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp?rev=253833&r1=253832&r2=253833&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp Sun Nov 22 14:02:58 2015
@@ -107,36 +107,24 @@ bool EEVT::TypeSet::FillWithPossibleType
 /// 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);
 }
 
 




More information about the llvm-commits mailing list