(func)
| 27 | |
| 28 | |
| 29 | def 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 | |
| 39 | def test_scalar_add(): |
no test coverage detected
searching dependent graphs…