Learn R Programming

Rllvm (version 0.7-0)

setArgByVal: Set and Query Pass-By-Value Semantics for a Parameter

Description

These functions relate to passing aggregate objects in LLVM calls. In some cases, we pass the structure by value and not by reference. We need to indicate this by declaring specific parameters as pass-by-value (ByVal). LLVM will take care of passing the resulting object by value. These functions allow us to specify a parameter should be marked as pass-by-value and also querying if a parameter/argument is pass-by-value.

Usage

setArgByVal(call, paramNum)
hasByValAttr(x, ...)
byVal(x, ...)

Arguments

call

the CallInst object representing the low-level call or LLVM Function object

paramNum

the index (starting at 1) of the argument of interest

x

the argument in a call.

additional parameters for a generic version of this function

Value

hasByValAttr returns a logical value.

setArgByVal returns NULL

References

LLVM documentation

See Also

createCall