[X86] Use correct calling convention for MCU psABI libcalls
authorMichael Kuperstein <michael.m.kuperstein@intel.com>
Sun, 25 Oct 2015 08:14:05 +0000 (08:14 +0000)
committerMichael Kuperstein <michael.m.kuperstein@intel.com>
Sun, 25 Oct 2015 08:14:05 +0000 (08:14 +0000)
commit8052f4541d9069c7115e1e64057325ef5cc7972c
tree577567d05116095413691a22a89b6e9e1868852d
parentc50c6907aa1f2294f5fa80a9cc72f48b1cd7da52
[X86] Use correct calling convention for MCU psABI libcalls

When using the MCU psABI, compiler-generated library calls should pass
some parameters in-register. However, since inreg marking for x86 is currently
done by the front end, it will not be applied to backend-generated calls.

This is a workaround for PR3997, which describes a similar issue for -mregparm.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251223 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
test/CodeGen/X86/mcu-abi.ll [new file with mode: 0644]