ΒΆllvm::Constant* createReplicatedMask(
    IRBuilder<>& Builder,
    unsigned int ReplicationFactor,
    unsigned int VF)

Description

Create a mask with replicated elements. This function creates a shuffle mask for replicating each of the \p VF elements in a vector \p ReplicationFactor times. It can be used to transform a mask of \p VF elements into a mask of\p VF * \p ReplicationFactor elements used by a predicated interleaved-group of loads/stores whose Interleaved-factor ==\p ReplicationFactor. For example, the mask for \p ReplicationFactor=3 and \p VF=4 is: < 0,0,0,1,1,1,2,2,2,3,3,3>

Declared at: llvm/include/llvm/Analysis/VectorUtils.h:322

Parameters

IRBuilder<>& Builder
unsigned int ReplicationFactor
unsigned int VF