[clang] [llvm] [Sparc] Support 64-bit atomics in 32-bit V8+ code (PR #242578)

Brad Smith via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 23 00:19:15 PST 2026


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

@koachan BTW, I have a SPARC TargetParser implementation here: [[Sparc] Add a SPARC TargetParser generated from Sparc.td](https://github.com/brad0/llvm-project/tree/sparc-targetparser)
It is generated from Sparc.td, like the PowerPC one, and is used by the backend and clang to look up CPU features. I have not posted it as a PR yet.

https://github.com/llvm/llvm-project/pull/242578


More information about the cfe-commits mailing list