[llvm] Split vgpr regalloc pipeline (PR #93526)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 12:31:00 PDT 2024


================
@@ -10,22 +10,25 @@
 #define LLVM_CODEGEN_REGALLOCCOMMON_H
 
 #include <functional>
+#include <llvm/CodeGen/Register.h>
 
 namespace llvm {
 
 class TargetRegisterClass;
 class TargetRegisterInfo;
+class MachineRegisterInfo;
 
 typedef std::function<bool(const TargetRegisterInfo &TRI,
-                           const TargetRegisterClass &RC)> RegClassFilterFunc;
+                           const MachineRegisterInfo &MRI, const Register Reg)>
+    RegClassFilterFunc;
 
 /// Default register class filter function for register allocation. All virtual
 /// registers should be allocated.
 static inline bool allocateAllRegClasses(const TargetRegisterInfo &,
----------------
arsenm wrote:

allocateAllRegisters 

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


More information about the llvm-commits mailing list