Expand description
Functions in this group operate on composite constants.
Functions§
- const_
array2 - Create a
ConstantArray
from values. - const_
named_ struct - Create a non-anonymous
ConstantStruct
from values. - const_
string - Create a
ConstantDataSequential
with string content in the global context. - const_
string_ in_ context2 - Create a
ConstantDataSequential
and initialize it with a string. - const_
struct - Create a
ConstantStruct
in the globalContext
. - const_
struct_ in_ context - Create an anonymous
ConstantStruct
with the specified values. - const_
vector - Create a
ConstantVector
from values. - get_
aggregate_ element - Get element of a constant aggregate
(struct, array or vector)
at the specified index. ReturnsNone
if the index is out of range, or it’s not possible to determine the element (e.g., because the constant is a constant expression.) - get_
as_ string - Get the given constant data sequential as a string.
- is_
constant_ string - Returns true if the specified constant is an array of
i8
.