return matchPattern(Input, GenericMatchInfo);
}
bool matchOffsetPattern(LVOffset Offset) {
- return std::find(OffsetMatchInfo.begin(), OffsetMatchInfo.end(), Offset) !=
- OffsetMatchInfo.end();
+ return llvm::is_contained(OffsetMatchInfo, Offset);
}
void resolvePatternMatch(LVLine *Line) {
if (all_of(Mask, [](int Idx) { return Idx < 0; }))
return getZeroVector(RootVT, Subtarget, DAG, SDLoc(Root));
if (Ops.size() == 1 && ISD::isBuildVectorAllOnes(Ops[0].getNode()) &&
- none_of(Mask, [](int M) { return M == SM_SentinelZero; }))
+ !llvm::is_contained(Mask, SM_SentinelZero))
return getOnesVector(RootVT, DAG, SDLoc(Root));
assert(!Ops.empty() && "Shuffle with no inputs detected");