diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-11-22 20:02:58 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-11-22 20:02:58 +0000 |
commit | b8fc0186c73c2e9088bdab7a640529dc05cd40c9 (patch) | |
tree | 2ed6197c8047ec406d572ba831a6fbfed9e7f2b3 /llvm/utils/TableGen/CodeGenDAGPatterns.cpp | |
parent | cbdc27eb74a570542abea31e4195f2b0546c377a (diff) | |
download | bcm5719-llvm-b8fc0186c73c2e9088bdab7a640529dc05cd40c9.tar.gz bcm5719-llvm-b8fc0186c73c2e9088bdab7a640529dc05cd40c9.zip |
Further simplify from r253832, removing unnecessary intermediate lambdas
llvm-svn: 253833
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
-rw-r--r-- | llvm/utils/TableGen/CodeGenDAGPatterns.cpp | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp index fe7fb080efb..1d0995563bc 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.cpp +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.cpp @@ -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); } |