@@ -389,17 +389,17 @@ def EmitC_ExpressionOp : EmitC_Op<"expression",
389
389
390
390
As the operation is to be emitted as a C expression, the operations within
391
391
its body must form a single Def-Use tree of emitc ops whose result is
392
- yielded by a terminating `yield`.
392
+ yielded by a terminating `emitc. yield`.
393
393
394
394
Example:
395
395
396
396
```mlir
397
- %r = emitc.expression : () -> i32 {
397
+ %r = emitc.expression : i32 {
398
398
%0 = emitc.add %a, %b : (i32, i32) -> i32
399
- %1 = emitc.call "foo"(%0) : () -> i32
399
+ %1 = emitc.call_opaque "foo"(%0) : (i32 ) -> i32
400
400
%2 = emitc.add %c, %d : (i32, i32) -> i32
401
401
%3 = emitc.mul %1, %2 : (i32, i32) -> i32
402
- yield %3
402
+ emitc. yield %3 : i32
403
403
}
404
404
```
405
405
@@ -409,9 +409,9 @@ def EmitC_ExpressionOp : EmitC_Op<"expression",
409
409
int32_t v7 = foo(v1 + v2) * (v3 + v4);
410
410
```
411
411
412
- The operations allowed within expression body are emitc.add, emitc.apply ,
413
- emitc.call, emitc.cast, emitc.cmp, emitc.div, emitc.mul, emitc.rem and
414
- emitc.sub.
412
+ The operations allowed within expression body are ` emitc.add` ,
413
+ ` emitc.apply`, ` emitc.call_opaque`, ` emitc.cast`, ` emitc.cmp`, ` emitc.div`,
414
+ ` emitc.mul`, `emitc.rem`, and `emitc. sub` .
415
415
416
416
When specified, the optional `do_not_inline` indicates that the expression is
417
417
to be emitted as seen above, i.e. as the rhs of an EmitC SSA value
0 commit comments