clang-omp / clang

clang with OpenMP 3.1 and some elements of OpenMP 4.0 support
clang-omp.github.com
Other
91 stars 15 forks source link

How to see omp statement in the ast? #51

Closed DreamyJiang closed 9 years ago

DreamyJiang commented 9 years ago

I have installed clang 3.5,but no openmp runtime .Do i have to build openmp runtime if i just want to see omp statement in the ast?I used the command"clang -Xclang -ast-dump -fopenmp sourcefile.c",but failed.What should i do ?Thank you.

alexey-bataev commented 9 years ago

Hi, try "clang -Xclang -ast-dump -Xclang -fopenmp=libiomp5 sourcefile.c" if you're using official clang, not a clang from clang-omp.github.com

Best regards,

Alexey Bataev

Software Engineer Intel Compiler Team Intel Corp.

20.11.2014 10:02, DreamyJiang пишет:

I have installed clang 3.5,but no openmp runtime .Do i have to build openmp runtime if i just want to see omp statement in the ast?I used the command"clang -Xclang -ast-dump -fopenmp sourcefile.c",but failed.What should i do ?Thank you.

— Reply to this email directly or view it on GitHub https://github.com/clang-omp/clang/issues/51.

DreamyJiang commented 9 years ago

Yes,got it!Thank you very much.