Click or drag to resize
Llvm.NET LogoContextCreateNamedConstantStruct Method (IStructType, IEnumerableConstant)

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

Creates a constant instance of a specified structure type from a set of values

Namespace:  Llvm.NET
Assembly:  Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntax
C#
public Constant CreateNamedConstantStruct(
	IStructType type,
	IEnumerable<Constant> values
)

Parameters

type
Type: Llvm.NET.TypesIStructType
Type of the structure to create
values
Type: System.Collections.GenericIEnumerableConstant
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