inferParamTypes: Infer the Element Type of a Pointer Type

View source: R/inferPointerElType.R

inferParamTypesR Documentation

Infer the Element Type of a Pointer Type

Description

These functions help to infer the element type of a Pointer type. With LLVM now using opaque pointer types, this inference is now necessary when we are analyzing LLVM IR code that we did not create and so do not explicitly know the element types of the pointer types. These functions infer the specific types of a routine's parameters and return type, when they have pointer types.

Usage

inferParamTypes(fun, params = getParameters(fun))
inferReturnPointerType(fun, .routines = NULL, .prevRetRoutines = NULL, verbose = FALSE)
inferRoutinePointerTypes(fun)

Arguments

fun

the LLVM routine

params

the list of parameter objects

.routines

a list of other routine/LLVM Function objects that fun may call and which we can analyze to infer the parameter and return types.

.prevRetRoutines
verbose

a logical value that controls whether diagnostic messages are displayed on the console while the function(s) perform the inference computations

Value

A list of the possible types.

Author(s)

Duncan Temple Lang


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