The MCU psABI has a calling convention that is somewhat, but not quite, like -mregparm 3.
This adds support for this calling convention.
It depends on D13977 which introduces MCU triple support.
Paths
| Differential D13978
[X86] Support MCU psABI when marking inregs ClosedPublic Authored by mkuper on Oct 22 2015, 3:45 AM.
Details Summary The MCU psABI has a calling convention that is somewhat, but not quite, like -mregparm 3. It depends on D13977 which introduces MCU triple support.
Diff Detail Event Timelinemkuper updated this object. mkuper added a parent revision: D13977: [X86] Add elfiamcu triple support, and a workaround for PR3997. rnk edited edge metadata. Comment Actionslgtm with the suggested simplification.
This revision is now accepted and ready to land.Oct 23 2015, 12:34 PM
Closed by commit rL251224: [X86] Mark inregs correctly for MCU psABI (authored by mkuper). · Explain WhyOct 25 2015, 1:20 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 38107 lib/CodeGen/TargetInfo.cpp
test/CodeGen/x86_32-arguments-iamcu.c
|
Rather than taking this as a parameter, how about initializing IsMCUABI with getTarget().getTriple().isEnvironmentIAMCU()? Then you can drop a level of parameters.