hello sir i have created LoopPass but now i am facing problem in Registering that pass. I read all the documents & followed the procedure but its giving error. Can you tell me what is the right way to register a pass. I am getting errors like char::ID=0 "ID" is not in the scope {anonymous::PrintLoopPass something like} please help me.. YES SIR IT IS A COMPILE TIME ERROR... Please tell me the exact syntax/ template for registering a pass... I am Using LOOPPASS.cpp which is directly available on llvm site... If there is any error in that file will anybody help me to find the exact LOOPPASS file. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130420/b4b16255/attachment.html>
I think this could help you out: http://llvm.org/docs/WritingAnLLVMPass.html#writing-an-llvm-pass-basiccode -- Cristianno Martins On Sunday, 21 de April de 2013 at 01:39, atul gurale wrote:> hello sir > > i have created LoopPass but now i am facing problem in Registering that pass. > > I read all the documents & followed the procedure but its giving error. > > Can you tell me what is the right way to register a pass. > > I am getting errors like > > char::ID=0 "ID" is not in the scope > > {anonymous::PrintLoopPass something like} > > please help me.. > > YES SIR IT IS A COMPILE TIME ERROR... > > Please tell me the exact syntax/ template for registering a pass... > > I am Using LOOPPASS.cpp which is directly available on llvm site... > > If there is any error in that file will anybody help me to find the exact LOOPPASS file. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130421/d73af9db/attachment.html>
Seemingly Similar Threads
- [LLVMdev] about pass registration
- [LLVMdev] (no subject)
- [LLVMdev] Compilation error while cross compiling LLVM for ARM - the __clear_cache issue - now the __sync_val_compare_and_swap issue - now the internal compiler error issue.
- [LLVMdev] Compilation error while cross compiling LLVM for ARM - the __clear_cache issue - now the __sync_val_compare_and_swap issue
- [LLVMdev] IVUsers (LoopPass) analysis in a ModulePass?