Is there any way to get a rough size estimate for functions in IR? Say I have a bitcode file that contains the definition of several classes. I'd like to be able to read in the file and report 'class A is roughly twice as big as class B', or 'This file consists of 60% class A, 30% class B, and 10% class C'. The numbers would be a rough relative measurement of the size of all globals and methods of the class, but they wouldn't have to correspond to the exact byte size of the final executable.<div>

<br></div><div>Basically what I want to do is track over time the amount of overhead caused by language features such as reflection and other metadata.<br clear="all"><br>-- <br>-- Talin<br>
</div>