aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/DFAPacketizer.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-08-20 19:40:59 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-08-20 19:40:59 +0000
commitb18263531d48a5f8476d8378f30fd8862c55a1f2 (patch)
tree5bf837ca596040c105c92d520076fc133707b782 /llvm/lib/CodeGen/DFAPacketizer.cpp
parent8968e6d1b02543d12e312f1be6edd152b89de584 (diff)
downloadllvm-b18263531d48a5f8476d8378f30fd8862c55a1f2.zip
llvm-b18263531d48a5f8476d8378f30fd8862c55a1f2.tar.gz
llvm-b18263531d48a5f8476d8378f30fd8862c55a1f2.tar.bz2
X86: Align the stack on word boundaries in LowerFormalArguments()
The goal of the patch is to implement section 3.2.3 of the AMD64 ABI correctly. The controlling sentence is, "The size of each argument gets rounded up to eightbytes. Therefore the stack will always be eightbyte aligned." The equivalent sentence in the i386 ABI page 37 says, "At all times, the stack pointer should point to a word-aligned area." For both architectures, the stack pointer is not being rounded up to the nearest eightbyte or word between the last normal argument and the first variadic argument. Patch by Thomas Jablin! llvm-svn: 216119
Diffstat (limited to 'llvm/lib/CodeGen/DFAPacketizer.cpp')
0 files changed, 0 insertions, 0 deletions