[LLVMdev] Error when trying to chain two llvm transform passes
Ashwin kumar
ashwinkumar18 at gmail.com
Tue Oct 30 15:35:57 PDT 2012
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/llvmdev
regards,
Ashwin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121030/d0ac2618/attachment.html>
More information about the llvm-dev
mailing list