This is an archive of the discontinued LLVM Phabricator instance.

[SPARC][clang] Add SPARC target feature flags
ClosedPublic

Authored by koakuma on Dec 9 2022, 10:04 PM.

Details

Summary

This adds some SPARC feature flags to clang, for those that we have in common with GCC:

  • -m[no-]fpu
  • -m[no-]fsmuld
  • -m[no-]popc
  • -m[no-]vis
  • -m[no-]vis2
  • -m[no-]vis3
  • -m[hard/soft]-quad-float

All have the same meanings as GCC's options (https://gcc.gnu.org/onlinedocs/gcc/SPARC-Options.html).

This fixes, among other things, the -mno-fpu part of bug #40792 (https://github.com/llvm/llvm-project/issues/40792).

Diff Detail

Event Timeline

koakuma created this revision.Dec 9 2022, 10:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 9 2022, 10:04 PM
koakuma requested review of this revision.Dec 9 2022, 10:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 9 2022, 10:04 PM
nickdesaulniers accepted this revision.Dec 14 2022, 1:49 PM
nickdesaulniers added a subscriber: nickdesaulniers.

Thanks for the patch!

This revision is now accepted and ready to land.Dec 14 2022, 1:49 PM
This revision was automatically updated to reflect the committed changes.