================
@@ -4652,6 +4659,7 @@ llvm::Constant
*CodeGenModule::GetOrCreateMultiVersionResolver(GlobalDecl GD) {
"", Resolver, &getModule());
GIF->setName(ResolverName);
SetCommonAttributes(FD, GIF);
+ SetResolverAttrs(cast<llvm::Function>(Resolver));
----------------
labrinea wrote:
However at this point, the IFUNC resolver is just a declaration. We should
perhaps call `setCommonAttributes` and
`getTargetCodeGenInfo().setTargetAttributes` right after the invokation of
`EmitMultiVersionResolver`where the actual definition of the resolver function
is emitted. I've just tried this and the resolver is indeed marked "hidden"
with -fvisibility=hidden.
https://github.com/llvm/llvm-project/pull/141573
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits