Module scalar

Source
Expand description

Functions in this group model ValueRef instances that correspond to constants referring to scalar types.

Functionsยง

const_int
Obtain a constant value for an integer type. The returned value corresponds to a llvm ConstantInt.
const_int_get_sext_value
Obtain the sign extended value for an integer constant value.
const_int_get_zext_value
Obtain the zero extended value for an integer constant value.
const_int_of_arbitrary_precision
Obtain a constant value for an integer of arbitrary precision.
const_int_of_string
Obtain a constant value for an integer parsed from a string.
const_int_of_string_and_size
Obtain a constant value for an integer parsed from a string with specified length.
const_real
Obtain a constant value referring to a double floating point value.
const_real_get_double
Obtain the double value for a floating point constant value. losesInfo indicates if some precision was lost in the conversion.
const_real_of_string
Obtain a constant for a floating point value parsed from a string.
const_real_of_string_and_size
Obtain a constant for a floating point value parsed from a string with specified length.