ΒΆllvm::Constant* createStrideMask(
IRBuilder<>& Builder,
unsigned int Start,
unsigned int Stride,
unsigned int VF)
llvm::Constant* createStrideMask(
IRBuilder<>& Builder,
unsigned int Start,
unsigned int Stride,
unsigned int VF)
Description
Create a stride shuffle mask. This function creates a shuffle mask whose elements begin at \p Start and are incremented by \p Stride. The mask can be used to deinterleave an interleaved vector into separate vectors of vectorization factor \p VF. The mask is of the form: <Start , Start + Stride, ..., Start + Stride * (VF - 1)> For example, the mask for Start = 0, Stride = 2, and VF = 4 is: < 0, 2, 4, 6>
Declared at: llvm/include/llvm/Analysis/VectorUtils.h:351
Parameters
- IRBuilder<>& Builder
- unsigned int Start
- unsigned int Stride
- unsigned int VF