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

Nemanja Ivanovic via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 21 05:01:08 PST 2022


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

In clang, it looks like tools::getCPUName() (
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.

On Fri, Jan 21, 2022 at 3:33 AM John Paul Adrian Glaubitz via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hello!
>
> On 1/19/22 00:16, John Paul Adrian Glaubitz wrote:
> > I'm trying to figure out how to raise the default baseline for the
> 32-bit SPARC
> > target on Linux. Currently, this target defaults to the SPARCv7
> architecture which
> > lacks support for atomic instructions which is why the build of
> compiler-rt fails
> > with, see [1]:
>
> Can anyone recommend a place where I might find an answer?
>
> The discourse channel for the related topics code generation [1] and
> sanitizers [2]
> don't seem to get much attention either.
>
> Thanks,
> Adrian
>
> > [1] https://llvm.discourse.group/c/code-generation/51
> > [2] https://llvm.discourse.group/c/runtimes/sanitizers/12
>
> --
>  .''`.  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
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20220121/2abb2a72/attachment.html>


More information about the llvm-dev mailing list