Advice needed: programmatically generating primops?

Geoffrey Mainland mainland at
Fri Feb 15 11:51:23 CET 2013

Hi All,

There is a huge amount of boilerplate involved in adding a full
complement of vector primops to GHC. I would like to reduce this
boilerplate by programmatically generating the vector primops. My plan
is to add utils/genvecprimops and #include its output into

Does this sound reasonable? Any objections? While I'm at it, is there
any related cleanup I could undertake?


More information about the ghc-devs mailing list