Hi all: I am working on a project using llvm and we need to deal with multithreaded applications. I wanted to know if there was a C front end for llvm that could parse multithreaded applications? I tried llvm-gcc (4.2) and could not get it to work. Is there an extra parameter that I need to pass or something ? Thanks a lot for your help. Regards -- -- Aparna Graduate Student Department of Electrical and Computer Engineering University of Maryland, College Park -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090203/ed882c36/attachment.html>
aparna kotha wrote:> Hi all: > > I am working on a project using llvm and we need to deal with > multithreaded applications. I wanted to know if there was a C front end > for llvm that could parse multithreaded applications? I tried llvm-gcc > (4.2) and could not get it to work. Is there an extra parameter that I > need to pass or something ?Just the standard flags should work. We define -D_REENTRANT during compilation and -lpthread during linking. We also have no problem with OpenMP (-fopenmp -lgomp) if that's what you are using. You'll need to adjust this for whatever threading package you use. Luke> > > > Thanks a lot for your help. > > > > Regards > > -- > -- Aparna > > Graduate Student > Department of Electrical and Computer Engineering > University of Maryland, College Park > > > ------------------------------------------------------------------------ > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
On Tue, Feb 3, 2009 at 12:33 PM, aparna kotha <kotha.aparna at gmail.com> wrote:> Hi all: > > I am working on a project using llvm and we need to deal with multithreaded > applications. I wanted to know if there was a C front end for llvm that > could parse multithreaded applications? I tried llvm-gcc (4.2) and could not > get it to work. Is there an extra parameter that I need to pass or something > ? >What type of multithreaded language are you using? If it's something other than C/C++/ObjC using MPI, pthreads, or OpenMP, then you'll have to find a front-end that will parse your language and then add support to it to emit LLVM. -bw
I am using pthreads. I was also wondering what will the llvm IR be for pthreads ? On Tue, Feb 3, 2009 at 3:51 PM, Bill Wendling <isanbard at gmail.com> wrote:> On Tue, Feb 3, 2009 at 12:33 PM, aparna kotha <kotha.aparna at gmail.com> > wrote: > > Hi all: > > > > I am working on a project using llvm and we need to deal with > multithreaded > > applications. I wanted to know if there was a C front end for llvm that > > could parse multithreaded applications? I tried llvm-gcc (4.2) and could > not > > get it to work. Is there an extra parameter that I need to pass or > something > > ? > > > What type of multithreaded language are you using? If it's something > other than C/C++/ObjC using MPI, pthreads, or OpenMP, then you'll have > to find a front-end that will parse your language and then add support > to it to emit LLVM. > > -bw > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-- -- Aparna -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090203/82fb4d39/attachment.html>