Skip to content

Commit

Permalink
Use func dialect in builder example
Browse files Browse the repository at this point in the history
  • Loading branch information
tbennun authored May 28, 2024
1 parent 6ffea80 commit 5dc2b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ with builder.goto_block(builder.make_block(module.region)):
x, y = builder.add_function_args(hello, [builder.F64, builder.F64], ['a', 'b'])

adder = builder.addf(x, y, builder.F64)
builder.ret([adder], [builder.F64])
builder.func.ret([adder], [builder.F64])

print(mlirfile.dump())
```
Expand Down

0 comments on commit 5dc2b35

Please sign in to comment.