[PATCH] D50694: [Sparc] Give the option to use the OS reserved global registers

James Y Knight via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 9 08:22:04 PDT 2018


jyknight added inline comments.


================
Comment at: lib/Target/Sparc/Sparc.td:63
 
+def ReserveRegG2 : SubtargetFeature<"reserve-reg-g2", "ReserveRegG2", "true",
+                                    "Reserve use of register %g2">;
----------------
Having some use 'reserve', and some use 'use' seems unfortunate. If, instead, they're all spelled "reserve-reg-*", but the features for G5 (sometimes), G6, and G7 are enabled by default, I *think* it would then be possible to disable them with "target-features"="-reserve-reg-g5".


https://reviews.llvm.org/D50694





More information about the llvm-commits mailing list