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

Method parse_macro

python/tvm/tirx/script/parser/entry.py:389–394  ·  view source on GitHub ↗
(self, parser: Parser)

Source from the content-addressed store, hash-verified

387 self.call_count = 0
388
389 def parse_macro(self, parser: Parser) -> None:
390 macro_def = self.get_macro_def()
391 suffix = f"_{self.call_count}" if self.call_count > 0 else ""
392 self.call_count += 1
393 with block_name_suffix_context(suffix):
394 parser.visit_body(macro_def.body)
395
396
397def macro(*args, hygienic: bool = True) -> Callable:

Callers

nothing calls this directly

Calls 3

get_macro_defMethod · 0.80
visit_bodyMethod · 0.80

Tested by

no test coverage detected