File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed
src/bloqade/shuttle/dialects/path Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change 11from typing import cast
22
33from kirin .analysis import const , forward
4- from kirin .interp import InterpreterError , MethodTable , impl
4+ from kirin .interp import MethodTable , impl
55
66from bloqade .shuttle .codegen import TraceInterpreter , reverse_path
77from bloqade .shuttle .dialects import schedule
@@ -43,17 +43,14 @@ def gen(
4343 device_task .move_fn .arg_names , inputs_results , kwargs
4444 )
4545
46- try :
47- path = TraceInterpreter (stmt .arch_spec ).run_trace (
48- device_task .move_fn ,
49- tuple (
50- cast (const .Value , arg ).data if isinstance (arg , const .Value ) else arg
51- for arg in args
52- ),
53- {},
54- )
55- except InterpreterError :
56- return (const .Result .top (),)
46+ path = TraceInterpreter (stmt .arch_spec ).run_trace (
47+ device_task .move_fn ,
48+ tuple (
49+ cast (const .Value , arg ).data if isinstance (arg , const .Value ) else arg
50+ for arg in args
51+ ),
52+ {},
53+ )
5754
5855 if reverse :
5956 path = reverse_path (path )
You can’t perform that action at this time.
0 commit comments