[PATCH] D89197: [X86] Support -march=x86-64-v[234]

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 10 16:13:03 PDT 2020


MaskRay created this revision.
MaskRay added reviewers: craig.topper, efriedma, fweimer, RKSimon, spatel.
Herald added subscribers: llvm-commits, cfe-commits, pengfei, jfb, hiraditya.
Herald added projects: clang, LLVM.
MaskRay requested review of this revision.

PR47686. These micro-architecture levels are defined in the x86-64 psABI:

https://gitlab.com/x86-psABIs/x86-64-ABI/-/commit/77566eb03bc6a326811cb7e9

GCC 11 will support these levels.

Note, -mtune=x86-64-v[234] are invalid and __builtin_cpu_is cannot be
used on them.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89197

Files:
  clang/lib/Basic/Targets/X86.cpp
  clang/lib/Basic/Targets/X86.h
  clang/test/Driver/x86-march.c
  clang/test/Driver/x86-mtune.c
  clang/test/Misc/target-invalid-cpu-note.c
  clang/test/Preprocessor/predefined-arch-macros-x86.c
  clang/test/Preprocessor/predefined-arch-macros.c
  clang/test/Sema/builtin-cpu-supports.c
  llvm/include/llvm/Support/X86TargetParser.h
  llvm/lib/Support/X86TargetParser.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89197.297432.patch
Type: text/x-patch
Size: 12190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201010/c21a0968/attachment-0001.bin>


More information about the cfe-commits mailing list