We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scf
Missing interpreter functions for scf operations (split off from #3784 CC @erick-xanadu):
@interpreter.register_impls class ScfFunctionsExt(interpreters.scf.ScfFunctions): @interpreter.impl_terminator(scf.ConditionOp) def run_conditionop(self, interp: interpreter.Interpreter, op: scf.ConditionOp, args: interpreter.PythonValues) -> interpreter.PythonValues: return interpreter.ReturnedValues(args), () @interpreter.impl(scf.WhileOp) def run_whileop(self, interp: interpreter.Interpreter, op: scf.WhileOp, args: interpreter.PythonValues) -> interpreter.PythonValues: results = args while True: before_region = op.before_region results = interp.run_ssacfg_region(before_region, (*results,), "while.before_region") if not results[0]: break results = results[1:] after_region = op.after_region results = interp.run_ssacfg_region(after_region, (*results,), "while.after_region") return results[1:]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Missing interpreter functions for
scf
operations (split off from #3784 CC @erick-xanadu):The text was updated successfully, but these errors were encountered: