Table of Contents

Method CreateNamedConstantStruct

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

CreateNamedConstantStruct(IContext, IStructType, params Constant[])

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

public static Constant CreateNamedConstantStruct(this IContext self, IStructType type, params Constant[] values)

Parameters

self IContext

Context instance to get the function from

type IStructType

Type of the structure to create

values 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