[LLVMdev] regarding multicore support for LLVM

Tobias Grosser grosser at fim.uni-passau.de
Tue Aug 3 23:24:15 PDT 2010


On 08/03/2010 09:34 PM, Michael Spencer wrote:
> On Tue, Aug 3, 2010 at 8:08 AM, vijay kumar<vijaygbvv at gmail.com>  wrote:
>> Hi all,
>>           I am new to this LLVM. I went through the documenation of LLVM but
>> I didn't find any support for Multicore. Is there any such possibility where
>> multicore architecture can be exploited using LLVM.
>>
>>
>>
>> Thanks
>> Vijay
>
> It depends on what you mean by "exploited".
>
> LLVM can generate multi-threaded code and the JIT can run multi-threaded code.
>
> There are currently no passes that will automatically parallelize code
> (that I know of).

One possibility that might give you parallel code during the next year 
is polly [1]. It can be used as an interface to tools that do automatic 
parallelization like loopo or pluto. At the moment this is more a 
research tool than usable for daily optimizations, but this hopefully 
changes soon.
The mid term goal is to drive vectorization and openmp parallelism with 
polly.

Furthermore I know of at least one project working on OpenMP support for 
clang, which is unfortunately not public. I tried to ping the guys to 
check if they are interested in giving it back to LLVM.

Tobi

[1] http://wiki.llvm.org/Polyhedral_optimization_framework



More information about the llvm-dev mailing list