Binders in STG can be bound to multi-values (stuff represented by multiple
values, e.g. unboxed tuples with more than one non-void arguments) initially but
before codegen those need to be eliminated. The pass that does is "unarise", see
GHC.Stg.Unarise module which has lots of notes explaning everything in details.
So CoreToStg generates STG with multi-value binders.
Unarise eliminates those binders, making sure every binder holds one value.
Csaba Hruska <[hidden email]>, 20 Oca 2020 Pzt, 13:41
tarihinde şunu yazdı:
> Can an STG variable (Id) store a whole unboxed tuple value?
> Or is it required to decompose a returned unboxed value immediately by using an StgCase expression?
> If so, then is it correct that the STG variables can store values only from the following types: Addr, Float, Double, Int, Word, Ptr (for boxed values)? (and no multi-value values)
> ghc-devs mailing list
> [hidden email] > http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs