TypeSet InputSet(*this);
// Filter out all the fp types.
- TypeVec.erase(remove_if(TypeVec, std::not1(std::ptr_fun(isInteger))),
- TypeVec.end());
+ erase_if(TypeVec, [](MVT::SimpleValueType VT) { return !isInteger(VT); });
if (TypeVec.empty()) {
TP.error("Type inference contradiction found, '" +
TypeSet InputSet(*this);
// Filter out all the integer types.
- TypeVec.erase(remove_if(TypeVec, std::not1(std::ptr_fun(isFloatingPoint))),
- TypeVec.end());
+ erase_if(TypeVec,
+ [](MVT::SimpleValueType VT) { return !isFloatingPoint(VT); });
if (TypeVec.empty()) {
TP.error("Type inference contradiction found, '" +
TypeSet InputSet(*this);
// Filter out all the vector types.
- TypeVec.erase(remove_if(TypeVec, std::not1(std::ptr_fun(isScalar))),
- TypeVec.end());
+ erase_if(TypeVec, [](MVT::SimpleValueType VT) { return !isScalar(VT); });
if (TypeVec.empty()) {
TP.error("Type inference contradiction found, '" +
bool MadeChange = false;
// Filter out all the scalar types.
- TypeVec.erase(remove_if(TypeVec, std::not1(std::ptr_fun(isVector))),
- TypeVec.end());
+ erase_if(TypeVec, [](MVT::SimpleValueType VT) { return !isVector(VT); });
if (TypeVec.empty()) {
TP.error("Type inference contradiction found, '" +