|
8 | 8 | from ...util import get_user_code_loc
|
9 | 9 | from ....dialects import pdl
|
10 | 10 | from ....dialects import transform
|
11 |
| -from ....dialects._ods_common import ( |
12 |
| - _dispatch_mixed_values, |
13 |
| -) |
14 |
| -from ....dialects._ods_common import get_op_result_or_op_results |
| 11 | +from ....dialects._ods_common import _dispatch_mixed_values, get_op_result_or_op_results |
15 | 12 | from ....dialects._structured_transform_ops_gen import (
|
16 | 13 | TileUsingForallOp,
|
17 | 14 | MatchOp,
|
18 | 15 | )
|
19 | 16 | from ....dialects.transform import *
|
| 17 | +from ....dialects.transform import AnyOpType, AnyValueType, OperationType |
20 | 18 | from ....dialects.transform.structured import TileUsingForOp
|
| 19 | +from ....dialects.transform.loop import LoopUnrollOp |
21 | 20 | from ....ir import Type, Operation, StringAttr, Attribute, Value
|
22 | 21 |
|
23 | 22 | transform_fully_qualified_name = transform.__spec__.name
|
24 | 23 |
|
25 | 24 |
|
26 |
| -def create_simple_namespace(name): |
27 |
| - return SimpleNamespace(__name__=name) |
28 |
| - |
29 |
| - |
30 | 25 | # transform.apply_patterns is both a namespace and an op...
|
31 | 26 | delattr(transform, "apply_patterns")
|
32 | 27 |
|
@@ -57,7 +52,8 @@ def create_simple_namespace(name):
|
57 | 52 |
|
58 | 53 | for i, n in enumerate(namespaces[1:-1]):
|
59 | 54 | if not hasattr(simple_namespace, n):
|
60 |
| - # dumb: without the prefix, this somehow always names the modules "mlir.dialect.module.transform.<n>" instead of suffixing |
| 55 | + # dumb: without the prefix, this somehow always names the modules |
| 56 | + # "mlir.dialect.module.transform.<n>" instead of suffixing |
61 | 57 | setattr(
|
62 | 58 | simple_namespace,
|
63 | 59 | n,
|
|
0 commit comments