tarique anwer
2012-Oct-25 19:07 UTC
[LLVMdev] How to include IR parser and optimization passes in my project
Hi, I am a newbie in LLVM. I am very impressed with this forum and appreciate your help and time. I am trying to include llvm IR parser in my codebase, the way I wanna do is generate llvm's shared object (.so) file and use it in my project. So far I haven't been able to generate correct .so's. When I build a debug build with gmake (have llvm and clang in my sandbox), I get the following .so. ./Debug+Asserts/lib/LLVMHello.so ./Debug+Asserts/lib/libLTO.so ./Debug+Asserts/lib/BugpointPasses.so ./Debug+Asserts/lib/libclang.so ./Debug+Asserts/lib/libprofile_rt.so What am I missing ? how can i build the .so's which I can directly use. thanks in advance. regards Tarique
Keith Sheppard
2012-Oct-25 20:10 UTC
[LLVMdev] How to include IR parser and optimization passes in my project
Hi Tarique, You should be able to do: ./configure --enable-shared --enable-jit && make && make install this should result in a shared library for "LLVM-3.1" Best, Keith On Thu, Oct 25, 2012 at 3:07 PM, tarique anwer <tarique.anwer at gmail.com> wrote:> Hi, > > I am a newbie in LLVM. > I am very impressed with this forum and appreciate your help and time. > > I am trying to include llvm IR parser in my codebase, the way I wanna > do is generate llvm's shared object (.so) file and use it in my > project. > So far I haven't been able to generate correct .so's. > > When I build a debug build with gmake (have llvm and clang in my > sandbox), I get the following .so. > ./Debug+Asserts/lib/LLVMHello.so > ./Debug+Asserts/lib/libLTO.so > ./Debug+Asserts/lib/BugpointPasses.so > ./Debug+Asserts/lib/libclang.so > ./Debug+Asserts/lib/libprofile_rt.so > > > What am I missing ? how can i build the .so's which I can directly use. > > > thanks in advance. > > regards > Tarique > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-- keithsheppard.name
Possibly Parallel Threads
- Statically linking against libc++
- [LLVMdev] How can I find the LHS of the function call when traversing the function call
- Standalone C++ application for processing R parser output(SEXP)
- [LLVMdev] LLVM shared libraries and versioning
- [LLVMdev] bugpoint (and possibly others) need to be compiled with -rdynamic