[cfe-dev] clang dump openmp node

Bataev, Alexey a.bataev at hotmail.com
Mon Dec 1 20:47:04 PST 2014


Yes, the problem is that there is no dump support for CapturedStmt. I'll 
fix it ASAP.

Best regards,
Alexey Bataev
=============
Software Engineer
Intel Compiler Team

02.12.2014 4:27, Xiaohui Chen пишет:
> 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 
>> <mailto: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
>>





More information about the cfe-dev mailing list