library(Rllvm)
m = Module()
dl = getDataLayout(m, TRUE)
isLittleEndian(dl)
getPointerSize(dl)
getStackAlignment(dl)
getTypeAllocSize(dl, Int32Type)
getTypeAllocSize(dl, DoubleType)
getABITypeAlignment(dl, Int32Type)
getABITypeAlignment(dl, DoubleType)
ty = structType(list(a = Int32Type, b = DoubleType, c = getIntegerType(2)), "bob")
# Fail - seq fault. Okay for LLVM 11.0 (Dec 25, 2020)
getABITypeAlignment(dl, ty)
# Fail. Okay for LLVM 11.0 (Dec 25, 2020)
getTypeAllocSize(dl, ty)
# Fail - Okay for LLVM 11.0 (Dec 25, 2020)
getPointerTypeSize(dl, pointerType(Int32Type))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.