Table of Contents

Method PointerToInt

Namespace
Ubiquity.NET.Llvm.Instructions
Assembly
Ubiquity.NET.Llvm.dll

PointerToInt(Value, ITypeRef)

Builds a cast from a pointer to an integer type

public Value PointerToInt(Value ptrValue, ITypeRef intType)

Parameters

ptrValue Value

Pointer value to cast

intType ITypeRef

Integer type to return

Returns

Value

Resulting value from the cast

Remarks

The actual type of value returned depends on ptrValue and is either a ConstantExpression or a PointerToInt instruction. Conversion to a constant expression is performed whenever possible.