()
| 349 | |
| 350 | |
| 351 | def test_simple_call_tir_edge(): |
| 352 | with PatternContext() as ctx: |
| 353 | n0 = is_call_tir("tir_matmul") |
| 354 | n1 = is_call_tir("tir_relu") |
| 355 | n0.used_by(n1) |
| 356 | dfb = main_fn.body.blocks[0] |
| 357 | matched = ctx.match_dfb(dfb) |
| 358 | assert matched |
| 359 | assert matched[n0] == dfb.bindings[0].var |
| 360 | assert matched[n1] == dfb.bindings[1].var |
| 361 | |
| 362 | |
| 363 | def test_simple_oub(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…