mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-18 07:56:30 +08:00
compiler/inline: return number -> function RPC map
This commit is contained in:
parent
a03a60b90e
commit
ffd2bdc4eb
@ -238,4 +238,5 @@ def inline(core, k_function, k_args, k_kwargs, rm=None):
|
||||
if init_kernel_attr:
|
||||
funcdef.body[0:0] = rm.kernel_attr_init
|
||||
|
||||
return funcdef.body, rm.rpc_map
|
||||
r_rpc_map = dict((rpc_num, rpc_fun) for rpc_fun, rpc_num in rm.rpc_map.items())
|
||||
return funcdef.body, r_rpc_map
|
||||
|
Loading…
Reference in New Issue
Block a user