forked from M-Labs/artiq
1
0
Fork 0

compiler: fix send_message after stackrestore

This commit is contained in:
mwojcik 2024-01-31 17:03:03 +08:00 committed by Sébastien Bourdeauducq
parent 502204cab2
commit 849b77fbf2
1 changed files with 2 additions and 2 deletions

View File

@ -1717,9 +1717,9 @@ class LLVMIRGenerator:
llargcount = ll.Constant(lli8, len(args)) llargcount = ll.Constant(lli8, len(args))
llisreturn = ll.Constant(lli1, False) llisreturn = ll.Constant(lli1, False)
self.llbuilder.call(self.llbuiltin("llvm.stackrestore"), [llstackptr]) self.llbuilder.call(self.llbuiltin("subkernel_send_message"),
return self.llbuilder.call(self.llbuiltin("subkernel_send_message"),
[llid, llisreturn, lldest, llargcount, lltagptr, llargs]) [llid, llisreturn, lldest, llargcount, lltagptr, llargs])
return self.llbuilder.call(self.llbuiltin("llvm.stackrestore"), [llstackptr])
def _build_subkernel_return(self, insn): def _build_subkernel_return(self, insn):
# builds a remote return. # builds a remote return.