Hi Konstantin,

There are a few passes related to templates, maybe Yang can explain them. I believe they are handling specific cases rather than being fully general-purpose, which isn't that easy.

Anyway, we agree that this sort of thing is needed. The problem is that sophisticated manipulation of C++ programs is hard and we don't have a lot of manpower-- both Yang and I are working on multiple projects. And Yang must graduate eventually!

John



On 9/17/12 5:39 AM, Konstantin Tokarev wrote:
Hi all,

There are passes "remove-unused-function", "remove-unused-var", and 
"remove-unused-field"
in creduce, but I haven't found anything like "remove-unused-class" or 
"remove-unused-template".

I think such passes could be useful on earlier stages of reduction then existing 
"remove-unused-*"
passes, because they can eliminate potentially larger chuncks of code, 
especially when template
libraries like STL are used in translation unit.

Reply via email to