[clang] [llvm] [AArch64] Decouple feature dependency expansion. (PR #94279)
Tomas Matheson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 4 10:02:25 PDT 2024
================
@@ -13663,17 +13664,18 @@ QualType ASTContext::getCorrespondingSignedFixedPointType(QualType Ty) const {
}
}
-std::vector<std::string> ASTContext::filterFunctionTargetVersionAttrs(
- const TargetVersionAttr *TV) const {
- assert(TV != nullptr);
- llvm::SmallVector<StringRef, 8> Feats;
- std::vector<std::string> ResFeats;
- TV->getFeatures(Feats);
- for (auto &Feature : Feats)
- if (Target->validateCpuSupports(Feature.str()))
- // Use '?' to mark features that came from TargetVersion.
- ResFeats.push_back("?" + Feature.str());
- return ResFeats;
+// Given a list of FMV features, add each of their backend features to the list.
+static void
+getFMVBackendFeaturesFor(const llvm::SmallVectorImpl<StringRef> &FMVFeatStrings,
+ std::vector<std::string> &BackendFeats) {
----------------
tmatheson-arm wrote:
You could just return the `BackendFeats`
https://github.com/llvm/llvm-project/pull/94279
More information about the llvm-commits
mailing list