[PATCH] D13978: [X86] Support MCU psABI when marking inregs

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 23 12:34:27 PDT 2015


rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.

lgtm with the suggested simplification.


================
Comment at: lib/CodeGen/TargetInfo.cpp:857
@@ -854,3 +856,3 @@
       IsWin32StructABI(Win32StructABI),
-      IsSoftFloatABI(SoftFloatABI),
+      IsSoftFloatABI(SoftFloatABI), IsMCUABI(MCUABI),
       DefaultNumRegisterParameters(NumRegisterParameters) {}
----------------
Rather than taking this as a parameter, how about initializing IsMCUABI with `getTarget().getTriple().isEnvironmentIAMCU()`? Then you can drop a level of parameters.


http://reviews.llvm.org/D13978





More information about the cfe-commits mailing list