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

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.