Hi Duncan Sands,<br><br>    As I have understood, GOMP and OpenMP provides support for parallelizing program at source program level. But I am at the IR level. That is I am trying to parallelize the IR code. This is the case of automatic parallelization. The programmer writing the code does not have any idea of parallelization going behind the hood.<br>
<br>So my question is instead of support at the source program level, is the an support at the LLVM IR level to parallelize things ??<br><br><br>Regards,<br>Gokul Ramaswamy H.C<br><br><br><div class="gmail_quote">On Tue, Mar 22, 2011 at 10:08 PM, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr">baldrick@free.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Gokul Ramaswamy,<br>
<div class="im"><br>
>     I am new to LLVM. So please help me out. Here is what I am trying to<br>
> achieve:<br>
><br>
>        If there are 2 statements in a source program -<br>
>           S1;<br>
>           S2;<br>
><br>
>        and I know these is no data and control dependency between them and<br>
> both take large amount of time to execute. So I want to execute them<br>
> in parallel.<br>
><br>
>        So as S1 starts executing, I want to launch another thread and<br>
> execute S2 in parallel.<br>
><br>
>    I need help on how to launch a new thread and schedule some specific<br>
> code on this new thread. I searched for it but did not get satisfiable<br>
> results. Please help me out LLVM Developers.<br>
<br>
</div>llvm-gcc and dragonegg support GOMP (gnu open-mp).  The way it works is that the<br>
front-end lowers parallel constructs into library calls, extra functions and so<br>
on.<br>
<br>
Ciao, Duncan.<br>
<div><div></div><div class="h5"><br>
><br>
> Regards,<br>
> Gokul Ramaswamy H.C<br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br>