Method Call
- Namespace
- Ubiquity.NET.Llvm.Instructions
- Assembly
- Ubiquity.NET.Llvm.dll
Call(Function, params IEnumerable<Value>)
Creates a call function
public CallInstruction Call(Function func, params IEnumerable<Value> args)
Parameters
func
FunctionFunction to call
args
IEnumerable<Value>Arguments to pass to the function
Returns
Exceptions
- ArgumentException
One of the parameters to this function is invalid
Call(Function, IReadOnlyList<Value>)
Creates a call function
public CallInstruction Call(Function func, IReadOnlyList<Value> args)
Parameters
func
FunctionFunction to call
args
IReadOnlyList<Value>Arguments to pass to the function
Returns
Exceptions
- ArgumentException
One of the parameters to this function is invalid
Call(IFunctionType, Value, params IEnumerable<Value>)
Creates a call instruction
public CallInstruction Call(IFunctionType signature, Value target, params IEnumerable<Value> args)
Parameters
signature
IFunctionTypeFunction signature of the target
target
ValueTarget of the function call (Must be invocable as
signature
)args
IEnumerable<Value>Arguments to the function call (Must match types and number of
signature
)
Returns
- CallInstruction
Instruction created
Exceptions
- ArgumentException
One of the parameters to this function is invalid
Call(IFunctionType, Value, IReadOnlyList<Value>)
Creates a call instruction
public CallInstruction Call(IFunctionType signature, Value target, IReadOnlyList<Value> args)
Parameters
signature
IFunctionTypeFunction signature of the target
target
ValueTarget of the function call (Must be invocable as
signature
)args
IReadOnlyList<Value>Arguments to the function call (Must match types and number of
signature
)
Returns
- CallInstruction
Instruction created
Exceptions
- ArgumentException
One of the parameters to this function is invalid