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
Represent a constant reference to an array (0 or more elements consecutively in memory), i.e. a start pointer and a length. It allows various APIs to take consecutive elements easily and conveniently.
Parameters
Name |
Description |
Ty |
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. |
Created with MrDocs