Learn R Programming

Rllvm (version 0.7-0)

getGetElementPtr: Create LLVM instruction to access an element in an array or via pointer

Description

This is a function that allows us to create an instruction to access an element of an array or index a pointer.

Usage

getGetElementPtr(cons, index = c(0L, 0L), inBounds = FALSE, ctx = getContext(cons))

Arguments

cons

the object whose element we want

index

the indices, as a vector of integers or explicitly created LLVM constant objects

inBounds

whether the index is known to be in-bounds

ctx

the context which may be needed to create the LLVM constants, i.e. if index are numbers.

References

LLVM Documentation http://llvm.org/docs/