llvm::toScalarizedStructTy

A helper for converting structs of vector types to structs of scalar types. Note: Only unpacked literal struct types are supported.

Synopsis

Declared in <llvm/IR/VectorTypeUtils.h>

Type*
toScalarizedStructTy(StructType* StructTy);

Return Value

The instances of the Type class are immutable: once they are created, they are never changed. Also note that only one instance of a particular type is ever created. Thus seeing if two types are equal is a matter of doing a trivial pointer comparison. To enforce that no two equal instances are created, Type instances can only be created via static factory methods in class Type and in derived classes. Once allocated, Types are never free'd.

Parameters

NameDescription
StructTyClass to represent struct types. There are two different kinds of struct types: Literal structs and Identified structs.