================
@@ -486,3 +486,15 @@ bool RISCVTargetInfo::validateCpuSupports(StringRef 
Feature) const {
 bool RISCVTargetInfo::isValidFeatureName(StringRef Name) const {
   return llvm::RISCVISAInfo::isSupportedExtensionFeature(Name);
 }
+
+bool RISCVTargetInfo::validateGlobalRegisterVariable(
+    StringRef RegName, unsigned RegSize, bool &HasSizeMismatch) const {
+  if (RegName == "ra" || RegName == "sp" || RegName == "gp" ||
----------------
topperc wrote:

Yeah it didn't seem useful. You can still do it with "x0" because I didn't 
think it was worth the extra code to check for it.

https://github.com/llvm/llvm-project/pull/109596
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to