[llvm-commits] CVS: llvm/include/llvm/ExecutionEngine/GenericValue.h

Chris Lattner clattner at apple.com
Sat Mar 3 19:45:54 PST 2007


>> Ok, could we make GV not be a union?  Or a struct with an APInt and
>> union of other things?
>
> I thought about that, and started to implement it. That involves a 50%
> increase in memory consumption. Its already a big enough hog.

It would increase the memory use of the *interpreter*, but nothing  
else.  The interpreter is already slow.

>>  Having the interpreter have its own set of
>> constant folding logic seems wrong.
>
> Where does it have that?

All of the 'execute*' methods.  E.g. to 'interpret' a binary or.

-Chris




More information about the llvm-commits mailing list