getGlobalContext: Retrieve the default LLVM context

View source: R/module.R

getGlobalContextR Documentation

Retrieve the default LLVM context

Description

An LLVM context is used to manage data within the LLVM engine. One typically has a single context in a given thread when generating code. This is not typically an issue in R and we can use a single LLVM context. LLVMContext allows us to create a new context and pass it as an argument to different functions to have them use it rather than the global/default context.

Usage

getGlobalContext()
getContext(x, ...)
LLVMContext()

Arguments

x

an LLVM Value or Type object

...

additional arguments for methods

Value

An object of class LLVMContext-class.

Author(s)

Duncan Temple Lang

References

http://llvm.org/docs/doxygen/html/classllvm_1_1LLVMContext.html


duncantl/Rllvm documentation built on Nov. 23, 2023, 4:24 p.m.