[LLVMdev] NVPTX: why ret instruction is not translated to exit in kernel function?

Yabin Hu yabin.hwu at gmail.com
Mon May 14 23:40:20 PDT 2012


Hi Justin,

In the PTX backend, "ret" instruction at the end of a ptx_kernel function
is translated to "exit" instruction. A test case named exit.ll demos this.
But in the NVPTX backend, it seems that you didn't do such a translation.
 Why do you choose this? Is this due to the changes of the NVIDA PTX itself?

Thanks,

Yabin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120515/505f679b/attachment.html>


More information about the llvm-dev mailing list