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

Method _get_reg

Tools/jit/_optimizers.py:613–616  ·  view source on GitHub ↗
(self, inst: Instruction)

Source from the content-addressed store, hash-verified

611 _frame_pointer_modify = re.compile(r"\s*stp\s+x29.*")
612
613 def _get_reg(self, inst: Instruction) -> str:
614 _, rest = inst.text.split(inst.name)
615 reg, *_ = rest.split(",")
616 return reg.strip()
617
618 def _small_const_1(self, inst: Instruction) -> tuple[str, Instruction | None]:
619 assert inst.kind is InstructionKind.SMALL_CONST_1

Callers 3

_small_const_1Method · 0.95
_small_const_2Method · 0.95
_small_consts_matchMethod · 0.95

Calls 2

splitMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected