"src/nni_manager/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "92d32dcf47279e2bc0911a7f326bda7b40cf89d1"
Commit a4d40fd0 authored by Paul's avatar Paul
Browse files

Use func dialect

parent 34a7c072
...@@ -402,9 +402,9 @@ struct mlir_program ...@@ -402,9 +402,9 @@ struct mlir_program
MlirBlock result = fbody.get(); MlirBlock result = fbody.get();
mlirRegionAppendOwnedBlock(region.get(), fbody.release()); mlirRegionAppendOwnedBlock(region.get(), fbody.release());
auto ops = create_operation_state("builtin.func"); auto ops = create_operation_state("func.func");
ops.add_attributes( ops.add_attributes(
{{"type", make_function_type(inputs, outputs)}, {"sym_name", std::string("main")}}); {{"function_type", make_function_type(inputs, outputs)}, {"sym_name", std::string("main")}, {"kernel", std::string("mixr")}});
ops.add_region(std::move(region)); ops.add_region(std::move(region));
insert(body, std::move(ops)); insert(body, std::move(ops));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment