MCPcopy Index your code
hub / github.com/python/mypy / LoweringVisitor

Class LoweringVisitor

mypyc/transform/lower.py:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29class LoweringVisitor(IRTransform):
30 def visit_primitive_op(self, op: PrimitiveOp) -> Value | None:
31 # The lowering implementation functions of various primitive ops are stored
32 # in a registry, which is populated using function decorators. The name
33 # of op (such as "int_eq") is used as the key.
34 lower_fn = lowering_registry[op.desc.name]
35 return lower_fn(self.builder, op.args, op.line)

Callers 1

lower_irFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…