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
committerGitHub <noreply@github.com>2024-04-30 13:29:09 +0100
commit61b2a0e3336aaa0132bbed06dc185aca4ff5d2db (patch)
tree37d04dce42a1f8325868d8998798e42b7deb691b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent5e03c0af4745b97f93c06b43e0f2a02abc881292 (diff)
downloadllvm-61b2a0e3336aaa0132bbed06dc185aca4ff5d2db.zip
llvm-61b2a0e3336aaa0132bbed06dc185aca4ff5d2db.tar.gz
llvm-61b2a0e3336aaa0132bbed06dc185aca4ff5d2db.tar.bz2
[AArch64][TargetParser] autogen ArchExtKind enum (#90314)
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