[LLVMdev] .so file creation for new passes

ether zhhb etherzhhb at gmail.com
Sun Apr 18 04:14:50 PDT 2010


hi,

On Sun, Apr 18, 2010 at 6:45 PM, Olivier Meurant
<meurant.olivier at gmail.com>wrote:

> Hi !
>
> The Hello world pass sources are in llvm/lib/Transform/Hello/*
>
> If you compile llvm, the Hello library will be compiled too. It's not
> installed but it's in build_directory/Debug/lib/LLVMHello.so (or in
> build_directory/Release/lib/LLVMHello.so)
>
> Olivier.
>
> On Sun, Apr 18, 2010 at 7:35 AM, kalyan ponnala <ponnala.kalyan at gmail.com>wrote:
>
>> Hello,
>>
>> I was going through the LLVM docs "writing an LLVM Pass". Can someone tell
>> me how to create the Hello.so file as it is said in the document. It talks
>> about compiling the Hello pass using gmake. I am a Windows user
>>
>

> (windows 7, cmake, visual studio 9 2008).
>>
> loadable module is not supported in windows, so the project for "Hello"
will not be create and you can not run it as "
http://llvm.org/docs/WritingAnLLVMPass.html#quickstart" describe.


> I cant use cmake here as this hello pass has links to the llvm's solution
>> file, I mean It uses some of the header files from llvm's solution file. Do
>> I need to modify the program or the CMakeLists.txt file.?
>> And where can I find this loadable Hello.so file ?
>>
>> Thanks a lot.
>>
>>
>> --
>> Kalyan Ponnala
>> phone: 8163772059
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100418/21c13c41/attachment.html>


More information about the llvm-dev mailing list