[clang] [llvm] [OpenASIP] Update the TCE target defs for OpenASIP 2.2 (PR #176698)

Henry Linjamäki via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 20 02:54:51 PST 2026


================
@@ -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


More information about the cfe-commits mailing list