<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Dec 22, 2014 at 11:36 AM, Philip Reames <span dir="ltr"><<a href="mailto:listmail@philipreames.com" target="_blank">listmail@philipreames.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
Actually, why can't you're objective be achieved using the existing
llvm_unreachable mechanism? Create a macro which expands to
llvm_unreachable on all but one target, use that in the
implementation of the case statement. E.g.<br>
case something_x86_specific: {<br>
REACHABLE_ON_X86_ONLY();<br>
.. actual code here<br>
}</div></blockquote><div><br></div><div>I think it can be achieved this way, but it would require making widespread manual LLVM changes instead of making minor attribute changes to generated headers. Seems like a win to me. :)</div></div></div></div>