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

via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 8 15:15:04 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())
----------------
elizabethandrews wrote:

What attributes use this mangling now? Does it make sense changing this guard to do this mangling only for those attributes instead? As in `if (FD->isXYZ)` 

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


More information about the cfe-commits mailing list