llvm::BasicTTIImplBase::improveShuffleKindFromMask

Refine Kind using Mask, updating Index and SubTy when needed.

Synopsis

Declared in <llvm/CodeGen/BasicTTIImpl.h>

TTI::ShuffleKind
improveShuffleKindFromMask(
    TTI::ShuffleKind Kind,
    ArrayRef<int> Mask,
    VectorType* SrcTy,
    int& Index,
    VectorType*& SubTy) const;

Return Value

The refined shuffle kind.

Parameters

NameDescription
KindInitial shuffle kind classification.
MaskShuffle mask to inspect.
SrcTySource vector type of the shuffle.
IndexSet to a subvector index when Kind is refined to insert or extract subvector.
SubTySet to the subvector type when Kind is refined to insert or extract subvector.