class LiveIntervals(Mapping[MergedRegSet, LiveInterval]):
def __init__(self, ops):
# type: (list[Op]) -> None
- self.__merges_reg_sets = MergedRegSets(ops)
+ self.__merged_reg_sets = MergedRegSets(ops)
live_intervals = {} # type: dict[MergedRegSet, LiveInterval]
for op_idx, op in enumerate(ops):
for val in op.inputs().values():
- live_intervals[self.__merges_reg_sets[val]] += op_idx
+ live_intervals[self.__merged_reg_sets[val]] += op_idx
for val in op.outputs().values():
- reg_set = self.__merges_reg_sets[val]
+ reg_set = self.__merged_reg_sets[val]
if reg_set not in live_intervals:
live_intervals[reg_set] = LiveInterval(op_idx)
else:
self.__live_intervals = live_intervals
@property
- def merges_reg_sets(self):
- return self.__merges_reg_sets
+ def merged_reg_sets(self):
+ return self.__merged_reg_sets
def __getitem__(self, key):
# type: (MergedRegSet) -> LiveInterval