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>