[llvm-commits] [LLVM, SwitchInst, case ranges] Auxiliary patch #1

Stepan Dyatkovskiy stpworld at narod.ru
Thu Jan 19 11:59:28 PST 2012

Hi, Chris.
I'm working on draft-experimental patch in this direction. Pair of 
ConstantArray + ConstantVector looking find. By now I have a question. I 
found that if I want to initialize array with zeroes it returns 
ConstantAggregateZero object. Is it possible to force creation of 
ConstantArray object? Or there is another approach and it is better to 
use ConstantAggregateZero (but how to do it for switch cases?)


Chris Lattner wrote:
> My half-baked thought was that we could store 1, 4...7, 12  as [1,<4, 7>, 12], just to distinguish ranges from pairs of scalar values.

More information about the llvm-commits mailing list