[llvm-dev] Raising the default baseline for a target

John Paul Adrian Glaubitz via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 21 05:30:29 PST 2022


Hello!

Thanks for the answer!

On 1/21/22 14:01, Nemanja Ivanovic wrote:
> It would seem that the default in the back end is "v9" for 64-bit and "v8" otherwise
> as per: https://llvm.org/doxygen/SparcSubtarget_8cpp_source.html#l00028 <https://llvm.org/doxygen/SparcSubtarget_8cpp_source.html#l00028>
> 
> In clang, it looks like tools::getCPUName() (https://clang.llvm.org/doxygen/namespaceclang_1_1driver_1_1tools.html#a4aa5f09d301ea25099c8badc35a4e09d <https://clang.llvm.org/doxygen/namespaceclang_1_1driver_1_1tools.html#a4aa5f09d301ea25099c8badc35a4e09d>) returns "v9" for Solaris and an empty string otherwise. Presumably if you set it to what it should be set for, you will get what you want.

Yes, that is what I am planning to do now, although I still need to make changes
to compiler-rt since even with V9, __sync_val_compare_and_swap_8 are not available
with GCC.

I opened a bug report for that matter [1]. I will also check whether I can fix something
on the GCC side.

Adrian

> [1] https://github.com/llvm/llvm-project/issues/53337

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the llvm-dev mailing list