setMetadata: Functions for working with LLVM metadata

Description Usage Arguments Author(s) See Also

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

1
2
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.

Author(s)

Duncan Temple Lang

See Also

Module Function


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