Skip to content
  1. Sep 25, 2009
    • Bob Wilson's avatar
      pr4926: ARM requires the stack pointer to be aligned, even for leaf functions. · d60367c1
      Bob Wilson authored
      For the AAPCS ABI, SP must always be 4-byte aligned, and at any "public
      interface" it must be 8-byte aligned.  For the older ARM APCS ABI, the stack
      alignment is just always 4 bytes.  For X86, we currently align SP at
      entry to a function (e.g., to 16 bytes for Darwin), but no stack alignment
      is needed at other times, such as for a leaf function.
      
      After discussing this with Dan, I decided to go with the approach of adding
      a new "TransientStackAlignment" field to TargetFrameInfo.  This value
      specifies the stack alignment that must be maintained even in between calls.
      It defaults to 1 except for ARM, where it is 4.  (Some other targets may
      also want to set this if they have similar stack requirements. It's not
      currently required for PPC because it sets targetHandlesStackFrameRounding
      and handles the alignment in target-specific code.) The existing StackAlignment
      value specifies the alignment upon entry to a function, which is how we've
      been using it anyway.
      
      llvm-svn: 82767
      d60367c1
  2. Jul 09, 2009
  3. Dec 29, 2007
  4. Jul 30, 2007
  5. Jan 19, 2007
  6. Aug 25, 2006
  7. Aug 16, 2006
  8. Oct 16, 2005
  9. Oct 15, 2005
  10. Apr 22, 2005
  11. Oct 26, 2004
  12. Aug 19, 2004
  13. Aug 17, 2004
  14. Aug 16, 2004
  15. Aug 15, 2004
Loading