Table of Contents

Method Alloca

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

Alloca(ITypeRef, uint?)

Creates an alloca instruction

public Alloca Alloca(ITypeRef typeRef, uint? addressSpace = null)

Parameters

typeRef ITypeRef

Type of the value to allocate

addressSpace uint?

Optional address space, if not specified the default for the data layout is used

Returns

Alloca

Alloca instruction

Alloca(ITypeRef, ConstantInt, uint?)

Creates an alloca instruction for an array of values

[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification = "Specific type required by interop call")]
public Alloca Alloca(ITypeRef typeRef, ConstantInt elements, uint? addressSpace = null)

Parameters

typeRef ITypeRef

Type of the value to allocate

elements ConstantInt

Number of elements to allocate

addressSpace uint?

Optional address space, if not specified the default for the data layout is used

Returns

Alloca

Alloca instruction for the array