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

Function add_op

Tools/cases_generator/analyzer.py:1084–1091  ·  view source on GitHub ↗
(op: parser.InstDef, uops: dict[str, Uop])

Source from the content-addressed store, hash-verified

1082
1083
1084def add_op(op: parser.InstDef, uops: dict[str, Uop]) -> None:
1085 assert op.kind == "op"
1086 if op.name in uops:
1087 if "override" not in op.annotations:
1088 raise override_error(
1089 op.name, op.context, uops[op.name].context, op.tokens[0]
1090 )
1091 uops[op.name] = make_uop(op.name, op, op.inputs, uops)
1092
1093
1094def add_instruction(

Callers 2

test_basicsMethod · 0.85
analyze_forestFunction · 0.85

Calls 2

override_errorFunction · 0.85
make_uopFunction · 0.85

Tested by 1

test_basicsMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…