Table of Contents

Method CreateFunction

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

CreateFunction(IModule, IDIBuilder, LazyEncodedString, bool, IDebugType<ITypeRef, DIType>, params IDebugType<ITypeRef, DIType>[])

Creates a function

public static Function CreateFunction(this IModule self, IDIBuilder diBuilder, LazyEncodedString name, bool isVarArg, IDebugType<ITypeRef, DIType> returnType, params IDebugType<ITypeRef, DIType>[] argumentTypes)

Parameters

self IModule

Modules to use for creating the function

diBuilder IDIBuilder

DIBuilder for creation of debug information

name LazyEncodedString

Name of the function

isVarArg bool

Flag indicating if the function supports a variadic argument list

returnType IDebugType<ITypeRef, DIType>

Return type of the function

argumentTypes IDebugType<ITypeRef, DIType>[]

Arguments for the function

Returns

Function

Function, matching the signature specified. This may be a previously declared or defined function or a new function if none matching the name and signature is already present.