Re: PseudoOps in primops.txt.pp

2019-08-11 Thread Sebastian Graf
This turned out to be rather lengthy and ambivalent, but my current TLDR; of this is that GHC.Magic Ids could all be PseudoOps, because we don't use their definitions anyway. --- Regarding 2., the answer has been right before my eyes in the form of Note [ghcPrimIds (aka pseudoops)] and Note [magi

PseudoOps in primops.txt.pp

2019-08-11 Thread Sebastian Graf
Hey fellow devs, While implementing new PseudoOps, a couple of questions popped up: 1. What are PseudoOps? When do we want to declare one? There doesn't seem to be any documentation around them. I only figured out that I probably want a PseudoOp by comparing to PrimOps I thought would be