Re: Unboxed Tuple in a single STG variable

2020-01-20 Thread Ömer Sinan Ağacan
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.

Ömer

Csaba Hruska , 20 Oca 2020 Pzt, 13:41
tarihinde şunu yazdı:
>
> Hello,
>
> 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)
>
> Thanks,
> Csaba
> ___
> ghc-devs mailing list
> ghc-devs@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Unboxed Tuple in a single STG variable

2020-01-20 Thread Csaba Hruska
Hello,

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)

Thanks,
Csaba
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs