Next: Translation of return statement
Up: Translating method invocations
Previous: Translating method invocations
Contents
Index
Methods that return multiarrays
The scheme for translating a multiarray-valued method invocation
is illustrated in Figure A.32.
The macro TRANS_ID encodes the dimension signature of the returned
array and is defined in section A.4.2.
The macro TRANS_ARGS was defined earlier in this section.
The macro TRANS_DIM is defined as
if the
th dimension of the result is distributed, or
if the
th dimension is sequential.
[Also need to support invocation as a statement expression, with source:
and translation:
]
Figure A.33:
Translation of return statement in array-valued method.
SOURCE:
TRANSLATION:
where:
|
Next: Translation of return statement
Up: Translating method invocations
Previous: Translating method invocations
Contents
Index
Bryan Carpenter
2003-04-15