llvmc: Better -mfpu/-mcpu support for ARM & PPC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121826 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/llvmc/src/Base.td.in b/tools/llvmc/src/Base.td.in
index 8a871ad..02310a9 100644
--- a/tools/llvmc/src/Base.td.in
+++ b/tools/llvmc/src/Base.td.in
@@ -50,6 +50,9 @@
     (help "Generate code for the specified machine type")),
  (parameter_option "mcpu",
     (help "A deprecated synonym for -mtune"), (hidden), (forward_not_split)),
+ (parameter_option "mfpu",
+    (help "Specify type of floating point unit"),
+    (hidden), (forward_not_split)),
  (parameter_option "mabi",
     (help "Generate code for the specified ABI"), (hidden)),
  (parameter_option "mfloat-abi",
@@ -208,6 +211,7 @@
          (not_empty "march"), (forward "march"),
          (not_empty "mcpu"), (forward "mcpu"),
          (not_empty "mtune"), (forward "mtune"),
+         (not_empty "mfpu"), (forward "mfpu"),
          (not_empty "mabi"), (forward "mabi"),
          (not_empty "mfloat-abi"), (forward "mfloat-abi"),
          (not_empty "m"), (forward "m"),
@@ -308,9 +312,10 @@
                      (append_cmd "-relocation-model=dynamic-no-pic"),
           (not_empty "march"), (forward_transformed_value
                                 "march", "ConvertMArchToMAttr"),
-          (not_empty "mcpu"), (forward "mcpu"),
+          (not_empty "mcpu"), (forward_transformed_value "mcpu", "ConvertMCpu"),
           (and (not_empty "mtune"), (empty "mcpu")),
                      (forward_as "mtune", "-mcpu"),
+          (not_empty "mfpu"), (forward_transformed_value "mfpu", "ConvertMFpu"),
           (not_empty "m"), (forward_transformed_value "m", "ConvertToMAttr"),
           (not_empty "Wllc,"), (forward_value "Wllc,")))
 ]>;