[clang] [llvm] [FMV][AIX] Implement target_clones part 2 (target-features) (PR #206786)
Wael Yehia via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 14 18:55:15 PDT 2026
================
@@ -15355,8 +15355,11 @@ void ASTContext::getFunctionFeatureMap(llvm::StringMap<bool> &FeatureMap,
StringRef VersionStr = TC->getFeatureStr(GD.getMultiVersionIndex());
if (VersionStr.starts_with("cpu="))
TargetCPU = VersionStr.drop_front(sizeof("cpu=") - 1);
- else
- assert(VersionStr == "default");
+ else if (VersionStr != "default") {
+ // Handle feature strings
+ ParsedTargetAttr ParsedAttr = Target->parseTargetAttr(VersionStr);
+ Features = ParsedAttr.Features;
----------------
w2yehia wrote:
done
https://github.com/llvm/llvm-project/pull/206786
More information about the cfe-commits
mailing list