[AArch64] Add all predecessor archs in target info
authorDaniel Kiss <daniel.kiss@arm.com>
Tue, 27 Sep 2022 08:22:20 +0000 (10:22 +0200)
committerDaniel Kiss <daniel.kiss@arm.com>
Tue, 27 Sep 2022 08:23:21 +0000 (10:23 +0200)
commit712de9d1716c010e895a578ad86cbd47680a4fdd
tree17041c0f660c3a1d92dd5946800a43196fd96888
parent97dfa536260c434e68913129d79d863b26c1c179
[AArch64] Add all predecessor archs in target info

A given function is compatible with all previous arch versions.
To avoid compering values of the attribute this logic adds all predecessor
architecture values.

Reviewed By: dmgreen, DavidSpickett

Differential Revision: https://reviews.llvm.org/D134353
clang/lib/Basic/Targets/AArch64.cpp
clang/lib/Basic/Targets/AArch64.h
clang/test/CodeGen/aarch64-subarch-compatbility.c [new file with mode: 0644]
llvm/include/llvm/Support/AArch64TargetParser.def
llvm/include/llvm/Support/AArch64TargetParser.h
llvm/lib/Support/AArch64TargetParser.cpp
llvm/unittests/Support/TargetParserTest.cpp