================
@@ -156,6 +156,31 @@ SparcTargetInfo::CPUFamily 
SparcTargetInfo::getCPUFamily(CPUKind Kind) const {
   return Item->Family;
 }
 
+// The CPUs that the backend gives the LeonCASA feature.
+bool SparcTargetInfo::hasLeonCASA(CPUKind Kind) {
----------------
brad0 wrote:

The CASA list is in Sparc.td, but Clang cannot use it from there today. 
clang/lib/Basic cannot depend on the backend's generated tables, since the 
SPARC backend may not be built. Shared target info like this goes through 
llvm/TargetParser, and SPARC does not have one yet. That is also why Clang 
already keeps its own copy of the SPARC CPU list.

So I will land this as is, and follow it up with a patch that adds a SPARC 
TargetParser generated from Sparc.td, like PowerPC has, and use it here.

https://github.com/llvm/llvm-project/pull/242578
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to