llvm::toScalarizedTy

Convert a vectorized type to its scalarized (non-vector) form.

Synopsis

Declared in <llvm/IR/VectorTypeUtils.h>

Type*
toScalarizedTy(Type* Ty);

Description

For vector types, this is equivalent to calling .getScalarType(). For struct types, this returns a new struct where each element type has been converted to a scalar type. Note: Only unpacked literal struct types are supported.

Return Value

The scalarized (non-vector) form of Ty.

Parameters

NameDescription
TyVector or unpacked literal struct of vectors to scalarize.