[llvm] [CodeGen] Do not pass MF into MachineRegisterInfo methods. NFC. (PR #84770)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 08:43:15 PDT 2024


================
@@ -244,14 +244,13 @@ class MachineRegisterInfo {
   bool isUpdatedCSRsInitialized() const { return IsUpdatedCSRsInitialized; }
 
   /// Returns true if a register can be used as an argument to a function.
-  bool isArgumentRegister(const MachineFunction &MF, MCRegister Reg) const;
+  bool isArgumentRegister(MCRegister Reg) const;
 
   /// Returns true if a register is a fixed register.
-  bool isFixedRegister(const MachineFunction &MF, MCRegister Reg) const;
+  bool isFixedRegister(MCRegister Reg) const;
 
   /// Returns true if a register is a general purpose register.
-  bool isGeneralPurposeRegister(const MachineFunction &MF,
-                                MCRegister Reg) const;
+  bool isGeneralPurposeRegister(MCRegister Reg) const;
----------------
jayfoad wrote:

> Go for it!

Thanks - done in 575ca6744b755f75799c1d092f56953e776a80a6.

https://github.com/llvm/llvm-project/pull/84770


More information about the llvm-commits mailing list