setMetadata: Functions for working with LLVM metadata

setMetadataR Documentation

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.

The DI classes are for debugging information. They are used in the DIBuilder.

Usage

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

Arguments

x

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


duncantl/Rllvm documentation built on April 23, 2024, 6:14 p.m.