search for: subpassclass

Displaying 5 results from an estimated 5 matches for "subpassclass".

2004 Aug 09
2
[LLVMdev] How to get LoopInfo within Pass subclass?
...y. This is likely to be an oversimplified view, but hopefully it's a start. 1 - in add(), discover that the pass we're requiring is a subpass, and create more of them. This is the natural place to do it, but can we do this here, or do we not know enough about the passes? 2 - in addPass(SubPassClass, ...), add those FPs to CurrentAnalyses. Should we have a map of BatcherClasses - (function, BatcherClass) pairs instead of just one BatcherClass? 3 - Provide API for the MP to get an analysis per function. (generally, for the PassClass to get analysis per SubPassClass): Instead of this: getAna...
2004 Aug 09
0
[LLVMdev] How to get LoopInfo within Pass subclass?
...on, the pass manager would have to clone not just the B objects, but also the A objects for every function. The other tricky thing is that we don't know how many pass objects to create until we actuall start running the pass manager (it depends on the module being run on). > 2 - in addPass(SubPassClass, ...), add those FPs to CurrentAnalyses. > Should we have a map of BatcherClasses - (function, BatcherClass) pairs > instead of just one BatcherClass? I'm not sure about this. At the time add is called, you don't know what the functions are. I think that the correct solution is to...
2004 Aug 06
0
[LLVMdev] How to get LoopInfo within Pass subclass?
On Thu, 5 Aug 2004, Michael McCracken wrote: > > You're right that FunctionPass's are not supposed to have state > > (something that many people overlook :) ), however, for now, nothing > > will break if it does have state, and this is really the only way > > around this. > > I'm not sure if I can do this. The pass I'm writing is writing info >
2004 Aug 10
1
[LLVMdev] How to get LoopInfo within Pass subclass?
...lso the A objects for every function. > > The other tricky thing is that we don't know how many pass objects to > create until we actuall start running the pass manager (it depends on > the > module being run on). Yeah, this sounds like the key problem. >> 2 - in addPass(SubPassClass, ...), add those FPs to CurrentAnalyses. >> Should we have a map of BatcherClasses - (function, BatcherClass) >> pairs >> instead of just one BatcherClass? > > I'm not sure about this. At the time add is called, you don't know > what > the functions are. I...
2004 Aug 06
2
[LLVMdev] How to get LoopInfo within Pass subclass?
On Aug 5, 2004, at 5:30 PM, Chris Lattner wrote: > On Thu, 5 Aug 2004, Michael McCracken wrote: > >> Hi, I have a hopefully quick question. I'm writing a Pass that needs >> to >> see a whole module at a time and keep some state, so I subclassed >> Pass. >> However, I want to be able to see the Loops in each Function. Roughly, > > ok. > >>