Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
202 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
\name{formattedRawOstream} | ||
\alias{formattedRawOstream} | ||
\alias{coerce,raw_string_ostream,character-method} | ||
\alias{stringRawOstream} | ||
\alias{rawFDOstream} | ||
|
||
\alias{raw_string_ostream-class} | ||
\alias{formatted_raw_ostream-class} | ||
\alias{raw_string_ostream-class} | ||
|
||
\title{Create and access LLVM output streams} | ||
\description{ | ||
|
||
} | ||
\usage{ | ||
formattedRawOstream(stream, delete = FALSE, finalize = TRUE) | ||
stringRawOstream(value = "") | ||
rawFDOstream(filename) | ||
} | ||
|
||
\arguments{ | ||
\item{stream}{the raw ostream which } | ||
\item{delete}{a logical value indicating whether to release/garbage | ||
collect the raw stream \code{stream}.} | ||
\item{finalize}{a logical value to indicate whether to register a | ||
finalizer for the stream} | ||
\item{value}{an initial string, typically empty} | ||
\item{filename}{the name of the file to which the contents should be written} | ||
} | ||
\value{ | ||
|
||
} | ||
\references{} | ||
\author{ | ||
Duncan Temple Lang | ||
} | ||
|
||
\seealso{ | ||
\code{\link{PassManager}} | ||
} | ||
\examples{ | ||
|
||
} | ||
\keyword{programming} | ||
\keyword{IO} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
\name{getCallingConv} | ||
\alias{getCallingConv} | ||
\alias{setCallingConv} | ||
\alias{coerce,character,CallingConv-method} | ||
\alias{coerce,integer,CallingConv-method} | ||
\alias{coerce,numeric,CallingConv-method} | ||
|
||
\title{Get and set the calling convention for a routine} | ||
\description{ | ||
These functions allow us to specify and query the calling convention | ||
of an LLVM routine. | ||
} | ||
\usage{ | ||
getCallingConv(fun) | ||
} | ||
\arguments{ | ||
\item{fun}{the LLVM \code{Function} object} | ||
} | ||
\value{ | ||
\code{getCallingConv} returns an enumerated constant | ||
identifying the specific calling convention. | ||
} | ||
\references{ | ||
LLVM documentation | ||
} | ||
\author{ | ||
Duncan Temple Lang | ||
} | ||
|
||
\seealso{ | ||
\code{\link{Function}} | ||
} | ||
\examples{ | ||
f = Function("foo", Int32Type, list(x = Int32Type, y = DoubleType)) | ||
getCallingConv(f) | ||
} | ||
\keyword{programming} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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} |