Xiangyang Guo via llvm-dev
2016-Feb-29 04:34 UTC
[llvm-dev] define an intrinsic function as terminator instruction
Hi, I want to define an intrinsic function as terminator instruction of one basic block, is this doable? If so, what attribute should I attach to this intrinsic function? Any input is appreciable. Regards, Xiangyang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160228/f8a2062b/attachment.html>
Jeremy Lakeman via llvm-dev
2016-Feb-29 06:29 UTC
[llvm-dev] define an intrinsic function as terminator instruction
I believe that similar to similar to calling @llvm.trap, you could mark the call as noreturn. And follow it with an unreachable terminator instruction. On Mon, Feb 29, 2016 at 3:04 PM, Xiangyang Guo via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hi, > > I want to define an intrinsic function as terminator instruction of one > basic block, is this doable? If so, what attribute should I attach to this > intrinsic function? > > Any input is appreciable. > > Regards, > > Xiangyang > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160229/7903b8b5/attachment.html>