aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorTomas Matheson <Tomas.Matheson@arm.com>2024-04-30 13:29:09 +0100
committerTomas Matheson <tomas.matheson@arm.com>2024-05-01 15:14:44 +0100
commitcfca977427230e1731c8552810785ebdd09ca605 (patch)
treec97cdc480407ea12ceead40769c5ec0b69b873e6 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent167b50669c03ad888bf2f00c61424bedac43a050 (diff)
downloadllvm-cfca977427230e1731c8552810785ebdd09ca605.zip
llvm-cfca977427230e1731c8552810785ebdd09ca605.tar.gz
llvm-cfca977427230e1731c8552810785ebdd09ca605.tar.bz2
[AArch64][TargetParser] autogen ArchExtKind enum (#90314)
Re-land 61b2a0e3336aaa0132bbed06dc185aca4ff5d2db. Some Windows builds were failing because AArch64TargetParserDef.inc is a generated header which is included transitively into some clang components, but this information is not available to the build system and therefore there is a missing edge in the dependency graph. This patch incorporates the fixes described in ac1ffd3caca12c254e0b8c847aa8ce8e51b6cfbf/D142403. Thanks to ExtensionSet::toLLVMFeatureList, all values of ArchExtKind should correspond to a particular -target-feature. The valid values of -target-feature are in turn defined by SubtargetFeature defs. Therefore we can generate ArchExtKind from the tablegen data. This is done by adding an Extension class which derives from SubtargetFeature. Because the Has* FieldNames do not always correspond to the AEK_ names ("extensions", as defined in TargetParser), and AEK_ names do not always correspond to -march strings, some additional enum entries have been added to remap the names. I have renamed these to make the naming consistent, but split them into a separate PR to keep the diff reasonable (#90320)
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions