aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cov/SourceCoverageView.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-08-23 22:08:55 -0700
committerFangrui Song <i@maskray.me>2023-08-23 22:08:55 -0700
commit7a41af86041bd757b7f380d7f645403d4e1725ca (patch)
tree990cbfab93469ed07a8600b32d93738b547b933c /llvm/tools/llvm-cov/SourceCoverageView.cpp
parent2289c7f76038660f5ecc8d54bdd428d5f162f810 (diff)
downloadllvm-7a41af86041bd757b7f380d7f645403d4e1725ca.zip
llvm-7a41af86041bd757b7f380d7f645403d4e1725ca.tar.gz
llvm-7a41af86041bd757b7f380d7f645403d4e1725ca.tar.bz2
[X86] Support arch=x86-64{,-v2,-v3,-v4} for target_clones attribute
GCC 12 (https://gcc.gnu.org/PR101696) allows `arch=x86-64` `arch=x86-64-v2` `arch=x86-64-v3` `arch=x86-64-v4` in the target_clones function attribute. This patch ports the feature. * Set KeyFeature to `x86-64{,-v2,-v3,-v4}` in `Processors[]`, to be used by X86TargetInfo::multiVersionSortPriority * builtins: change `__cpu_features2` to an array like libgcc. Define `FEATURE_X86_64_{BASELINE,V2,V3,V4}` and depended ISA feature bits. * CGBuiltin.cpp: update EmitX86CpuSupports to handle `arch=x86-64*`. Close https://github.com/llvm/llvm-project/issues/55830 Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D158329
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.cpp')
0 files changed, 0 insertions, 0 deletions