chessai . chessai1996 at gmail.com
Mon Jul 1 15:27:00 UTC 2019


Copying on ghc-devs, since i think that's what you wanted.

On Mon, Jul 1, 2019, 11:14 AM Andrew Martin <andrew.thaddeus at gmail.com>
wrote:

> 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.
>
> --
> -Andrew Thaddeus Martin
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20190701/6c3f21ea/attachment.html>


More information about the ghc-devs mailing list