[PATCH] D45240: [ARM] Compute a target feature which corresponds to the ARM version.
Florian Hahn via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 4 02:15:03 PDT 2018
fhahn added a reviewer: rengolin.
fhahn added a comment.
Thanks for looking into this Eli! Adding the architecture version as target feature looks good to me.
================
Comment at: lib/Basic/Targets/ARM.cpp:342
+ // rely on the target triple.
+ switch (ArchKind) {
+ case llvm::ARM::ArchKind::INVALID:
----------------
Would it make sense to add this to llvm/Support/TargetParser? We already have `AArch64::getArchFeatures` there and it looks like it does something similar for AArch64.
llvm/Support/ARMTargetParser.def defines the different architectures + extensions and it seems like it should possible to extend it slightly to handle the architecture features.
Repository:
rC Clang
https://reviews.llvm.org/D45240
More information about the cfe-commits
mailing list