[all-commits] [llvm/llvm-project] e3b105: Make multiversioning work with internal linkage
Erich Keane via All-commits
all-commits at lists.llvm.org
Fri Sep 17 05:56:53 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e3b10525b489b604d6a1e540be78bda80afb5868
https://github.com/llvm/llvm-project/commit/e3b10525b489b604d6a1e540be78bda80afb5868
Author: Erich Keane <erich.keane at intel.com>
Date: 2021-09-17 (Fri, 17 Sep 2021)
Changed paths:
M clang/lib/CodeGen/CodeGenModule.cpp
M clang/test/CodeGen/unique-internal-linkage-names.cpp
A clang/test/CodeGenCXX/multi-versioning-internal-linkage.cpp
Log Message:
-----------
Make multiversioning work with internal linkage
We previously made all multiversioning resolvers/ifuncs have weak
ODR linkage in IR, since we NEED to emit the whole resolver every time
we see a call, but it is not necessarily the place where all the
definitions live.
HOWEVER, when doing so, we neglected the case where the versions have
internal linkage. This patch ensures we do this, so you don't get weird
behavior with static functions.
More information about the All-commits
mailing list