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

View source: R/constants.R

getGetElementPtrR Documentation

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.

Author(s)

DTL

References

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


duncantl/Rllvm documentation built on April 23, 2024, 6:14 p.m.