[clang] [llvm] [Clang][X86] Resolve target_clones calls through GlobalOpt (PR #230278)
Oleksandr Kulkov via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 6 03:50:02 PST 2026
================
@@ -3581,6 +3556,16 @@ bool CodeGenModule::GetCPUAndFeaturesAttributes(GlobalDecl GD,
Attrs.addAttribute("fmv-features", FMVFeatures.substr(1));
AddedAttr = true;
}
+ } else if (getTarget().getTriple().isX86() && getTarget().supportsIFunc() &&
+ TC) {
+ auto Arch = TC->getX86Architecture(GD.getMultiVersionIndex());
----------------
adamant-pwn wrote:
Replaced `auto` with `std::optional<StringRef>`.
https://github.com/llvm/llvm-project/pull/230278
More information about the cfe-commits
mailing list