Skip to content

Commit 9ea6465

Browse files
charithaintcclaude
andcommitted
[transform_ext] Port set_fastmath get_effects to the new interface
SetFastmathOp only exists on this branch, so the main merge that ported every other extension to the returning form of MemoryEffectsOpInterface.get_effects did not cover it. Without this, every schedule using the extension fails with "get_effects() missing 1 required positional argument: 'effects'". Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent af79c27 commit 9ea6465

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎lighthouse/dialects/transform/transform_ext/ops/set_fastmath.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ def allow_repeated_handle_operands(_op: "SetFastmathOp") -> bool:
104104

105105
class MemoryEffectsOpInterfaceModel(ir.MemoryEffectsOpInterface):
106106
@staticmethod
107-
def get_effects(op: ir.Operation, effects):
108-
transform.only_reads_handle(op.op_operands, effects)
109-
transform.produces_handle(op.results, effects)
110-
transform.modifies_payload(effects)
107+
def get_effects(op: ir.Operation):
108+
return (
109+
transform.only_reads_handle(op.op_operands)
110+
+ transform.produces_handle(op.results)
111+
+ transform.modifies_payload()
112+
)
111113

112114

113115
def set_fastmath(

0 commit comments

Comments
 (0)