[PATCH] D22679: [mips][ias] Enable IAS by default for N64 on Debian mips64el.

Daniel Sanders via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 22 07:30:49 PDT 2016


dsanders created this revision.
dsanders added a reviewer: sdardis.
dsanders added a subscriber: cfe-commits.

Unfortunately we can't enable it for all N64 because it is not yet possible to    
distinguish N32 from N64 from the triple on other environments.                                                         
                                                                                  
N64 has been confirmed to produce identical (within reason) objects to GAS        
during stage 2 of compiler recursion on N64-abi Fedora. Unfortunately,           
Fedora's triples do not distinguish N32 from N64 so I can't enable it by          
default there. I'm currently repeating this testing for Debian mips64el but       
it's very unlikely to produce a different result.

https://reviews.llvm.org/D22679

Files:
  lib/Driver/ToolChains.cpp

Index: lib/Driver/ToolChains.cpp
===================================================================
--- lib/Driver/ToolChains.cpp
+++ lib/Driver/ToolChains.cpp
@@ -2758,6 +2758,13 @@
   case llvm::Triple::mips:
   case llvm::Triple::mipsel:
     return true;
+  case llvm::Triple::mips64:
+  case llvm::Triple::mips64el:
+    // Enabled for Debian mips64/mips64el only. Other targets are unable to
+    // distinguish N32 from N64.
+    if (getTriple().getEnvironment() == llvm::Triple::GNUABI64)
+      return true;
+    return false;
   default:
     return false;
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22679.65076.patch
Type: text/x-patch
Size: 573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160722/67c435c7/attachment.bin>


More information about the cfe-commits mailing list