[llvm-commits] [PATCH] Adding x32 ABI triple and separate StackSlotSize in MCAsmInfo

Evan Cheng evan.cheng at apple.com
Tue Jan 22 12:56:57 PST 2013


On Jan 22, 2013, at 9:26 AM, Eli Bendersky <eliben at google.com> wrote:

> On Tue, Jan 22, 2013 at 9:15 AM, Nadav Rotem <nrotem at apple.com> wrote:
>> Can we initialize StackSlotSize to zero and change getStackSlotSize to return PointerSize unless this value is overridden ?  This will allow us to keep most targets unmodified.
>> 
>> Otherwise LGTM.
>> 
>> 
> 
> Yes, I've actually considered this or a similar approach for more
> "defaultness". After some thinking it seemed to me that being explicit
> is more important here. While the changes to each target are trivial,
> they allow to see all the important values set in a single place (the
> MCAsmInfo subclass constructor), without requiring someone reading the
> code to hunt up in the base class.
> That said, if you think it's important to keep the targets untouched,
> I don't feel strongly about this and will revise the patch.

If that's the intention, then please change the name of the field. It's just going to confuse people.

Evan

> 
> Eli
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list