MCPcopy Create free account
hub / github.com/apache/tvm / build_tir_func

Function build_tir_func

tests/python/tirx-base/test_tir_base.py:29–36  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

27
28
29def build_tir_func(func):
30 func = func.with_attr("global_symbol", "main")
31 pass_ctx = PassContext.current()
32 if pass_ctx.config.get("tirx.noalias", True):
33 func = func.with_attr("tirx.noalias", True)
34 mod = tvm.IRModule({"main": func})
35 func = tvm.compile(mod)
36 return func
37
38
39def test_scalar_add():

Callers 5

test_scalar_addFunction · 0.85
test_ret_constFunction · 0.85
test_control_flow_jumpFunction · 0.85
test_break_loopFunction · 0.85
test_continue_loopFunction · 0.85

Calls 4

with_attrMethod · 0.45
currentMethod · 0.45
getMethod · 0.45
compileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…