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

Description Usage Arguments Author(s) References

Description

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

Usage

1
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.

Author(s)

DTL

References

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


doktorschiwago/Rllvm2 documentation built on May 15, 2019, 9:42 a.m.