[llvm-commits] [PATCH 0/5] Reduce memory usage for phi operands

Chris Lattner clattner at apple.com
Tue Jun 21 12:07:15 PDT 2011


On Jun 21, 2011, at 12:03 PM, Chris Lattner wrote:
> class ConstantDataArray {
>> 
>  // To be used on arrays of ints.
>  uint64_t getIntElement(uint64_t idx)
> 
>  // To be used on arrays of floats/doubles.
>  APFloat getFloatElement(uint64_t idx)

Actually, since the client needs to handle the various element types specially, it would be better to just do:

float getFloatElement(uint64_t idx)
double getDoubleElement(uint64_t idx)

directly,

-Chris



More information about the llvm-commits mailing list