|
9 | 9 | from ....dialects import transform
|
10 | 10 | from ....dialects.transform import structured
|
11 | 11 | except ImportError as e:
|
12 |
| - raise RuntimeError("Error loading imports from extension module") from e |
| 12 | + raise RuntimeError("Error loading imports") from e |
13 | 13 |
|
14 | 14 |
|
15 | 15 | @dataclass
|
@@ -41,8 +41,8 @@ def match_ops(
|
41 | 41 | | structured.MatchInterfaceEnum
|
42 | 42 | | Sequence[str | ir.OpView],
|
43 | 43 | ) -> OpHandle:
|
44 |
| - """Returns a handle to ops that match the given names, types, or interface. |
45 |
| -
|
| 44 | + """ |
| 45 | + Returns a handle to ops that match the given names, types, or interface. |
46 | 46 | If only a single type is given, the value wrapped by the resulting
|
47 | 47 | handle is populated with the respective type.
|
48 | 48 | """
|
@@ -90,13 +90,8 @@ def insert_transform_script(
|
90 | 90 | script: Callable[[ValueT], None],
|
91 | 91 | dump_script: bool = False,
|
92 | 92 | ) -> None:
|
93 |
| - """Inserts the transform script of the schedule into the module. |
| 93 | + """Inserts the transform script of the schedule into the module.""" |
94 | 94 |
|
95 |
| - Args: |
96 |
| - module: Existing module into which the script should be inserted. |
97 |
| - script: The transform script to apply at. |
98 |
| - dump_script: Whether to dump the script after creation. |
99 |
| - """ |
100 | 95 | # Insert the script into the IR
|
101 | 96 | with module.context, ir.Location.unknown(module.context):
|
102 | 97 | with ir.InsertionPoint.at_block_begin(module.body):
|
|
0 commit comments