Worklist
worklist
¶
Worklist
dataclass
¶
Bases: Generic[_T]
Source code in xdsl/utils/worklist.py
__init__() -> None
¶
__bool__() -> bool
¶
Check if the worklist is non-empty. Runs in worst case O(n) time (amortized constant).
push(item: _T)
¶
Push an item to the end of the worklist, if it is not already in it.
pop() -> _T
¶
Pop the item at the end of the worklist.