https://github.com/tahonermann approved this pull request.
This looks good to me. I suggested some edits to the doc; take or leave as you
see fit!
https://github.com/llvm/llvm-project/pull/71706
___
lldb-commits mailing list
lldb-commits@lists.llvm.or
https://github.com/tahonermann edited
https://github.com/llvm/llvm-project/pull/71706
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
@@ -2515,6 +2515,12 @@ example, the following will emit 4 versions of the
function:
__attribute__((target_clones("arch=atom,avx2","arch=ivybridge","default")))
void foo() {}
+Dispatch is done via ``ifunc`` mechanism. The assembler name of the indirect
+function is the
@@ -4114,8 +4114,26 @@ void CodeGenModule::emitMultiVersionFunctions() {
}
llvm::Constant *ResolverConstant = GetOrCreateMultiVersionResolver(GD);
-if (auto *IFunc = dyn_cast(ResolverConstant))
+if (auto *IFunc = dyn_cast(ResolverConstant)) {
ResolverCon