LLVM 20.0.0git
|
#include "llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h"
Public Types | |
using | IndicesVecT = SmallVector< int, 8 > |
using | const_iterator = IndicesVecT::const_iterator |
Public Member Functions | |
ShuffleMask (SmallVectorImpl< int > &&Indices) | |
ShuffleMask (std::initializer_list< int > Indices) | |
ShuffleMask (ArrayRef< int > Indices) | |
operator ArrayRef< int > () const | |
bool | isIdentity () const |
\Returns true if the mask is a perfect identity mask with consecutive indices, i.e., performs no lane shuffling, like 0,1,2,3... | |
bool | operator== (const ShuffleMask &Other) const |
bool | operator!= (const ShuffleMask &Other) const |
size_t | size () const |
int | operator[] (int Idx) const |
const_iterator | begin () const |
const_iterator | end () const |
void | print (raw_ostream &OS) const |
LLVM_DUMP_METHOD void | dump () const |
Static Public Member Functions | |
static ShuffleMask | getIdentity (unsigned Sz) |
Creates and returns an identity shuffle mask of size Sz . | |
Friends | |
raw_ostream & | operator<< (raw_ostream &OS, const ShuffleMask &Mask) |
Definition at line 28 of file Legality.h.
Definition at line 64 of file Legality.h.
using llvm::sandboxir::ShuffleMask::IndicesVecT = SmallVector<int, 8> |
Definition at line 30 of file Legality.h.
|
inline |
Definition at line 36 of file Legality.h.
|
inline |
Definition at line 37 of file Legality.h.
|
inlineexplicit |
Definition at line 38 of file Legality.h.
|
inline |
Definition at line 65 of file Legality.h.
References llvm::SmallVectorTemplateCommon< T, typename >::begin().
void llvm::sandboxir::ShuffleMask::dump | ( | ) | const |
Definition at line 23 of file Legality.cpp.
References llvm::dbgs(), and print().
|
inline |
Definition at line 66 of file Legality.h.
References llvm::SmallVectorTemplateCommon< T, typename >::end().
|
inlinestatic |
Creates and returns an identity shuffle mask of size Sz
.
For example if Sz == 4 the returned mask is {0, 1, 2, 3}.
Definition at line 42 of file Legality.h.
References Idx, llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::SmallVectorImpl< T >::reserve().
|
inline |
\Returns true if the mask is a perfect identity mask with consecutive indices, i.e., performs no lane shuffling, like 0,1,2,3...
Definition at line 51 of file Legality.h.
References llvm::enumerate(), and Idx.
|
inline |
Definition at line 39 of file Legality.h.
|
inline |
Definition at line 61 of file Legality.h.
References llvm::Other.
|
inline |
Definition at line 58 of file Legality.h.
References llvm::Other.
|
inline |
Definition at line 63 of file Legality.h.
References Idx.
|
inline |
Definition at line 72 of file Legality.h.
References llvm::interleave(), and OS.
Referenced by dump().
|
inline |
Definition at line 62 of file Legality.h.
References llvm::SmallVectorBase< Size_T >::size().
|
friend |
Definition at line 68 of file Legality.h.