Return true if Mask is one slide or a masked pair of slides.
Declared in <llvm/Analysis/VectorUtils.h>
bool
isMaskedSlidePair(
ArrayRef<int> Mask,
int NumElts,
std::array<std::pair<int, int>, 2>& SrcInfo);
Does this shuffle mask represent either one slide shuffle or a pair of two slide shuffles, combined with a select on some constant vector mask? A slide is a shuffle mask which shifts some set of elements up or down the vector, with all other elements being undefined. An identity shuffle will be matched a slide by 0. The output parameter provides the source (-1 means no source), and slide direction for each slide.
True if Mask represents one slide or a masked pair of slides.
| Name | Description |
|---|---|
| Mask | Shuffle mask to classify. |
| NumElts | Number of elements represented by Mask. |
| SrcInfo | Output slide sources and directions for up to two slides. |