João Francisco via llvm-dev
2017-May-11 15:16 UTC
[llvm-dev] LLVMHello doesn't work - Loadable modules
When I build LLVM, the message LLVMHello ignored -- Loadable modules not supported on this platform is shown and the LLVM Hello pass doesn't work. I am using Windows. Is this correct? LLVM Hello pass works only on Linux? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170511/4291ff38/attachment.html>
陳韋任 via llvm-dev
2017-May-15 12:27 UTC
[llvm-dev] LLVMHello doesn't work - Loadable modules
That would be 99% correct, as I believe Windows is not tier 1 supported platform. 2017-05-11 23:16 GMT+08:00 João Francisco via llvm-dev < llvm-dev at lists.llvm.org>:> When I build LLVM, the message LLVMHello ignored -- Loadable modules not > supported on this platform is shown and the LLVM Hello pass doesn't work. I > am using Windows. Is this correct? LLVM Hello pass works only on Linux? > Thanks. > > > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-- Wei-Ren Chen (陳韋任) Homepage: https://people.cs.nctu.edu.tw/~chenwj -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170515/f1ecd658/attachment.html>
Michael Kruse via llvm-dev
2017-May-15 14:09 UTC
[llvm-dev] LLVMHello doesn't work - Loadable modules
Loadable modules are not supported on Windows. The windows platform requires that each dynamically imported symbol also declare the dll it is imported from. In the source, this would be done by annotation every symbol as __declspec(dllimport)/__declspec(dllimport) (or write a.DEF file). This has not been done in LLVM's source. I am not sure about the future of loadable modules. The new pass manager doesn't support that mechanism (yet?). Michael 2017-05-11 17:16 GMT+02:00 João Francisco via llvm-dev <llvm-dev at lists.llvm.org>:> When I build LLVM, the message LLVMHello ignored -- Loadable modules not > supported on this platform is shown and the LLVM Hello pass doesn't work. I > am using Windows. Is this correct? LLVM Hello pass works only on Linux? > Thanks. > > > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >
João Francisco via llvm-dev
2017-May-15 18:52 UTC
[llvm-dev] LLVMHello doesn't work - Loadable modules
Ok. Thank you. But can I use LLVMHello in another way, instead a loadable module? In another words, there is another way to build passes in LLVM whitout using loadable modules? All documents that I saw are using loadable modules. Is it not possible to write a new pass to LLVM in Windows? Thanks. ________________________________ De: meinersbur at googlemail.com <meinersbur at googlemail.com> em nome de Michael Kruse <llvmdev at meinersbur.de> Enviado: segunda-feira, 15 de maio de 2017 11:09 Para: João Francisco Cc: llvm-dev at lists.llvm.org Assunto: Re: [llvm-dev] LLVMHello doesn't work - Loadable modules Loadable modules are not supported on Windows. The windows platform requires that each dynamically imported symbol also declare the dll it is imported from. In the source, this would be done by annotation every symbol as __declspec(dllimport)/__declspec(dllimport) (or write a.DEF file). This has not been done in LLVM's source. I am not sure about the future of loadable modules. The new pass manager doesn't support that mechanism (yet?). Michael 2017-05-11 17:16 GMT+02:00 João Francisco via llvm-dev <llvm-dev at lists.llvm.org>:> When I build LLVM, the message LLVMHello ignored -- Loadable modules not > supported on this platform is shown and the LLVM Hello pass doesn't work. I > am using Windows. Is this correct? LLVM Hello pass works only on Linux? > Thanks. > > > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-devllvm-dev Info Page<http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev> lists.llvm.org To see the collection of prior postings to the list, visit the llvm-dev Archives. Using llvm-dev: To post a message to all the list members, send ...>-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170515/3ee1dc6f/attachment.html>