getIntSize: Get sizes of various data types

getIntSizeR Documentation

Get sizes of various data types

Usage

getIntSize(x, ...)
getPointerTypeSize(x)
getPointerSize(datalayout)
getTypeAllocSize(datalayout)

Arguments

x

the LLVM Value or Type to query

datalayout

a DataLayout instance or something that can be coerced to DataLayout.

...

additional parameters for methods or future developments

Value

An integer value (scalar).

Author(s)

DTL

Examples

getIntSize(Int32Type)
getIntSize(Int64Type)
getIntSize(Int8Type)
getIntSize(Int1Type)

ir = IRBuilder()
v = ir$createConstant(3L, Int64Type)
getIntSize(v)

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