We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19ac7b2 commit 6c1c09eCopy full SHA for 6c1c09e
loopy/transform/instruction.py
@@ -39,7 +39,7 @@
39
40
41
if TYPE_CHECKING:
42
- from collections.abc import Mapping, Sequence
+ from collections.abc import Callable, Mapping, Sequence
43
44
from pymbolic import ArithmeticExpression
45
from pymbolic.primitives import Subscript
@@ -84,7 +84,8 @@ def find_instructions(
84
85
# {{{ map_instructions
86
87
-def map_instructions(kernel, insn_match, f):
+def map_instructions(kernel: LoopKernel, insn_match: ToMatchConvertible,
88
+ f: Callable[[InstructionBase], InstructionBase]) -> LoopKernel:
89
from loopy.match import parse_match
90
match = parse_match(insn_match)
91
0 commit comments