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

Description Usage Arguments Value Author(s) References See Also

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

1
2
3

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

Author(s)

Duncan Temple Lang

References

LLVM documentation

See Also

createCall


doktorschiwago/Rllvm2 documentation built on May 15, 2019, 9:42 a.m.