ocaml-flambda / flambda-backend

The Flambda backend project for OCaml
103 stars 74 forks source link

Proper void machtype in Cmm #1218

Open mshinwell opened 1 year ago

Gbury commented 1 year ago

If we consider changing machtypes, I think that we'd also want to (finally) have different machtypes for tagged integers and raw/naked integers, and change the machtype partial order to make naked integers and tagged integers/ocaml values incomparables.

Gbury commented 1 year ago

The additional machtypes would help ensure that we never mistakenly promote or use a naked integer as a tagged integer (particularly as it pertains to GC scanning).