Rllvm (version 0.7-0)

writeBitcode: Read and Write LLVM Bitcode

Description

These functions write LLVM bitcode to a file or read code from a file into the R session.

Usage

writeBitcode(module, to = character())
readBitcode(src, context = NULL)

Arguments

module

the module

to

the file to which to write the bitcode. If this is missing or an empty vector (or NA), the bitcode is returned as a raw vector.

src

the name of the file from which to read the bitcode, or alternatively a raw vector containing the bitcode.

context

an LLVMContext-class object or the default global context

Value

readCode returns a Module object.

writeCode returns either the raw bitcode data or none if the code is written to a file.

References

LLVM documentation

See Also

Module