[llvm] ARM: Move declaration of supportSplitCSR to be public (PR #144679)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 18 17:34:32 PDT 2025


https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/144679

>From 5a2e7ecbea4a0014120a8d40e926b348a72647b5 Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Wed, 18 Jun 2025 20:38:26 +0900
Subject: [PATCH] ARM: Move declaration of supportSplitCSR to be public

This is an implementation of a public method from the base
class, so it should also be public. Avoids unrelated diff
in a future patch.
---
 llvm/lib/Target/ARM/ARMISelLowering.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/llvm/lib/Target/ARM/ARMISelLowering.h b/llvm/lib/Target/ARM/ARMISelLowering.h
index 87710ee29a249..357ca9ea5d205 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.h
+++ b/llvm/lib/Target/ARM/ARMISelLowering.h
@@ -716,6 +716,11 @@ class VectorType;
       return true;
     }
 
+    bool supportSplitCSR(MachineFunction *MF) const override {
+      return MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS &&
+             MF->getFunction().hasFnAttribute(Attribute::NoUnwind);
+    }
+
     bool hasStandaloneRem(EVT VT) const override {
       return HasStandaloneRem;
     }
@@ -914,11 +919,6 @@ class VectorType;
                             SmallVectorImpl<SDValue> &InVals, bool isThisReturn,
                             SDValue ThisVal, bool isCmseNSCall) const;
 
-    bool supportSplitCSR(MachineFunction *MF) const override {
-      return MF->getFunction().getCallingConv() == CallingConv::CXX_FAST_TLS &&
-          MF->getFunction().hasFnAttribute(Attribute::NoUnwind);
-    }
-
     void initializeSplitCSR(MachineBasicBlock *Entry) const override;
     void insertCopiesSplitCSR(
       MachineBasicBlock *Entry,



More information about the llvm-commits mailing list