Table of Contents

Method CreateConstantStruct

Namespace
Ubiquity.NET.Llvm
Assembly
Ubiquity.NET.Llvm.dll

CreateConstantStruct(bool, params IEnumerable<Constant>)

Creates a constant structure from a set of values

Constant CreateConstantStruct(bool packed, params IEnumerable<Constant> values)

Parameters

packed bool

Flag to indicate if the structure is packed and no alignment should be applied to the members

values IEnumerable<Constant>

Set of values to use in forming the structure

Returns

Constant

Newly created Constant

Remarks

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