Table of Contents

Method CreateConstant

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

CreateConstant(bool)

Creates a new ConstantInt with a bit length of 1

public ConstantInt CreateConstant(bool constValue)

Parameters

constValue bool

Value for the constant

Returns

ConstantInt

ConstantInt representing the value

CreateConstant(byte)

Creates a new ConstantInt with a bit length of 8

public ConstantInt CreateConstant(byte constValue)

Parameters

constValue byte

Value for the constant

Returns

ConstantInt

ConstantInt representing the value

CreateConstant(sbyte)

Creates a new ConstantInt with a bit length of 8

public Constant CreateConstant(sbyte constValue)

Parameters

constValue sbyte

Value for the constant

Returns

Constant

ConstantInt representing the value

CreateConstant(short)

Creates a new ConstantInt with a bit length of 16

public ConstantInt CreateConstant(short constValue)

Parameters

constValue short

Value for the constant

Returns

ConstantInt

ConstantInt representing the value

CreateConstant(ushort)

Creates a new ConstantInt with a bit length of 16

public ConstantInt CreateConstant(ushort constValue)

Parameters

constValue ushort

Value for the constant

Returns

ConstantInt

ConstantInt representing the value

CreateConstant(int)

Creates a new ConstantInt with a bit length of 32

public ConstantInt CreateConstant(int constValue)

Parameters

constValue int

Value for the constant

Returns

ConstantInt

ConstantInt representing the value

CreateConstant(uint)

Creates a new ConstantInt with a bit length of 32

public ConstantInt CreateConstant(uint constValue)

Parameters

constValue uint

Value for the constant

Returns

ConstantInt

ConstantInt representing the value

CreateConstant(long)

Creates a new ConstantInt with a bit length of 64

public ConstantInt CreateConstant(long constValue)

Parameters

constValue long

Value for the constant

Returns

ConstantInt

ConstantInt representing the value

CreateConstant(ulong)

Creates a new ConstantInt with a bit length of 64

public ConstantInt CreateConstant(ulong constValue)

Parameters

constValue ulong

Value for the constant

Returns

ConstantInt

ConstantInt representing the value

CreateConstant(uint, ulong, bool)

Creates a new ConstantInt with a bit length of 64

public ConstantInt CreateConstant(uint bitWidth, ulong constValue, bool signExtend)

Parameters

bitWidth uint

Bit width of the integer

constValue ulong

Value for the constant

signExtend bool

flag to indicate if the constant value should be sign extended

Returns

ConstantInt

ConstantInt representing the value

CreateConstant(ITypeRef, ulong, bool)

Create a constant value of the specified integer type

public ConstantInt CreateConstant(ITypeRef intType, ulong constValue, bool signExtend)

Parameters

intType ITypeRef

Integer type

constValue ulong

value

signExtend bool

flag to indicate if constValue is sign extended

Returns

ConstantInt

Constant for the specified value

CreateConstant(float)

Creates a constant floating point value for a given value

public ConstantFP CreateConstant(float constValue)

Parameters

constValue float

Value to make into a ConstantFP

Returns

ConstantFP

Constant value

CreateConstant(double)

Creates a constant floating point value for a given value

public ConstantFP CreateConstant(double constValue)

Parameters

constValue double

Value to make into a ConstantFP

Returns

ConstantFP

Constant value