llvm::getContainedTypes

Returns the types contained in Ty. For struct types, it returns the elements, all other types are returned directly.

Synopsis

Declared in <llvm/IR/VectorTypeUtils.h>

ArrayRef<Type*>
getContainedTypes(Type const*& Ty);

Return Value

The element types of Ty when it is a struct, otherwise a single-element array containing Ty.

Parameters

NameDescription
TyType whose contained types are returned.