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:819
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 — Type: str
-
object_representation — Type: ClassObjectRepresentationKind
-
descriptor_global_name — Type: str
-
dispatch_global_name — Type: str
-
header_fields — Type: tuple[SemanticClassHeaderField, Ellipsis]
-
instance_fields — Type: tuple[SemanticClassLayoutField, Ellipsis]
-
field_slots — Type: dict[str, SemanticClassLayoutField]
-
visible_field_slots — Type: dict[str, SemanticClassLayoutField]
-
dispatch_entries — Type: tuple[SemanticClassMethodDispatch, Ellipsis]
-
dispatch_slots — Type: dict[int, SemanticClassMethodDispatch]
-
visible_method_slots — Type: dict[str, SemanticClassMethodDispatch]
-
dispatch_table_size — Type: int
-
static_fields — Type: tuple[SemanticClassStaticStorage, Ellipsis]
-
static_storage — Type: dict[str, SemanticClassStaticStorage]
-
visible_static_storage — Type: dict[str, SemanticClassStaticStorage]
Methods
- __init__ —