[clang] [llvm] Split fmv and extensions (PR #92882)
Alexandros Lamprineas via cfe-commits
cfe-commits at lists.llvm.org
Wed May 29 06:52:40 PDT 2024
================
@@ -13754,11 +13750,14 @@ void ASTContext::getFunctionFeatureMap(llvm::StringMap<bool> &FeatureMap,
}
Target->initFeatureMap(FeatureMap, getDiagnostics(), TargetCPU, Features);
} else if (const auto *TV = FD->getAttr<TargetVersionAttr>()) {
- std::vector<std::string> Feats = filterFunctionTargetVersionAttrs(TV);
+ llvm::SmallVector<StringRef, 8> Feats;
+ TV->getFeatures(Feats);
+ std::vector<std::string> Features;
+ GetFMVBackendFeaturesFor(Feats, Features);
Feats.insert(Feats.begin(),
----------------
labrinea wrote:
s/Feats/Features
https://github.com/llvm/llvm-project/pull/92882
More information about the cfe-commits
mailing list