[llvm-commits] [PATCH] Add the alignstack function attribute

Charles Davis cdavis at mymail.mines.edu
Thu Feb 11 11:47:12 PST 2010


Duncan Sands wrote:
> Hi Charles,
> 
>> This attribute, which reuses the 'alignstack' keyword, is intended to
>> force backends (primarily the x86 backend) to align stacks for generated
>> functions to 16 bytes. It is not implemented in any backend yet; I would
>> like to get this patch into LLVM before proceeding.
> 
> it would be nicer to be able to write alignstack(16), rather than
> hard-coding
> the magic number 16.  I know the attribute infrastructure isn't set up
> for this
> right now...
Done. I also added a test.

New patch attached.

Chip

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: faap-support-2.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100211/01baa5c5/attachment.ksh>


More information about the llvm-commits mailing list