[clang] [Clang][SPARC] Define __sparc_v8__ and __leon__ like GCC (PR #234574)

Daniel Cederman via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 25 23:00:25 PDT 2026


doac wrote:

> > I also have an alternative option where I extend SparcCPUInfo with a family field instead that can be checked, if that would be more suitable than the switch statement.
> 
> I don't have a particularly strong opinion on this, but that approach does sound a bit more robust for if/when more CPUs are added, and there's precedent for it in other targets.

Thanks for the feedback! I changed to the family approach.

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


More information about the cfe-commits mailing list