/
setMetadata.Rd
66 lines (56 loc) · 1.62 KB
/
setMetadata.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
\name{setMetadata}
\alias{setMetadata}
\alias{getMetadata}
\alias{MDNode-class}
\alias{MDString-class}
\alias{NamedMDNode-class}
\alias{setMetadata,NamedMDNode,ANY-method}
\alias{setMetadata,Module,character-method}
\alias{getMetadata,Module,character-method}
\alias{[,MDNode,missing,ANY-method}
\alias{[,MDNode,numeric,ANY-method}
\alias{[,NamedMDNode,missing,ANY-method}
\alias{[,NamedMDNode,numeric,ANY-method}
\alias{[[,NamedMDNode,numeric,ANY-method}
\alias{[[,MDNode,numeric,ANY-method}
\alias{getNumOperands,MDNode-method}
\alias{getNumOperands,NamedMDNode-method}
\alias{getOperands,MDNode-method}
\alias{getOperands,NamedMDNode-method}
\alias{length,MDNode-method}
\alias{length,NamedMDNode-method}
\title{Functions for working with LLVM metadata}
\description{
These functions allow us to set and get metadata
on a module and to access the resulting
\code{NamedMDNode} and \code{MDNode}
objects representing the metadata in a convenient manner.
}
\usage{
setMetadata(x, id, values, ...)
getMetadata(module, id, ...)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{x,module}{ the \code{Module} object or NamedMDNode on which we
set or get the metadata}
\item{id}{a string, the name/identifier of the metadata. This
identifies which metadata field we want}
\item{values}{a list of values to use as the metadata. These are
coerced to \code{MDNode} objects.}
\item{\dots}{additional arguments for the methods}
}
\value{
}
%\references{}
\author{
Duncan Temple Lang
}
\seealso{
\code{\link{Module}}
\code{\link{Function}}
}
\examples{
}
\keyword{programming}
\concept{metadata}