[compiler-rt] [llvm] [ThinLTO][TypeProf] Allow importing of local-linkage global variables in mod1:func_foo->mod2:func_bar -> mod2:local-var chain (PR #100448)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 12:52:26 PDT 2024


================
@@ -174,6 +174,18 @@ static cl::opt<std::string> WorkloadDefinitions(
              "}"),
     cl::Hidden);
 
+static cl::opt<bool> ImportAssumeUniqueLocal(
+    "import-assume-unique-local", cl::init(false),
+    cl::desc(
+        "By default, a local-linkage global variable won't be imported in the "
----------------
minglotus-6 wrote:

As shown in the updated test, with this option on, when the local-var gets imported, it will have a global name `<vtable>.llvm.<mod-hash>`.

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


More information about the llvm-commits mailing list