[LLVMdev] "Multithreaded LLVM" in "Writing an LLVM Pass"

陳韋任 (Wei-Ren Chen) chenwj at iis.sinica.edu.tw
Tue Oct 9 00:55:18 PDT 2012


On Tue, Oct 09, 2012 at 08:35:57AM +0100, David Chisnall wrote:
> On 8 Oct 2012, at 18:26, Lu Mitnick wrote:
> 
> > 1. Multiple threads handle different modules (Thread : Module = 1 : 1)
> > or
> 
> For ModulePasses, yes.
> 
> > 2. Multiple threads handle one module (Thread : Module = N : 1)
> 
> For FunctionPasses, yes.
> 
> Note that this part is in the future work section, meaning that no one has done it yet.  FunctionPasses are independent of each other when running on different functions, so it would be fairly simple to use something like libdispatch to optimise every function within a module independently.  FunctionPasses are not (in theory) allowed to modify any module state outside of a function, so they should be able to be run concurrently.  

  No one has done it yet? From [1], it seems parallel JIT is workable.
Or I just misread the question?

Regards,
chenwj

[1] http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-January/046901.html
-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj




More information about the llvm-dev mailing list