================
@@ -120,6 +122,9 @@ class LLVM_LIBRARY_VISIBILITY TCETargetInfo : public
TargetInfo {
ArrayRef<TargetInfo::GCCRegAlias> getGCCRegAliases() const override {
return {};
}
+
+ // TCE does not have fixed, but user specified register names.
+ bool isValidGCCRegisterName(StringRef Name) const override { return true; }
----------------
linehill wrote:
Seems dubious to me to accept arbitrary (possibly non-sensible) register names
- but I'm not sure what this method is for and the BPF target defines the
method in the same way so perhaps this is fine.
https://github.com/llvm/llvm-project/pull/176698
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits