[LLVMdev] LLVM multithreading
Renato Golin
renato.golin at linaro.org
Fri May 30 03:28:35 PDT 2014
On 30 May 2014 11:01, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote:
> I think your question is a result of misunderstanding the nature of LLVM. It is not a virtual machine, it is an abstract machine and a set of tools implementing compilers for that abstract machine. You don't run the bitcode (well, you can interpret it, but you don't usually), you compile the bitcode and then run the resulting code. If you want to run the same code on all threads, then you just use the LLVM [MC]JIT to compile it once and then you call the generated functions from different threads.
Try VMKit:
http://vmkit.llvm.org/
They may have answered your question already.
--renato
More information about the llvm-dev
mailing list