]> granicus.if.org Git - clang/commit
[X86] Better support for the MCU psABI (clang part)
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Mon, 28 Dec 2015 14:39:54 +0000 (14:39 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Mon, 28 Dec 2015 14:39:54 +0000 (14:39 +0000)
commit269207f26118bf0dd22a52f3f9c69e9f4d37ec41
treedbb0b011fd5412dd6942d483f7a73932dfa036f6
parenta68f40374973e5ea579333e61f6ebbf425c78f09
[X86] Better support for the MCU psABI (clang part)

This adds support for the MCU psABI in a way different from r251223 and r251224,
basically reverting most of these two patches. The problem with the approach
taken in r251223/4 is that it only handled libcalls that originated from the backend.
However, the mid-end also inserts quite a few libcalls and assumes these use the
platform's default calling convention.

The previous patch tried to insert inregs when necessary both in the FE and,
somewhat hackily, in the CG. Instead, we now define a new default calling convention
for the MCU, which doesn't use inreg marking at all, similarly to what x86-64 does.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256495 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetInfo.cpp
test/CodeGen/x86_32-arguments-iamcu.c