[llvm] ARM: Start moving runtime libcall configuration out of TargetLowering (PR #142617)
    Eli Friedman via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jun  9 13:02:18 PDT 2025
    
    
  
================
@@ -31,6 +31,56 @@ static void setAArch64LibcallNames(RuntimeLibcallsInfo &Info,
   }
 }
 
+static void setARMLibcallNames(RuntimeLibcallsInfo &Info, const Triple &TT) {
+  // Register based DivRem for AEABI (RTABI 4.2)
+  if (TT.isTargetAEABI() || TT.isAndroid() || TT.isTargetGNUAEABI() ||
+      TT.isTargetMuslAEABI() || TT.isOSWindows()) {
+    if (TT.isOSWindows()) {
----------------
efriedma-quic wrote:
Can we reduce the nesting here?  `if (TT.isOSWindows()) {} else if (TT.isTargetAEABI() || TT.isAndroid() || ...`
https://github.com/llvm/llvm-project/pull/142617
    
    
More information about the llvm-commits
mailing list