Click or drag to resize
Llvm.NET LogoInstructionBuilderGetStructElementPointer Method

[This is preliminary documentation and is subject to change.]

Creates a Value that accesses an element (field) of a structure

Namespace:  Llvm.NET.Instructions
Assembly:  Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntax
C#
public Value GetStructElementPointer(
	Value pointer,
	uint index
)

Parameters

pointer
Type: Llvm.NET.ValuesValue
pointer to the structure to get an element from
index
Type: SystemUInt32
element index

Return Value

Type: 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.

See Also