getLogicalConstant: Create constants in native code

Description Usage Arguments Author(s) References

Description

These functions allow us to create constants in LLVM code. There are functions for the different common types.

Usage

1
2
3
4
5
6
7
8
createLogicalConstant(val, context = getGlobalContext())
createConstant(builder, val, type = NULL,
               context = if(!missing(builder)) 
                        as(builder, "LLVMContext") 
                     else
                        getGlobalContext())
createIntegerConstant(val, context = getGlobalContext(), ...)
createFloatingPointConstant(val, context, type)

Arguments

val

the value of the constant. This can be a literal in R

context

the LLVMContext

type

the type for this constant. This should be an object of class Value-class.

builder

the IRBuilder object

...

additional parameters for the specific methods

Author(s)

Duncan Temple Lang

References

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


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