setOpaquePointers: Enable non-opaque pointers in an LLVM Context

View source: R/module.R

setOpaquePointersR Documentation

Enable non-opaque pointers in an LLVM Context

Description

This allows a user to set whether an LLVM context allows non-opaque pointers, i.e., so we can query the element type of a pointer type. By default, recent versions of LLVM use only opaque pointers, by default, but some versions allow one to allow non-opaque pointers.

As of LLVM version 17, this option doesn't work and only opaque pointers are possible.

Usage

setOpaquePointers(val = FALSE, ctxt = getGlobalContext())

Arguments

val

a logical value with FALSE allowing non-opaque pointer types if this version of LLVM allows it.

ctxt

the LLVMContext object in which to set this option

Value

A logical value.

Author(s)

Duncan Temple Lang


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