Rllvm (version 0.7-0)

setMetadata: Functions for working with LLVM metadata

Description

These functions allow us to set and get metadata on a module and to access the resulting NamedMDNode and MDNode objects representing the metadata in a convenient manner.

Usage

setMetadata(x, id, values, ...)
getMetadata(module, id, ...)

Arguments

x,module

the Module object or NamedMDNode on which we set or get the metadata

id

a string, the name/identifier of the metadata. This identifies which metadata field we want

values

a list of values to use as the metadata. These are coerced to MDNode objects.

additional arguments for the methods. create = TRUE/FALSE controls whether we create the metadata node regardless of whether it already exists.

See Also

Module Function