API reference

python:irx:irx.analysis.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

Declared as: python:irx:irx.analysis.resolved_nodes.SemanticClassLayout

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

Methods

Attributes

Search documentation

Type to search.