@@ -1182,16 +1182,16 @@ built-ins).
1182
1182
1183
1183
### ` canon lift `
1184
1184
1185
- For a function :
1185
+ For a canonical definition :
1186
1186
```
1187
1187
(canon lift $callee:<funcidx> $opts:<canonopt>* (func $f (type $ft)))
1188
1188
```
1189
1189
validation specifies:
1190
- * ` $callee ` must have type ` flatten($ft, 'lift') `
1191
- * ` $f ` is given type ` $ft `
1192
- * a ` memory ` is present if required by lifting and is a subtype of ` (memory 1) `
1193
- * a ` realloc ` is present if required by lifting and has type ` (func (param i32 i32 i32 i32) (result i32)) `
1194
- * if a ` post-return ` is present, it has type ` (func (param flatten($ft)['results'])) `
1190
+ * ` $callee ` must have type ` flatten($ft, 'lift') `
1191
+ * ` $f ` is given type ` $ft `
1192
+ * a ` memory ` is present if required by lifting and is a subtype of ` (memory 1) `
1193
+ * a ` realloc ` is present if required by lifting and has type ` (func (param i32 i32 i32 i32) (result i32)) `
1194
+ * if a ` post-return ` is present, it has type ` (func (param flatten($ft)['results'])) `
1195
1195
1196
1196
When instantiating component instance ` $inst ` :
1197
1197
* Define ` $f ` to be the closure ` lambda args: canon_lift(Context($opts, $inst), $callee, $ft, args) `
@@ -1261,15 +1261,15 @@ actions after the lowering is complete.
1261
1261
1262
1262
### ` canon lower `
1263
1263
1264
- For a function :
1264
+ For a canonical definition :
1265
1265
```
1266
1266
(canon lower $callee:<funcidx> $opts:<canonopt>* (core func $f))
1267
1267
```
1268
1268
where ` $callee ` has type ` $ft ` , validation specifies:
1269
1269
* ` $f ` is given type ` flatten($ft, 'lower') `
1270
- * a ` memory ` is present if required by lifting and is a subtype of ` (memory 1) `
1271
- * a ` realloc ` is present if required by lifting and has type ` (func (param i32 i32 i32 i32) (result i32)) `
1272
- * there is no ` post-return ` in ` $opts `
1270
+ * a ` memory ` is present if required by lifting and is a subtype of ` (memory 1) `
1271
+ * a ` realloc ` is present if required by lifting and has type ` (func (param i32 i32 i32 i32) (result i32)) `
1272
+ * there is no ` post-return ` in ` $opts `
1273
1273
1274
1274
When instantiating component instance ` $inst ` :
1275
1275
* Define ` $f ` to be the closure: ` lambda args: canon_lower(Context($opts, $inst), $callee, $ft, args) `
0 commit comments