API reference
python:irx:irx.builder.state.CleanupAction
class CleanupAction
CleanupAction(emitter: CleanupEmitter, owner_symbol_id: str | None = None, kind: CleanupKind = CleanupKind.RESOURCE, fallible: bool = True, completion_slot: ir.Value | None = None)
Source: packages/irx/src/irx/builder/state.py:31
One active cleanup emitter with optional semantic owner identity.
Infallible actions neither install a pending exception nor transfer control; only audited native free/release operations use that contract.
Attributes
-
emitter — Emitter.; Type: CleanupEmitter
-
owner_symbol_id — Identifier for owner symbol.; Type: str | None
-
kind — Kind of value or operation.; Type: CleanupKind
-
fallible — Whether to use fallible.; Type: bool
-
completion_slot — Boolean storage for completion-aware resource exit. Set from pending failure state before implicit cleanup suspends that state.; Type: ir.Value | None
Methods
- __init__ —