<div dir="auto">Copying on ghc-devs, since i think that's what you wanted.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 1, 2019, 11:14 AM Andrew Martin <<a href="mailto:andrew.thaddeus@gmail.com">andrew.thaddeus@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">To get GHC to raise an exception from an inline primop, I presume that I'd need to jump to stg_raisezh. None of the existing inline primops do anything quite like this. I see things like emitMemcmpCall and emitMemsetCall, but these ultimately just wrap emitForeignCall, which wraps mkUnsafeCall, which wraps the data constructor CmmUnsafeForeignCall. I think I want CmmCall instead, which is described by the comments as being used for "a native call or tail call". Hmm... emitRtsCall might be what I want. I'll try pursuing this route further.<br clear="all"><br>-- <br><div dir="ltr" class="m_1595611410420839287gmail_signature" data-smartmail="gmail_signature">-Andrew Thaddeus Martin</div></div>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank" rel="noreferrer">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div>