================ @@ -0,0 +1,59 @@ +//===- LUSummaryEncoding.h --------------------------------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// This file defines the LUSummaryEncoding class, which represents a link unit +// summary in its serialized, format-specific encoding. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_LUSUMMARYENCODING_H +#define LLVM_CLANG_ANALYSIS_SCALABLE_ENTITYLINKER_LUSUMMARYENCODING_H + +#include "clang/Analysis/Scalable/EntityLinker/EntitySummaryEncoding.h" +#include "clang/Analysis/Scalable/Model/BuildNamespace.h" +#include "clang/Analysis/Scalable/Model/EntityId.h" +#include "clang/Analysis/Scalable/Model/EntityIdTable.h" +#include "clang/Analysis/Scalable/Model/EntityLinkage.h" +#include "clang/Analysis/Scalable/Model/SummaryName.h" +#include <map> +#include <memory> + +namespace clang::ssaf { + +/// Represents a link unit summary in its serialized encoding. +/// +/// LUSummaryEncoding holds the combined entity summary data from multiple +/// translation units in a format-specific encoding. It is produced by the +/// entity linker and contains deduplicated and patched entity summaries. +class LUSummaryEncoding { + friend class EntityLinker; + friend class SerializationFormat; + friend class TestFixture; + + /// The namespace identifying this link unit. + NestedBuildNamespace LUNamespace; + + /// Maps entity names to their unique identifiers within this link unit. + EntityIdTable IdTable; + + /// Maps entity IDs to their linkage properties (None, Internal, External). ---------------- jkorous-apple wrote:
I would skip the "(None, Internal, External)" part as that might get out of sync. https://github.com/llvm/llvm-project/pull/181765 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
