<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 13, 2015 at 12:28 PM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 13 May 2015 at 17:53, Reid Kleckner <<a href="mailto:rnk@google.com">rnk@google.com</a>> wrote:<br>
> If you want the AST, you want to use libTooling or libclang to<br>
> programmatically examine the AST. The -ast-dump flag will print the AST for<br>
> debugging purposes, but it cannot be deserialized.<br>
<br>
</span>Hi Reid,<br>
<br>
Apologies for the lack of context. I sent him here. :)<br>
<br>
Basically, he wants something similar to OpenMP (parallel loops,<br>
separate threads, multi-core CPUs) but without having to specify<br>
pragmas and command line options.<br>
<br>
My assumption is that, doing it at the IR level, it's already too<br>
late, because there's a lot of OpenMP that is Clang-based. So, if he<br>
could add a pass (possibly out-of-tree), </blockquote><div><br></div><div>There isn't really a notion of "pass" on the clang AST; the result of parsing is considered immutable.</div><div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">that could identify loops and<br>
mark them with OpenMP pragmas (as they are, when the pragmas exist in<br>
the source), then he could benefit from OpenMP without requiring the<br>
users to add the pragmas to their sources or add command-line options<br>
to their Makefiles.<br>
<br>
In theory, if the toolchain he distributes has lib*omp in the right<br>
place, it should be completely transparent.<br>
<br>
Are my assumptions in the right track?<br>
<br>
cheers,<br>
--renato<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div></div>