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
type
ITypeRefType of the pointer
pointer
ValueOPaque pointer to the structure to get an element from
index
uintelement 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
pointer
must be a pointer to a structure or an exception is thrown.