MCPcopy Index your code
hub / github.com/apache/tvm / visit_while

Function visit_while

python/tvm/tirx/script/parser/parser.py:299–313  ·  view source on GitHub ↗

The while visiting method for tirx. Parameters ---------- self : Parser The visiting parser. node : doc.While The doc AST while node.

(self: Parser, node: doc.While)

Source from the content-addressed store, hash-verified

297
298@dispatch.register(token="tirx", type_name="While")
299def visit_while(self: Parser, node: doc.While) -> None:
300 """The while visiting method for tirx.
301
302 Parameters
303 ----------
304 self : Parser
305 The visiting parser.
306
307 node : doc.While
308 The doc AST while node.
309 """
310 with self.var_table.with_frame():
311 cond = self.eval_expr(node.test)
312 with T.While(cond):
313 self.visit_body(node.body)
314
315
316@dispatch.register(token="tirx", type_name="Break")

Callers

nothing calls this directly

Calls 3

with_frameMethod · 0.80
eval_exprMethod · 0.80
visit_bodyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…