[clang] [llvm] [ThinLTO]Record import type in GlobalValueSummary::GVFlags (PR #87597)
Mingming Liu via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 10 15:05:19 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
----------------
minglotus-6 wrote:
done.
https://github.com/llvm/llvm-project/pull/87597
More information about the cfe-commits
mailing list