[llvm] [clang] [SPARC] Support reserving arbitrary general purpose registers (PR #74927)

Sergei Barannikov via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 12 21:56:44 PST 2024


================
@@ -29,6 +29,12 @@ namespace llvm {
 class StringRef;
 
 class SparcSubtarget : public SparcGenSubtargetInfo {
+  // Reserve*Register[i] - *#i is not available as a general purpose register.
+  BitVector ReserveGRegister;
----------------
s-barannikov wrote:

Can this be a single `BitVector` indexed by physical register number? This would simplify `TRI.getReservedRegs()`, I think.


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


More information about the cfe-commits mailing list