From 5dc2b3570b72d95d7bca49569f9e10dbf84a5c40 Mon Sep 17 00:00:00 2001 From: Tal Ben-Nun Date: Tue, 28 May 2024 19:52:18 +0200 Subject: [PATCH] Use func dialect in builder example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b7f35f7..a60c05a 100644 --- a/README.md +++ b/README.md @@ -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()) ```