[clang] [clang][fmv] Drop .ifunc from target_version's entrypoint's mangling (PR #81194)

Jon Roelofs via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 8 15:16:19 PST 2024


================
@@ -4393,7 +4394,7 @@ llvm::Constant *CodeGenModule::GetOrCreateMultiVersionResolver(GlobalDecl GD) {
   // a separate resolver).
   std::string ResolverName = MangledName;
   if (getTarget().supportsIFunc()) {
-    if (!FD->isTargetClonesMultiVersion())
+    if (!FD->isTargetClonesMultiVersion() && !FD->isTargetVersionMultiVersion())
----------------
jroelofs wrote:

`target` and the two cpu-specific ones. I'll change it to a switch.

https://github.com/llvm/llvm-project/pull/81194


More information about the cfe-commits mailing list