[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:43 PST 2024
================
@@ -80,6 +86,11 @@ class SparcSubtarget : public SparcGenSubtargetInfo {
return is64Bit() ? 2047 : 0;
}
+ bool isGRegisterReserved(size_t i) const { return ReserveGRegister[i]; }
+ bool isORegisterReserved(size_t i) const { return ReserveORegister[i]; }
+ bool isLRegisterReserved(size_t i) const { return ReserveLRegister[i]; }
+ bool isIRegisterReserved(size_t i) const { return ReserveIRegister[i]; }
----------------
s-barannikov wrote:
This could be a single interface accepting a physical register instead of an index.
https://github.com/llvm/llvm-project/pull/74927
More information about the cfe-commits
mailing list