[LLVMdev] if llvm can translate and generate the function in parallel with multithread

Michael.Kang blackfin.kang at gmail.com
Mon Oct 24 06:25:59 PDT 2011


We try to use llvm to translate and generate the native code in
parallel with multi-thread. But some various
bugs will be triggered. We run the following code in multithread environment:
##################
BasicBlock::Create(_CTX(), "dispatch", cpu->cur_func, 0);
BranchInst::Create(bb_start, label_entry);
cpu->exec_engine->getPointerToFunction
##################3

And cpu variable is stored for every thread.

Thanks
MK

-- 
www.skyeye.org



More information about the llvm-dev mailing list