Convert a struct of scalar types to a struct of vector types.
Declared in <llvm/IR/VectorTypeUtils.h>
Type*
toVectorizedStructTy(
StructType* StructTy,
ElementCount EC);
Note:
If EC is scalar, StructTy is returned unchanged
Only unpacked literal struct types are supported
A struct whose elements are the vectorized forms of StructTy's elements, or StructTy when EC is scalar.
| Name | Description |
|---|---|
| StructTy | Unpacked literal struct of scalar element types. |
| EC | Element count used to widen each struct element. |