[llvm-commits] New classes for PR1255: Should enhance LLVM switch instruction to take case ranges.

Duncan Sands baldrick at free.fr
Mon Feb 20 08:08:44 PST 2012


Hi Stepan,

> I propose to store single values as ranges two. Vector with one element - single value; two elements means the range. Instead I mean just a structure here, just a concept. I propose to store union range/single value in array.
> But now I had undestood you mean - it is non-economical implementation relative to the RAM consumption. Let me think more.
> The only thing I can propose afterall is ConstantRangesSet + CRSBuilder concept as interface for user. If we accepted some interface we can be free with its implementation.

why not use the existing ConstantRange class?

Ciao, Duncan.



More information about the llvm-commits mailing list