clone | R Documentation |
These are some of the generic functions for LLVM
clone(x, ...)
eraseFromParent(x, delete = TRUE, ...)
getCalledFunction(obj, ...)
getDataLayout(from, asRef = FALSE, ...)
getDescription(x, ...)
getElementTypes(x, ...)
getModule(obj, ...)
getNumElements(x, ...)
getParent(x, ...)
getReturnType(obj, ...)
hasMetadata(x, ...)
hasMetadataOtherThanDebugLoc(x, ...)
isArithmeticShift(x, ...)
isAssociative(x, ...)
isBinaryOp(x, ...)
isCommutative(x, ...)
isLogicalShift(x, ...)
isSafeToSpeculativelyExecute(x, ...)
isShift(x, ...)
isTerminator(x, ...)
mayHaveSideEffects(x, ...)
mayReadFromMemory(x, ...)
mayThrow(x, ...)
mayWriteToMemory(x, ...)
setDataLayout(x, value, ...)
x , obj |
the object to be queried or whose data layout is to be
set. Currently, there are only methods for |
... |
additional arguments for methods |
delete |
a logical value indicating whether to not only remove from the parent but also destroy the object |
from |
the object whose data layout will be set |
value |
a character string describing the data layout. See the
LLVM documentation for the |
asRef |
scalar logical indicating whether we want a reference to the DataLayout object or just a description of it. |
getReturnType
identifies the type of the return value in the
Function
definition/declaration. However, it may not correspond
to what you might expect.
LLVM
may adapat a C/C++
routine that returns a structure
or a C++
object directly (not by reference) to instead return
void and add the address of
such an object as the first parameter.
This will have the sret
attribute set on the corresponding
parameter. See hasStructRet
.
Duncan Temple Lang
LLVM Documentation http://llvm.org/docs/
hasStructRet
dl = getDataLayoutString()
m = Module()
getDataLayout(m)
setDataLayout(m, dl)
getDataLayout(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.