Click or drag to resize
Llvm.NET LogoContextCreateConstantStruct Method (Boolean, Constant)

[This is preliminary documentation and is subject to change.]

Creates a constant structure from a set of values

Namespace:  Llvm.NET
Assembly:  Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntax
C#
public Constant CreateConstantStruct(
	bool packed,
	params Constant[] values
)

Parameters

packed
Type: SystemBoolean
Flag to indicate if the structure is packed and no alignment should be applied to the members
values
Type: Llvm.NET.ValuesConstant
Set of values to use in forming the structure

Return Value

Type: Constant
Newly created Constant
Remarks
Note Note
The actual concrete return type depends on the parameters provided and will be one of the following:
Constant derived typeDescription
ConstantAggregateZeroIf all the member values are zero constants
UndefValueIf all the member values are UndefValue
ConstantStructAll other cases
See Also