MCPcopy Index your code
hub / github.com/python/cpython / _lookup_label

Method _lookup_label

Tools/jit/_optimizers.py:301–304  ·  view source on GitHub ↗
(self, label: str)

Source from the content-addressed store, hash-verified

299 return inst.update_name_and_target(inverted, target)
300
301 def _lookup_label(self, label: str) -> _Block:
302 if label not in self._labels:
303 self._labels[label] = _Block(label)
304 return self._labels[label]
305
306 def _is_far_target(self, label: str) -> bool:
307 return not label.startswith(self.label_prefix)

Callers 3

__post_init__Method · 0.95
_remove_unreachableMethod · 0.95

Calls 1

_BlockClass · 0.85

Tested by

no test coverage detected