Table of Contents

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 ITypeRef

Type of the pointer

pointer Value

OPaque pointer to the structure to get an element from

index uint

element 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.