[mlir] Fix examples build

Missing two extra parameters.
This commit is contained in:
Jeff Niu 2022-12-08 21:32:26 -08:00
parent 0dc0a44132
commit 96cf183bcc
6 changed files with 12 additions and 6 deletions

View File

@ -212,7 +212,8 @@ mlir::ParseResult FuncOp::parse(mlir::OpAsmParser &parser,
return mlir::function_interface_impl::parseFunctionOp(
parser, result, /*allowVariadic=*/false,
getFunctionTypeAttrName(result.name), buildFuncType);
getFunctionTypeAttrName(result.name), buildFuncType,
getArgAttrsAttrName(result.name), getResAttrsAttrName(result.name));
}
void FuncOp::print(mlir::OpAsmPrinter &p) {

View File

@ -199,7 +199,8 @@ mlir::ParseResult FuncOp::parse(mlir::OpAsmParser &parser,
return mlir::function_interface_impl::parseFunctionOp(
parser, result, /*allowVariadic=*/false,
getFunctionTypeAttrName(result.name), buildFuncType);
getFunctionTypeAttrName(result.name), buildFuncType,
getArgAttrsAttrName(result.name), getResAttrsAttrName(result.name));
}
void FuncOp::print(mlir::OpAsmPrinter &p) {

View File

@ -288,7 +288,8 @@ mlir::ParseResult FuncOp::parse(mlir::OpAsmParser &parser,
return mlir::function_interface_impl::parseFunctionOp(
parser, result, /*allowVariadic=*/false,
getFunctionTypeAttrName(result.name), buildFuncType);
getFunctionTypeAttrName(result.name), buildFuncType,
getArgAttrsAttrName(result.name), getResAttrsAttrName(result.name));
}
void FuncOp::print(mlir::OpAsmPrinter &p) {

View File

@ -288,7 +288,8 @@ mlir::ParseResult FuncOp::parse(mlir::OpAsmParser &parser,
return mlir::function_interface_impl::parseFunctionOp(
parser, result, /*allowVariadic=*/false,
getFunctionTypeAttrName(result.name), buildFuncType);
getFunctionTypeAttrName(result.name), buildFuncType,
getArgAttrsAttrName(result.name), getResAttrsAttrName(result.name));
}
void FuncOp::print(mlir::OpAsmPrinter &p) {

View File

@ -288,7 +288,8 @@ mlir::ParseResult FuncOp::parse(mlir::OpAsmParser &parser,
return mlir::function_interface_impl::parseFunctionOp(
parser, result, /*allowVariadic=*/false,
getFunctionTypeAttrName(result.name), buildFuncType);
getFunctionTypeAttrName(result.name), buildFuncType,
getArgAttrsAttrName(result.name), getResAttrsAttrName(result.name));
}
void FuncOp::print(mlir::OpAsmPrinter &p) {

View File

@ -315,7 +315,8 @@ mlir::ParseResult FuncOp::parse(mlir::OpAsmParser &parser,
return mlir::function_interface_impl::parseFunctionOp(
parser, result, /*allowVariadic=*/false,
getFunctionTypeAttrName(result.name), buildFuncType);
getFunctionTypeAttrName(result.name), buildFuncType,
getArgAttrsAttrName(result.name), getResAttrsAttrName(result.name));
}
void FuncOp::print(mlir::OpAsmPrinter &p) {