You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: document/core/exec/values.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ The following auxiliary typing rules specify this typing relation relative to a
48
48
49
49
* The :ref:`heap type <syntax-heaptype>` must be :ref:`valid <valid-heaptype>` under the empty :ref:`context <context>`.
50
50
51
-
* Then value is valid with :ref:`reference type <syntax-reftype>` :math:`(\REF~\NULL~t')`, where the :ref:`heap type <syntax-heaptype>` :math:`t'` that is the least type that :ref:`matches <match-heaptype>` :math:`t`.
51
+
* Then the value is valid with :ref:`reference type <syntax-reftype>` :math:`(\REF~\NULL~t')`, where the :ref:`heap type <syntax-heaptype>` :math:`t'` is the least type that :ref:`matches <match-heaptype>` :math:`t`.
Copy file name to clipboardExpand all lines: document/core/syntax/types.rst
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,7 @@ Conventions
81
81
.. _type-concrete:
82
82
.. _syntax-i31:
83
83
.. _syntax-heaptype:
84
+
.. _syntax-absheaptype:
84
85
85
86
Heap Types
86
87
~~~~~~~~~~
@@ -298,12 +299,21 @@ Structures are heterogeneous, but require static indexing, while arrays need to
298
299
\end{array}
299
300
300
301
.. _bitwidth-fieldtype:
302
+
.. _aux-unpacktype:
301
303
302
304
Conventions
303
305
...........
304
306
305
307
* The notation :math:`|t|` for :ref:`bit width <bitwidth-valtype>` extends to packed types as well, that is, :math:`|\I8| = 8` and :math:`|\I16| = 16`.
306
308
309
+
* The auxiliary function :math:`\unpacktype` maps a storage type to the :ref:`value type <syntax-valtype>` obtained when accessing a field:
310
+
311
+
.. math::
312
+
\begin{array}{lll}
313
+
\unpacktype(\valtype) &=& \valtype \\
314
+
\unpacktype(\packedtype) &=& \I32 \\
315
+
\end{array}
316
+
307
317
308
318
.. index:: ! composite type, function type, aggreagate type, structure type, array type
0 commit comments