[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)

David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 11:57:36 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 "
----------------
david-xl wrote:

can the local var be promoted to global to enable importing?

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


More information about the llvm-commits mailing list