[LLVMdev] Problem with missing support for non-zero contant initializers.

Chris Lattner sabre at nondot.org
Mon Aug 20 18:35:57 PDT 2007


On Mon, 20 Aug 2007, Nick Lewycky wrote:
>> Wow, this *is* bad.  I think the solution to this is to add a new
>> ConstantFillArray node.  It would always have array type, would take a
>> single Constant* value, and would give you the filled array with that
>> constant.  Please file a bug if you're interested.
>
> I believe this is already bug 1324.

It is definitely related.  I think that ConstantFillArray should replace 
ConstantAggregateZero (CAZ = CFA<0>).  PR1324 is useful when you have 
structs or arrays that are not filled with the same value, for example the 
string in comment #1.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list