Expand description
Functions in this group operate on composite constants.
Functions§
- const_
array2 - Create a
ConstantArrayfrom values. - const_
named_ struct - Create a non-anonymous
ConstantStructfrom values. - const_
string - Create a
ConstantDataSequentialwith string content in the global context. - const_
string_ in_ context2 - Create a
ConstantDataSequentialand initialize it with a string. - const_
struct - Create a
ConstantStructin the globalContext. - const_
struct_ in_ context - Create an anonymous
ConstantStructwith the specified values. - const_
vector - Create a
ConstantVectorfrom values. - get_
aggregate_ element - Get element of a constant aggregate
(struct, array or vector)at the specified index. ReturnsNoneif 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.