 | InstructionBuilderPointerToInt Method |
[This is preliminary documentation and is subject to change.]
Builds a cast from a pointer to an integer type
Namespace:
Llvm.NET.Instructions
Assembly:
Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntaxpublic Value PointerToInt(
Value ptrValue,
ITypeRef intType
)
Parameters
- ptrValue
- Type: Llvm.NET.ValuesValue
Pointer value to cast - intType
- Type: Llvm.NET.TypesITypeRef
Integer type to return
Return Value
Type:
ValueResulting 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.
See Also