typeFuns: Miscellaneous functions for LLVM Types

arrayTypeR Documentation

Miscellaneous functions for LLVM Types

Description

These are some of the functions that work with LLVM Type descriptions.

Usage

arrayType(elType, num)
getIntegerBitWidth(x, ...)
functionType(returnType, argTypes, varArgs = FALSE)
getAllocatedType(x)
getSourceElementType(x)
getValueType(x)

Arguments

x

the type, an Integer type for getIntegerBitWidth, an AllocaInst for getAllocatedType, a GetElementPtrInst for getSourceElementType and a GlobalVariable for getValueType.

elType

the type of the element

num

the number of elements in the array

...

additional parameters for methds

returnType

the type for the return value of the function/routine type

argTypes

a list of types for the parameters of the function/routine type

varArgs

a logical value indicating if the function/routine type has a variable number of arguments, i.e. ...

Author(s)

DTL

References

LLVM Documentation


duncantl/Rllvm documentation built on Aug. 16, 2024, 2:33 a.m.