1- from textwrap import dedent
2-
3- import pytest
4-
51import mlir .extras .types as T
2+ import pytest
3+ from mlir .dialects .builtin import module
64from mlir .dialects .func import return_
75from mlir .dialects .memref import alloca_scope , alloca_scope_return
86from mlir .dialects .scf import yield_ as scf_yield
97from mlir .dialects .tensor import rank , yield_ as tensor_yield
10- from mlir .dialects .builtin import module
8+ from mlir .extras .types import tensor
9+
1110from mlir .extras .dialects .ext import linalg , memref
1211from mlir .extras .dialects .ext .arith import constant
1312from mlir .extras .dialects .ext .cf import br , cond_br
1413from mlir .extras .dialects .ext .func import func
1514from mlir .extras .dialects .ext .memref import alloca_scope
1615from mlir .extras .dialects .ext .scf import execute_region
1716from mlir .extras .dialects .ext .tensor import S , generate
18- from mlir .extras .util import bb
1917
2018# noinspection PyUnresolvedReferences
2119from mlir .extras .testing import (
2422 filecheck_with_comments ,
2523 MLIRContext ,
2624)
27- from mlir .extras .types import tensor
25+ from mlir .extras .util import bb
2826
2927# needed since the fix isn't defined here nor conftest.py
3028pytest .mark .usefixtures ("ctx" )
@@ -409,7 +407,6 @@ def matmul_i16_i16(
409407
410408
411409def test_defer_emit_1 (ctx : MLIRContext ):
412-
413410 matmul_i16_i16 .emit (decl = True )
414411
415412 @module
@@ -428,7 +425,6 @@ def mod():
428425
429426
430427def test_defer_emit_2 (ctx : MLIRContext ):
431-
432428 matmul_i16_i16 .emit (force = True )
433429
434430 @module
@@ -459,7 +455,6 @@ def matmul_i16_i16(
459455
460456
461457def test_defer_emit_3 (ctx : MLIRContext ):
462-
463458 matmul_i16_i16 .emit (force = True )
464459
465460 @module
0 commit comments