[llvm-dev] define an intrinsic function as terminator instruction

Jeremy Lakeman via llvm-dev llvm-dev at lists.llvm.org
Sun Feb 28 22:29:28 PST 2016


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>


More information about the llvm-dev mailing list