1 Commits

Author SHA1 Message Date
Jan Korous
1a4596c1d7
[clang][ssaf] Add EntityId and EntityIdTable for efficient entity handling (#171660)
Introduce EntityId and EntityIdTable to provide efficient, lightweight
handles
for working with EntityNames in the Scalable Static Analysis Framework
(SSAF).

Introduces two key components:
- EntityId: Lightweight opaque handle representing an entity in an
EntityIdTable
- EntityIdTable: Entity name interning table that maps unique
EntityNames to EntityIds

The interning table ensures each EntityName maps to exactly one
EntityId,
providing fast equality comparisons and lookups. EntityIds are
index-based
and remain stable for the lifetime of their table. This enables
efficient
entity tracking and comparison operations needed for TU summary
extraction and serialization.

---------

Co-authored-by: Yitzhak Mandelbaum <ymand@users.noreply.github.com>
2025-12-19 16:49:23 -08:00