Go to file
Jan Wen Voung f547861ba0 Use 32-bit ebp for NaCl64 in a limited case: llvm.frameaddress.
Summary:
Follow up to [x32] "Use ebp/esp as frame and stack pointer":
http://reviews.llvm.org/D4617

In that earlier patch, NaCl64 was made to always use rbp.
That's needed for most cases because rbp should hold a full
64-bit address within the NaCl sandbox so that load/stores
off of rbp don't require sandbox adjustment (zeroing the top
32-bits, then filling those by adding r15).

However, llvm.frameaddress returns a pointer and pointers
are 32-bit for NaCl64. In this case, use ebp instead, which
will make the register copy type check. A similar mechanism
may be needed for llvm.eh.return, but is not added in this change.

Test Plan: test/CodeGen/X86/frameaddr.ll

Reviewers: dschuff, nadav

Subscribers: jfb, llvm-commits

Differential Revision: http://reviews.llvm.org/D6514

llvm-svn: 223510
2014-12-05 20:55:53 +00:00
clang Workaround attribute ordering issue with kernel only attributes 2014-12-05 18:03:58 +00:00
clang-tools-extra [clang-tidy] Add clang-tidy check for unique_ptr's reset+release -> move 2014-12-05 11:59:05 +00:00
compiler-rt Implement AddressSanitizer suppressions. 2014-12-05 20:26:09 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Don't include <stddef.h> 2014-11-18 14:19:27 +00:00
libcxx libc++: support NaCl when building thread.cpp 2014-12-02 17:30:19 +00:00
libcxxabi Fix comment on end of #endif to match #if 2014-11-25 03:19:02 +00:00
lld ELF: Use ELF reloc .def files to reduce duplication 2014-12-05 12:43:26 +00:00
lldb Fix a bunch of [-Werror,-Winconsistent-missing-override] warnings. 2014-12-05 19:21:49 +00:00
llgo Roll gofrontend to 2a85649c19e1. 2014-12-04 20:39:58 +00:00
llvm Use 32-bit ebp for NaCl64 in a limited case: llvm.frameaddress. 2014-12-05 20:55:53 +00:00
openmp I apologise in advance for the size of this check-in. At Intel we do 2014-10-07 16:25:50 +00:00
polly checkout_isl: Do not fail in presence of an old CLooG checkout 2014-12-02 21:04:20 +00:00