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
typeRefITypeRefType of the value to allocate
addressSpaceuint?Optional address space, if not specified the default for the data layout is used
Returns
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
typeRefITypeRefType of the value to allocate
elementsConstantIntNumber of elements to allocate
addressSpaceuint?Optional address space, if not specified the default for the data layout is used