Skip to content

Commit

Permalink
new documentation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
duncantl committed Jul 8, 2013
1 parent bf21564 commit 5cc4c18
Show file tree
Hide file tree
Showing 9 changed files with 202 additions and 3 deletions.
3 changes: 3 additions & 0 deletions man/Block.Rd
Expand Up @@ -14,6 +14,9 @@
\alias{[,BasicBlock,numeric,ANY-method}
\alias{[[,BasicBlock,numeric,ANY-method}
\alias{sapply,BasicBlock-method}
\alias{length,BasicBlock-method}

\alias{removeFromParent,BasicBlock-method}



Expand Down
5 changes: 5 additions & 0 deletions man/Function.Rd
Expand Up @@ -40,6 +40,10 @@
\alias{coerce,Function,function-method}
\alias{[[,Function,numeric,ANY-method}

\alias{getParent,Function-method}

\alias{LLVMAttributes}

\title{Create an LLVM function/routine}
\description{
This function and class creates a template
Expand All @@ -51,6 +55,7 @@
}
\usage{
Function(name, retType, paramTypes = list(), module = Module(), varArgs = FALSE, ...)
getParent(x, ...)
}
\arguments{
\item{name}{a string giving the name of the function}
Expand Down
16 changes: 16 additions & 0 deletions man/InitializeNativeTarget.Rd
Expand Up @@ -5,6 +5,14 @@
\alias{llvmStopMultiThreaded}
\alias{llvmVersion}

\alias{InitializeAllAsmParsers}
\alias{InitializeAllAsmPrinters}
\alias{InitializeAllTargets}
\alias{InitializeAllTargetMCs}

\alias{InitializeNVPTXTarget}
\alias{InitializeCppBackendTarget}

\alias{getLLVMTargets}

\title{Initialize the LLVM engine for JIT operations}
Expand All @@ -21,6 +29,14 @@ llvmStartMultiThreaded()
llvmStopMultiThreaded()
llvmVersion()
getLLVMTargets()
InitalizeAllAsmParsers()
InitalizeAllAsmPrinters()
InitalizeAllTargets()
InitalizeAllTargetMCs()
InitializeNVPTXTarget()
InitializeCppBackendTarget()
}
%- maybe also 'usage' for other objects documented here.
\value{
Expand Down
15 changes: 15 additions & 0 deletions man/InstructionFuns.Rd
Expand Up @@ -31,8 +31,23 @@

\alias{getNumOperands}
\alias{getOperand}
\alias{getOperands}
\alias{getNumOperands,Instruction-method}
\alias{getOperand,Instruction-method}
\alias{getOperands,Instruction-method}
\alias{[[,Instruction,numeric,ANY-method}

\alias{length,Instruction-method}

\alias{eraseFromParent,Instruction-method}
\alias{removeFromParent,Instruction-method}

\alias{removeFromParent}

\alias{insertBefore}
\alias{insertAfter}
\alias{moveBefore}

%- Also NEED an '\alias' for EACH other topic documented here.
\title{Miscellaneous functions operating on LLVM Instruction objects}
\description{
Expand Down
15 changes: 12 additions & 3 deletions man/TargetFuns.Rd
Expand Up @@ -2,6 +2,7 @@
\alias{targetLibraryInfo}
\alias{setTargetTriple}
\alias{getTargetTriple}
\alias{getDefaultTargetTriple}
\alias{lookupTarget}

\title{Functions related to different targets}
Expand All @@ -12,21 +13,29 @@
targetLibraryInfo(triple)
setTargetTriple(m, str)
getTargetTriple(m)
lookupTarget(triple)
lookupTarget(triple, arch = character())
getDefaultTargetTriple()
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{triple,str}{the triple string describing the target information}
\item{m}{module object on which to get/set the triple}
\item{arch}{a string identifying the architecture of the target, e.g. \code{"nvptx64"}}
}
%\value{}
\references{
LLVM Documentation
}
\author{
DTL
Duncan Temple Lang
}
%\seealso{}
%\examples{}
\examples{
tri = getDefaultTargetTriple()
print(tri)

m = Module()
setTargetTriple(tri)
}
\keyword{programming}

45 changes: 45 additions & 0 deletions man/formattedRawOstream.Rd
@@ -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}
37 changes: 37 additions & 0 deletions man/getCallingConv.Rd
@@ -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}
3 changes: 3 additions & 0 deletions man/getPassManager.Rd
Expand Up @@ -3,6 +3,9 @@
\alias{passManager}
\alias{addPass}
\alias{FunctionPassManager-class}
\alias{run,PassManager-method}
\alias{addAnalysisPasses}
\alias{addPassesToEmitFile}

\title{Create an LLVM pass manager}
\description{
Expand Down
66 changes: 66 additions & 0 deletions man/setMetadata.Rd
@@ -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}

0 comments on commit 5cc4c18

Please sign in to comment.