[llvm-dev] We have a problem about pass.

Andrzej Warzynski via llvm-dev llvm-dev at lists.llvm.org
Sat Mar 28 04:02:29 PDT 2020


As per:

http://llvm.org/docs/WritingAnLLVMPass.html#setting-up-the-build-environment

and Sjoerd's suggestion, "add_llvm_module" should probably be replaced 
with "add_llvm_library".

-Andrzej


On 27/03/2020 17:04, Sjoerd Meijer via llvm-dev wrote:
> I find it difficult to say something about this, but have you e.g. 
> looked at the Hello pass:
> 
> https://github.com/llvm/llvm-project/tree/master/llvm/lib/Transforms/Hello
> 
> A copy-paste of that and some search/replace will probably get you 
> started? Hello.cpp also refers to the guide how to write a pass. Looking 
> at your cmake file, I am wondering if the "add_llvm_module" is correct.
> 
> Cheers.
> 
> ------------------------------------------------------------------------
> *From:* llvm-dev <llvm-dev-bounces at lists.llvm.org> on behalf of 우이정 
> via llvm-dev <llvm-dev at lists.llvm.org>
> *Sent:* 27 March 2020 06:51
> *To:* llvm-dev at lists.llvm.org <llvm-dev at lists.llvm.org>
> *Subject:* [llvm-dev] We have a problem about pass.
> Dear, LLVM developers.
> We appreciate your interest.
> 
> We contacted to solve the problem of setting the pass. Our pass setup 
> process is as follows:
> 
> 1. Add pass subdirectory from CMakeLists.txt in llvm/lib/Tranform
> 2. Change CMakeLists.txt in llvm/lib/Transform/pass
> 3. Run make in llvm/build/lib
> 
> However, the desired pass file was not created. There were no errors in 
> the make process.
> 
> Installed version is LLVM & clang 8.0.0, CMAKE 3.4.3.
> Here is the contents of CMakeLists.txt set in the pass:
> 
>     add_llvm_module ( Filter MODULE
> 
>         Filter.cpp
> 
>         DEPENDS
>         intrinsics_gen
>         PLUGIN_TOOL
>         opt
>         )
> 
> We are looking forward to hearing from you.
> 
> Best regards.
> 
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
> 


More information about the llvm-dev mailing list