[llvm] [ThinLTO]Record import type in GlobalValueSummary::GVFlags (PR #87597)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 9 14:08:17 PDT 2024


================
@@ -432,6 +432,18 @@ class GlobalValueSummary {
   /// Sububclass discriminator (for dyn_cast<> et al.)
   enum SummaryKind : unsigned { AliasKind, FunctionKind, GlobalVarKind };
 
+  enum ImportKind : unsigned {
+    // The global value definition corresponding to the summary should be
+    // imported from source module
+    Definition = 0,
+
+    // When its definition doesn't exist in the destination module and not
+    // imported (e.g., function is large to be inlined), the global value
----------------
teresajohnson wrote:

"too large"

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


More information about the llvm-commits mailing list