[cfe-dev] clang dump openmp node

Xiaohui Chen xchen422 at uwo.ca
Mon Dec 1 17:27:59 PST 2014


Hi Alexey:

do you have any idea about this issue?

On 12/01/14, Nikola Smiljanic  <popizdeh at gmail.com> wrote:
> AFAIK OpenMP is still work in progress... Hope Alexey knows more about this.
> 
> On Tue, Dec 2, 2014 at 5:26 AM, Xiaohui Chen <xchen422 at uwo.ca> wrote:
> 
> > hi  Nikola:
> > i can not dump the openmp node, am i missing some options?
> > for example:
> > 
> > int main()
> > {
> > int k=90, l=0;
> > #pragma omp parallel private(k, l)
> > {
> >  #pragma omp for
> >  for(int kk=0; kk<90;kk++)
> >  {
> >  l;
> >  }
> > }
> > }
> > 
> > I use the following command to compile:
> > 
> > clang++ -Xclang -ast-dump -Xclang -fopenmp=libiomp5 t.cpp
> > 
> > output is :
> > 
> > `-OMPParallelDirective 0x6febf50 <line:32:9, col:35>
> >  `-CapturedStmt 0x6febf10 <line:33:1, line:39:1>
> >  `-DeclRefExpr 0x6feb7f8 <line:37:3> 'int' lvalue Var 0x6fe8590 'l' 'int'
> > 
> > it did not say anything about the for loop and the private clause.
> > 
> > Sincerely
> > xiaohui
> 
> 
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141201/fe3f572c/attachment.html>


More information about the cfe-dev mailing list