llvm::toVectorizedStructTy

Convert a struct of scalar types to a struct of vector types.

Synopsis

Declared in <llvm/IR/VectorTypeUtils.h>

Type*
toVectorizedStructTy(
    StructType* StructTy,
    ElementCount EC);

Description

Note:

  • If EC is scalar, StructTy is returned unchanged

  • Only unpacked literal struct types are supported

Return Value

A struct whose elements are the vectorized forms of StructTy's elements, or StructTy when EC is scalar.

Parameters

NameDescription
StructTyUnpacked literal struct of scalar element types.
ECElement count used to widen each struct element.