<div dir="ltr"><div><div>Hello Reed,<br><br></div>Basic blocks need to end with a terminator instruction.<br>There is an "unreachable" terminator instruction, whose documentation says:<br>"the presence of this instruction indicates some higher level knowledge that the end of the block cannot be reached."<br>
</div><div>(see include/llvm/IR/Instructions.h).<br></div><div>I've been able to suppress the return using this.  I'm not completely clear if this would be the right use for your scenario.<br><br></div><div>Pete<br>
<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 20, 2013 at 2:16 PM, Reed Kotler <span dir="ltr"><<a href="mailto:rkotler@mips.com" target="_blank">rkotler@mips.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 04/20/2013 02:04 PM, Reed Kotler wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 04/20/2013 01:30 PM, reed kotler wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can I create a "naked" function that has only inline assembler and no<br>
return IR for example?<br>
<br>
If I create just a function will an empty basic block, it's core dumps.<br>
<br>
I'm debugging it now.<br>
</blockquote>
<br>
Seems that you have to have at least a return instruction.<br>
<br>
Is that a bug?<br>
<br>
Why can't I do the return myself if it's all inline assembly code.<br>
</blockquote>
<br></div>
It's not hard for me to suppress the return in "naked" functions.<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div>