Method GetStructElementPointer
- Namespace
- Ubiquity.NET.Llvm.Instructions
- Assembly
- Ubiquity.NET.Llvm.dll
GetStructElementPointer(ITypeRef, Value, uint)
Creates a Value that accesses an element (field) of a structure
public Value GetStructElementPointer(ITypeRef type, Value pointer, uint index)
Parameters
typeITypeRefType of the pointer
pointerValueOPaque pointer to the structure to get an element from
indexuintelement index
Returns
- Value
Value for the member access. This is a Value as LLVM may optimize the expression to a ConstantExpression if it can so the actual type of the result may be ConstantExpression or GetElementPtr.
Note that
pointermust be a pointer to a structure or an exception is thrown.