(
A: T.Buffer((2, 3), "int32"), B: T.Buffer((2, 3), "int32"), C: T.Buffer((2, 3), "int32")
)
| 322 | class Input: |
| 323 | @T.prim_func(s_tir=True) |
| 324 | def copy( |
| 325 | A: T.Buffer((2, 3), "int32"), B: T.Buffer((2, 3), "int32"), C: T.Buffer((2, 3), "int32") |
| 326 | ): |
| 327 | # copies the contents of C into A and B |
| 328 | T.func_attr({"tirx.noalias": True}) |
| 329 | for i0, i1 in T.grid(T.int64(2), T.int64(3)): |
| 330 | with T.sblock("T_zeros"): |
| 331 | ax0, ax1 = T.axis.remap("SS", [i0, i1]) |
| 332 | T.reads(C[ax0, ax1]) |
| 333 | T.writes(A[ax0, ax1], B[ax0, ax1]) |
| 334 | A[ax0, ax1] = C[ax0, ax1] |
| 335 | B[ax0, ax1] = C[ax0, ax1] |
| 336 | |
| 337 | @R.function |
| 338 | def foo( |
no test coverage detected