IRBuilder | R Documentation |
This function and class allow us to create and use an IRBuilder for "easy" creation of instructions as we define a native function and generate code.
IRBuilder(block = getGlobalContext())
createBr(builder, block, check = TRUE)
createBranch(builder, block, check = TRUE)
createCall(builder, fun, ..., .args = list(...), id = character())
createCondBr(builder, cond, true, false)
createGEP(builder, val, index, id = character())
createLoad(builder, val, isVolatile = FALSE, id = character())
createLocalArrayVariable(builder, type, id, size = NULL)
createLocalVariable(builder, type, id, beforeTerminator = FALSE)
createAlloc(builder, type, id, beforeTerminator = FALSE)
createNeg(val, id = character(), block = NULL)
createNot(val, id = character(), block = NULL, builder = NULL)
createRet(builder, value = NULL)
createReturn(builder, value = NULL)
createReturnVoid(builder)
createRetVoid(builder)
createSExt(builder, val, type, id = character())
createStore(builder, val, ptr, volatile = FALSE)
createBitCast(builder, val, type, id = character())
createUIToFP(builder, val, type, id = character())
createSIToFP(builder, val, type, id = character())
createFPToSI(builder, val, type, id = character())
createFPToUI(builder, val, type, id = character())
setInsertPoint(builder, instruction)
createCast(builder, op, from, to, id = character())
createCondBranch(builder, cond, true, false)
createExtractElement(builder, vec, idx)
createFCmp(builder, op, lhs, rhs, id = character())
createFNeg(builder, val, id = character())
createGlobalString(builder, val, id = character())
createInsertElement(builder, vec, elt, idx)
createIntCast(builder, val, type, isSigned = TRUE, id = character())
createSelect(builder, cond, true, false, id = character())
createStructGEP(builder, value, field)
createTargetMachine(target, triple, cpu, features = "", options = list())
createUnreachable(builder, id = character())
createUnwind(builder, id = character())
createZExt(builder, val, type, id = character(), Z = TRUE)
getTrue(ir)
getFalse(ir)
getInsertBlock(builder)
setInsertBlock(builder, block)
setInsertPoint(builder, instruction)
createTrunc(builder, value, type, id = "")
createFPTrunc(builder, value, type, id = "")
debugSetLocation(builder, func, lineNo, colNo)
block |
either a |
builder , ir |
an instance of the |
fun |
the LLVM |
... |
the arguments to the call in |
.args |
a list of the arguments to pass to the actual function call
being generated in the code to |
id |
a human-readable character string giving an identifier to use for identifying the instruction |
cond |
the |
true |
the |
false |
the |
val |
a |
index |
a list of |
isVolatile , volatile |
a logical value indicating whether the LLVM object is to be treated as volatile, i.e. can change due to external commands. |
type |
an LLVM |
size |
the number of elements in this local array variable. |
beforeTerminator |
a logical value that indicates whether the new variable should be inserted before the terminator for the target block. |
value |
the |
ptr |
the |
instruction |
the LLVM |
op |
the |
from |
the |
to |
the |
vec |
the object from which we want to extract a value in |
idx |
the |
lhs |
left hand side |
rhs |
right hand side |
elt |
the specification of the element in the object into which we will sert a value via |
isSigned |
a logical value |
field |
a |
target |
a |
triple |
a string representing the target machine type |
cpu |
a string describing the type of CPU |
features |
a string specifying the features. |
options |
a |
Z |
a logical value |
check |
a logical value that determines whether we check if the branch is to the same block, i.e., if we are creating a branch instruction to a block that is the same block. |
lineNo , colNo |
integers providing the line and column number to add as debugging information. |
func |
the |
Duncan Temple Lang
LLVM Documentation http://llvm.org/docs/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.