isType: Predicate functions for testing a type

View source: R/types.R

isArrayTypeR Documentation

Predicate functions for testing a type

Description

These functions allow us to determine if an object representing an LLVM type has particular characteristics or such as being a pointer type or an array.

sameType determines if two LLVM types are the same, ignoring any R structure and classes.

Usage

sameType(a, b)
isArrayType(type)
isDoubleType(type)
isFloatType(type)
isFP128Type(type)
isFunctionType(type)
isIntegerType(type)
isLabelType(type)
isMetadataType(type)
isOpaqueType(type)
isPointerType(type)
isPPC_FP128Type(type)
isStructType(type)
isVectorType(type)
isVoidType(type)
isX86_FP80Type(type)
isStringType(ty, asIs = FALSE)

Arguments

type, ty

the type object, inheriting from them class Type

a, b

the two Type objects to be compared.

asIs

a logical value that controls whether we go through the different combinations of looking at the ref slot of each and compare external pointers within S4 objects

Value

a logical value indicating whether the type is consistent with the queried type given in the name of the function.

Author(s)

Duncan Temple Lang


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