Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LLVM OpenMP Support

Tags:

llvm

openmp

I want to know whether there is any function/method in LLVM to add Open-MP constructs in LLVM IR. Does llvm-3.0 still support OpenMP directives?

like image 931
Adarsh Konchady Avatar asked Nov 04 '22 06:11

Adarsh Konchady


1 Answers

OpenMP is a high-level language extension. So, it's C/C++/FORTRAN front-end which should lower the pragma's into necessary runtime calls and code alterations.

I don't see how OpenMP can be "added" to LLVM IR. If you need C/C++/FORTRAN compiler which supports OpenMP pragmas and emit LLVM IR - try dragonegg.

like image 135
Anton Korobeynikov Avatar answered Dec 03 '22 17:12

Anton Korobeynikov