[llvm-dev] is it allowed to use musttail on llvm.coro.resume?

Andrew Kelley via llvm-dev llvm-dev at lists.llvm.org
Thu Mar 1 19:46:08 PST 2018


It makes sense that you would be able to do this:

%save1 = llvm.coro.save()
%unused = musttail call llvm.coro.resume(%some_handle)
%x = llvm.coro.suspend()
...

But the docs for musttail say:
> The call must immediately precede a ret instruction, or a pointer bitcast
followed by a ret instruction.

Should this be amended to allow a musttail to be followed by
llvm.coro.suspend() ?

Regards,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180301/d3dd45de/attachment.html>


More information about the llvm-dev mailing list