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

via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 21 17:21:45 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;
----------------
koachan wrote:

Yeah, something like that seems to work, thanks!

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


More information about the cfe-commits mailing list