Table of Contents

Method GetFunctionType

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

GetFunctionType(IContext, ITypeRef, params ITypeRef[])

Get an LLVM Function type (e.g. signature)

public static IFunctionType GetFunctionType(this IContext self, ITypeRef returnType, params ITypeRef[] args)

Parameters

self IContext

Instance of context to get a function type

returnType ITypeRef

Return type of the function

args ITypeRef[]

Potentially empty set of function argument types

Returns

IFunctionType

Signature type for the specified signature

GetFunctionType(IContext, bool, ITypeRef, params ITypeRef[])

Get an LLVM Function type (e.g. signature)

public static IFunctionType GetFunctionType(this IContext self, bool isVarArgs, ITypeRef returnType, params ITypeRef[] args)

Parameters

self IContext

Context instance to get the function from

isVarArgs bool

Flag to indicate if the method supports C/C++ style VarArgs

returnType ITypeRef

Return type of the function

args ITypeRef[]

Potentially empty set of function argument types

Returns

IFunctionType

Signature type for the specified signature