search for: yourpass

Displaying 20 results from an estimated 35 matches for "yourpass".

2018 Apr 14
0
Error: Verify if there is a pass dependency cycle
Hi, You need to initialize your pass with: INITIALIZE_PASS_BEGIN(YourPass, "your-pass", "Your Pass", /*cfgonly=*/false, /*analysis=*/false) INITIALIZE_PASS_DEPENDENCY(PostDominatorTreeWrapperPass) INITIALIZE_PASS_END(YourPass, "your-pass", "Your Pass", /*cfgonly=*/false, /*analysis=*/false) So as to both register your pass, and ha...
2018 Apr 12
2
Error: Verify if there is a pass dependency cycle
Hi everyone, I write a new FunctionPass which wants to use pass PostDominatorTree, so I implement the next function: void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<PostDominatorTree>(); AU.setPreservesAll(); } Then I get PDT through the next statement: PostDominatorTree *PDT = &getAnalysis<PostDominatorTree>(); My code can be successfully
2010 May 08
3
[LLVMdev] [Fwd: Error while running my pass with opt]
Hi, you need something like this in your pass: void YourPass::getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<DominatorTree>(); } because you need to specify which analysis you are using. Tobi
2010 May 08
0
[LLVMdev] [Fwd: Error while running my pass with opt]
...n `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed. What can possibly cause this. Any ideas will also help. Tobias Grosser wrote: > Hi, > > you need something like this in your pass: > > void YourPass::getAnalysisUsage(AnalysisUsage &AU) const { > AU.addRequired<DominatorTree>(); > } > > because you need to specify which analysis you are using. > > Tobi
2010 May 09
2
[LLVMdev] [Fwd: Error while running my pass with opt]
...ed on an analysis that was not " "'required' by > pass!"' failed. > > What can possibly cause this. Any ideas will also help. > > Tobias Grosser wrote: > >> Hi, >> >> you need something like this in your pass: >> >> void YourPass::getAnalysisUsage(AnalysisUsage &AU) const { >> AU.addRequired<DominatorTree>(); >> } >> >> because you need to specify which analysis you are using. >> >> Tobi >> > > _______________________________________________ > LLVM Develope...
2011 Nov 08
4
[LLVMdev] loadable passes with dependencies?
...gistry(); >>                initializeHelloPass(Registry); >>        } >> }; >> >> static StaticInitializer InitializeEverything; > > Looks good to me. Are you sure you call getAnalysis only for the > DominatorTree? What is the output of "grep getAnalysis YourPass.cpp"? > > Cheers > Tobi >
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
...PassRegistry&Registry = *PassRegistry::getPassRegistry(); > initializeHelloPass(Registry); > } > }; > > static StaticInitializer InitializeEverything; Looks good to me. Are you sure you call getAnalysis only for the DominatorTree? What is the output of "grep getAnalysis YourPass.cpp"? Cheers Tobi
2004 Nov 26
0
[LLVMdev] Running specific passes
On Fri, 26 Nov 2004, Vladimir Prus wrote: > in the implementation of some analysis, I need to change the program and then > invoke Mem2Reg pass. That pass, in turn, requires other analysis, so I must Usually you want to do this at a higher level, why not just use 'opt -yourpass -mem2reg'? Alternatively, if you don't want to do that, you can build mem2reg into your pass if it works better. To do this, your pass needs to 'addRequired' DominatorTree and DominatorFrontier, then use the interfaces exposed through include/llvm/Transforms/Utils/PromoteMemToReg....
2004 Dec 21
0
[LLVMdev] Help with code
On Tue, Dec 21, 2004 at 03:53:47PM -0700, Sriraman Tallam wrote: > Constant *strcon==ConstantArray::get("Value : %d\n"); OK, then what's the assertion? You can also see the resulting module by using -disable-verify: $ opt -yourpass -disable-verify < file.bc | llvm-dis You may see what the problem is by looking at the LLVM assembly. -- Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu
2010 May 10
2
[LLVMdev] [Fwd: Error while running my pass with opt]
...t;>> >>> What can possibly cause this. Any ideas will also help. >>> >>> Tobias Grosser wrote: >>> >>> >>>> Hi, >>>> >>>> you need something like this in your pass: >>>> >>>> void YourPass::getAnalysisUsage(AnalysisUsage &AU) const { >>>> AU.addRequired<DominatorTree>(); >>>> } >>>> >>>> because you need to specify which analysis you are using. >>>> >>>> Tobi >>>> >>>>...
2004 Nov 29
2
[LLVMdev] Running specific passes
...2004, Vladimir Prus wrote: > > in the implementation of some analysis, I need to change the program and > > then invoke Mem2Reg pass. That pass, in turn, requires other analysis, so > > I must > > Usually you want to do this at a higher level, why not just use 'opt > -yourpass -mem2reg'? Because my pass must first modify the code, then run mem2reg pass and then do some more work. There's absolutely no way it could work without mem2reg pass. (That's the value analysis path I talked about earlier). > Alternatively, if you don't want to do that, you ca...
2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
...; >> >>        } >> >> }; >> >> >> >> static StaticInitializer InitializeEverything; >> > >> > Looks good to me. Are you sure you call getAnalysis only for the >> > DominatorTree? What is the output of "grep getAnalysis YourPass.cpp"? >> > >> > Cheers >> > Tobi >> > >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/l...
2010 Oct 07
1
Qmail+Vpopmail+Mysql+Dovecot 2.x (Notes on a successful conversion)
...that setting and use the script found at http://qmailrocks.thibs.com/downloads/scripts/migrate-vpopmail-many-domains to collapse the tables. 2. Switch to mysql authentication. The following snippet works well. driver = mysql connect = host=/var/run/mysqld/mysqld.sock user=vpopmail password=YOURPASS dbname=vpopmail default_pass_scheme = PLAIN password_query = SELECT CONCAT(pw_name, '@', pw_domain) AS user, pw_clear_passwd AS password FROM vpopmail WHERE pw_name = '%n' AND pw_domain = '%d' user_query = SELECT pw_dir as home, 1008 AS uid, 1003 AS gid FROM vpopmail WHER...
2004 Nov 26
2
[LLVMdev] Running specific passes
Hello, in the implementation of some analysis, I need to change the program and then invoke Mem2Reg pass. That pass, in turn, requires other analysis, so I must use PassManager. Here's the code I ended up with: bool runOnFunction(llvm::Function& m) { visit(m); ExistingModuleProvider mp(m.getParent());
2017 Oct 03
2
About LLVM Pass dependency
Hello I am working on pass which has dependency on multiple passes. Say D1,D2,D3 I used INITIALIZE_PASS_BEGIN INITIALIZE_PASS_DEPENDENCY(D1) INITIALIZE_PASS_DEPENDENCY(D2) INITIALIZE_PASS_DEPENDENCY(D3) INITIALIZE_PASS_END. While running it through opt tool it, I had to specify this D1,D2,D3 pass names to get this pass executed before my pass. Is there way, to let llvm pass manager to know
2010 May 09
0
[LLVMdev] [Fwd: Error while running my pass with opt]
...;'required' by >> pass!"' failed. >> >> What can possibly cause this. Any ideas will also help. >> >> Tobias Grosser wrote: >> >>> Hi, >>> >>> you need something like this in your pass: >>> >>> void YourPass::getAnalysisUsage(AnalysisUsage &AU) const { >>> AU.addRequired<DominatorTree>(); >>> } >>> >>> because you need to specify which analysis you are using. >>> >>> Tobi >>> >> >> ______________________________...
2004 Dec 21
3
[LLVMdev] Help with code
Constant *strcon==ConstantArray::get("Value : %d\n"); Sorry Typo. On Tue, 21 Dec 2004, Misha Brukman wrote: > On Tue, Dec 21, 2004 at 03:45:33PM -0700, Sriraman Tallam wrote: > > I have this call instruction to printf inserted which is causing > > an assertion failure. Any pointers to where I am wrong : > > > > Function
2011 Nov 08
0
[LLVMdev] loadable passes with dependencies?
...nitializeHelloPass(Registry); > >> } > >> }; > >> > >> static StaticInitializer InitializeEverything; > > > > Looks good to me. Are you sure you call getAnalysis only for the > > DominatorTree? What is the output of "grep getAnalysis YourPass.cpp"? > > > > Cheers > > Tobi > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > -------------- next part...
2017 Oct 03
1
About LLVM Pass dependency
...ing Functional transformational in module and not Analysis either. Would that be right way? Thanks Mahesh On Tue, Oct 3, 2017 at 9:43 PM, Hongbin Zheng <etherzhhb at gmail.com> wrote: > Hi Mahesh, > > Did you override getAnalysisUsage and require D1, D2 and D3? > > > void YourPass::getAnalysisUsage(AnalysisUsage &AU) const { > AU.addRequired<D1>(); > AU.addRequired<D2>(); > AU.addRequired<D3>(); > } > > On Tue, Oct 3, 2017 at 2:00 AM, Mahesh Attarde via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Hello...
2011 Nov 08
2
[LLVMdev] loadable passes with dependencies?
Sorry to keep dragging this out on you. Im now getting: Assertion failed: (ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"), function getAnalysisID But I already have: void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<DominatorTree>(); } And changed the bottom of my pass too: char Hello::ID =