Erdem Derebaşoğlu via llvm-dev
2015-Sep-28 12:10 UTC
[llvm-dev] Registering a MachineFunctionPass
I had INITIALIZE_PASS_BEGIN and INITIALIZE_PASS_END macros. I replaced them with INITIALIZE_PASS but I get the same error. If I understand correctly, I need to modify Passes.h, InitializePasses.h, and Codegen.cpp files to register my pass, right? Another question is: Is it necessary to have the createNoopInserterPass function? Erdem -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150928/8ef7faeb/attachment.html>
Yaron Keren via llvm-dev
2015-Sep-28 14:59 UTC
[llvm-dev] Registering a MachineFunctionPass
Stupid question, was the source file added to CMakeLists.txt? 2015-09-28 15:10 GMT+03:00 Erdem Derebaşoğlu <erdemderebasoglu at hotmail.com>:> I had INITIALIZE_PASS_BEGIN and INITIALIZE_PASS_END macros. I replaced > them with INITIALIZE_PASS but I get the same error. If I understand > correctly, I need to modify Passes.h, InitializePasses.h, and Codegen.cpp > files to register my pass, right? Another question is: Is it necessary to > have the createNoopInserterPass function? > > Erdem >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150928/d537f06a/attachment.html>
Erdem Derebaşoğlu via llvm-dev
2015-Sep-30 17:25 UTC
[llvm-dev] Registering a MachineFunctionPass
Yes. From: yaron.keren at gmail.com Date: Mon, 28 Sep 2015 17:59:09 +0300 Subject: Re: [llvm-dev] Registering a MachineFunctionPass To: erdemderebasoglu at hotmail.com CC: llvm-dev at lists.llvm.org Stupid question, was the source file added to CMakeLists.txt? 2015-09-28 15:10 GMT+03:00 Erdem Derebaşoğlu <erdemderebasoglu at hotmail.com>: I had INITIALIZE_PASS_BEGIN and INITIALIZE_PASS_END macros. I replaced them with INITIALIZE_PASS but I get the same error. If I understand correctly, I need to modify Passes.h, InitializePasses.h, and Codegen.cpp files to register my pass, right? Another question is: Is it necessary to have the createNoopInserterPass function? Erdem -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150930/791dc56e/attachment.html>