API reference
python:irx:irx.analysis.resolved_nodes.SemanticClassLayout
class SemanticClassLayout
SemanticClassLayout(llvm_name: str, object_representation: ClassObjectRepresentationKind, descriptor_global_name: str, dispatch_global_name: str, header_fields: tuple[SemanticClassHeaderField, ...] = (), instance_fields: tuple[SemanticClassLayoutField, ...] = (), field_slots: dict[str, SemanticClassLayoutField] = dict(), visible_field_slots: dict[str, SemanticClassLayoutField] = dict(), dispatch_entries: tuple[SemanticClassMethodDispatch, ...] = (), dispatch_slots: dict[int, SemanticClassMethodDispatch] = dict(), visible_method_slots: dict[str, SemanticClassMethodDispatch] = dict(), dispatch_table_size: int = 0, static_fields: tuple[SemanticClassStaticStorage, ...] = (), static_storage: dict[str, SemanticClassStaticStorage] = dict(), visible_static_storage: dict[str, SemanticClassStaticStorage] = dict())
Source: packages/irx/src/irx/analysis/resolved_nodes.py:723
Canonical class-object layout metadata.
Normalize the low-level object representation, hidden header slots, flattened instance-field storage, and static-global storage names for one class.
Attributes
-
llvm_name — Name of LLVM.; Type: str
-
object_representation — Object representation.; Type: ClassObjectRepresentationKind
-
descriptor_global_name — Name of descriptor global.; Type: str
-
dispatch_global_name — Name of dispatch global.; Type: str
-
header_fields — Header fields.; Type: tuple[SemanticClassHeaderField, ...]
-
instance_fields — Instance fields.; Type: tuple[SemanticClassLayoutField, ...]
-
field_slots — Field slots.; Type: dict[str, SemanticClassLayoutField]
-
visible_field_slots — Visible field slots.; Type: dict[str, SemanticClassLayoutField]
-
dispatch_entries — Dispatch entries.; Type: tuple[SemanticClassMethodDispatch, ...]
-
dispatch_slots — Dispatch slots.; Type: dict[int, SemanticClassMethodDispatch]
-
visible_method_slots — Visible method slots.; Type: dict[str, SemanticClassMethodDispatch]
-
dispatch_table_size — Size of dispatch table.; Type: int
-
static_fields — Static fields.; Type: tuple[SemanticClassStaticStorage, ...]
-
static_storage — Static storage.; Type: dict[str, SemanticClassStaticStorage]
-
visible_static_storage — Visible static storage.; Type: dict[str, SemanticClassStaticStorage]
Methods
- __init__ —