Compute the linearized index of a member in a nested aggregate.
Declared in <llvm/CodeGen/Analysis.h>
unsigned int
ComputeLinearIndex(
Type* Ty,
ArrayRef<unsigned int> Indices,
unsigned int CurIndex = 0);
The linearized index of the member identified by Indices.
| Name | Description |
|---|---|
| Ty | Aggregate type indexed by Indices. |
| Indices | Sequence of insertvalue or extractvalue indices. |
| CurIndex | Current index used as the recursion base. |