[LLVMdev] [RFC] Stripping unusable intrinsics

Reid Kleckner rnk at google.com
Mon Dec 22 11:49:27 PST 2014


On Mon, Dec 22, 2014 at 11:36 AM, Philip Reames <listmail at philipreames.com>
wrote:
>
> 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.
> case something_x86_specific: {
>   REACHABLE_ON_X86_ONLY();
>   .. actual code here
> }
>

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. :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141222/c60b9529/attachment.html>


More information about the llvm-dev mailing list