 | ContextCreateConstantStruct 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
Syntaxpublic 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:
ConstantNewly created
Constant
Remarks Note |
---|
The actual concrete return type depends on the parameters provided and will be one of the following:
Constant derived type | Description |
---|
ConstantAggregateZero | If all the member values are zero constants | UndefValue | If all the member values are UndefValue | ConstantStruct | All other cases |
|
See Also