These functions write LLVM bitcode to a file or read code from a file into the R session.
writeBitcode(module, to = character())
readBitcode(src, context = NULL)the module
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.
the name of the file from which to read the bitcode, or
alternatively a raw vector containing the bitcode.
an LLVMContext-class object or the default
global context
readCode returns a Module object.
writeCode returns either the raw bitcode data
or none if the code is written to a file.
LLVM documentation