Get GEP indices to access Offset inside ElemTy. ElemTy is updated to be the result element type and Offset to be the residual offset.
Declared in <llvm/IR/DataLayout.h>
SmallVector<APInt>
getGEPIndicesForOffset(
Type*& ElemTy,
APInt& Offset) const;
Forward declaration of SmallVector so that calculateSmallVectorDefaultInlinedElements can reference sizeof(SmallVector<T, 0>).
| Name | Description |
|---|---|
| ElemTy | 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. |
| Offset | Arbitrary-precision integer. |