[LLVMdev] How to include IR parser and optimization passes in my project

Keith Sheppard keithshep at gmail.com
Thu Oct 25 13:10:51 PDT 2012

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


More information about the llvm-dev mailing list