Ashwin kumar
2012-Oct-30 21:10 UTC
[LLVMdev] Error when trying to chain two llvm transform passes
Hi, I am trying to chain two transform passes. ** The first pass is a function pass which requires the 'memory dependence pass' . ** The second pass is a function pass which requires the first pass above. The passes run fine when executed alone. I get the following error when I try to run my second pass with the following code added> > void getAnalysisUsage(AnalysisUsage &AU)const{ > AU.setPreservesCFG(); > AU.addRequired<First_Pass>(); > > }Assertion failed: (PI && "Expected required passes to be initialized"), function schedulePass, file PassManager.cpp, line 597. I register the passes using RegisterPass function call. What else should I be doing? I appreciate your help!! regards, Ashwin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121030/ac16e036/attachment.html>
Krzysztof Parzyszek
2012-Oct-30 21:15 UTC
[LLVMdev] Error when trying to chain two llvm transform passes
On 10/30/2012 4:10 PM, Ashwin kumar wrote:> > Assertion failed: (PI && "Expected required passes to be initialized"), > function schedulePass, file PassManager.cpp, line 597. > > > I register the passes using RegisterPass function call. What else should > I be doing?Initializing them. Are you using INITIALIZE_PASS_DEPENDENCY, INITIALIZE_AG_DEPENDENCY, etc? -Krzysztof -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Ashwin kumar
2012-Oct-30 22:35 UTC
[LLVMdev] Error when trying to chain two llvm transform passes
On Oct 30, 2012, at 3:15 PM, Krzysztof Parzyszek <kparzysz at codeaurora.org> wrote:> On 10/30/2012 4:10 PM, Ashwin kumar wrote: >> >> Assertion failed: (PI && "Expected required passes to be initialized"), >> function schedulePass, file PassManager.cpp, line 597. >> >> >> I register the passes using RegisterPass function call. What else should >> I be doing? > Initializing them. Are you using INITIALIZE_PASS_DEPENDENCY, INITIALIZE_AG_DEPENDENCY, etc? >No. I am not sure how they work . I am trying to use the INITIALIZE_PASS macro. I get the following error error: definition or redeclaration of 'initializeMyPassNamePass' not in a namespace enclosing 'llvm' should i add the passname to a header file ? if so where? Thank you!!> -Krzysztof > > -- > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdevregards, Ashwin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121030/d0ac2618/attachment.html>
Seemingly Similar Threads
- [LLVMdev] Error when trying to chain two llvm transform passes
- [LLVMdev] Error when trying to chain two llvm transform passes
- [LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
- [LLVMdev] Adding dependency on MemoryDependenceAnalysis pass to LICM causes opt to get stuck in addPass
- [LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.