[LLVMdev] [Fwd: Fwd: LLVM and threading]
sabre at nondot.org
Thu Nov 1 20:35:55 PDT 2007
On Nov 1, 2007, at 7:59 PM, John Criswell wrote:
> Dear All,
> Here's a question Vikram and I received. Is the LLVM JIT thread safe?
Yes it is (it acquires a lock before jit'ing). Note that LLVM itself
is not thread-safe, so if your main thread is generating llvm IR
dynamically, you have to take the JIT lock to prevent the JIT from
hurting any generator of IR.
More information about the llvm-dev