[llvm-dev] LLVMHello doesn't work - Loadable modules

João Francisco via llvm-dev llvm-dev at lists.llvm.org
Mon May 15 11:52:50 PDT 2017


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-dev
llvm-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>


More information about the llvm-dev mailing list