Hey all, I've been staring at the cmm primop code in ghc over the past week to understand a number of things, and I was just today looking at the current cmm documentation on the ghc wiki.
specifically i've been looking at
and
versus the wiki docs
it looks like CMM supports a nicer function definition convention than the wiki implies.
(and presumably that also would hold for the ffi for calling user written cmm code too?)
If the wiki is out of date, i'm happy to make a first pass at trying to add this info somewhere,
thanks
-Carter