[llvm-dev] Can I write LLVM pass using add_llvm_library, not add_llvm_loadable_module?

Michael Kruse via llvm-dev llvm-dev at lists.llvm.org
Tue Aug 30 00:58:41 PDT 2016


Polly (polly.llvm.org) creates both, a loadable module, and if built
in the tools/polly directory, by default also linked to opt/clang. You
might look into Polly's source for how it is done (primarily
lib/CMakeLists.txt and lib/Polly.cpp)

Michael

2016-08-27 23:11 GMT+02:00 Donghyeon Lee via llvm-dev <llvm-dev at lists.llvm.org>:
> I'd write new transform pass related to some function optimization, and
> contribute it into LLVM. But Writing an LLVM Pass was described only using
> as dynamic LLVM loadable modules (.so extensions).
>
> I want to write LLVM pass using add_llvm_library, not
> add_llvm_loadable_module in CMakeLists.txt. Can I do it? If yes, how?
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>


More information about the llvm-dev mailing list