getHostCPUName: Get Information about the Host Machine/Architecture

View source: R/targets.R

getHostCPUNameR Documentation

Get Information about the Host Machine/Architecture

Description

These functions provide information about the machine/architecture and also the data layout for this architecture.

Usage

getHostCPUName()
getHostCPUFeatures()
getDataLayoutString()
isLittleEndian(datalayout)
getABITypeAlignment(datalayout, type)

Arguments

datalayout

a DataLayout instance

type

a Type object

Value

getHostCPUName returns a character string.

getHostCPUFeatures returns a named-logical vector indicating whether each named feature is available.

getDataLayoutString gives the information about the size of the data types on this architecture/machine (possibly virtual).

Author(s)

DTL

Examples

getDataLayoutString()
getHostCPUName()
getHostCPUFeatures()

# Get and set the data layout  generally and on a Module.
dl = getDataLayoutString()
m = Module()
getDataLayout(m)
setDataLayout(m,  dl)
getDataLayout(m)


f = system.file("IR/fib.ll", package = "Rllvm")
fib = Module(f)
getDataLayout(fib)
setDataLayout(fib, getDataLayoutString())
getDataLayout(fib)


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