未验证 提交 4b3d5195 编写于 作者: 王明冬 提交者: GitHub

[infrt] fix infrt script bug and function error. test=develop (#38384)

上级 fc0a50aa
......@@ -58,12 +58,13 @@ static mlir::IntegerAttr createI32Attr(mlir::OpBuilder &b, // NOLINT
return b.getIntegerAttr(b.getI32Type(), constant);
}
static mlir::ValueRange cvtValueToValueRange(const mlir::Value &operand) {
return mlir::ValueRange(operand);
static mlir::SmallVector<::mlir::Value, 4> cvtValueToValueRange(
const mlir::Value &operand) {
return mlir::SmallVector<::mlir::Value, 4>(1, operand);
}
static mlir::ValueRange concatTwoValueRange(mlir::ValueRange operand_0,
mlir::ValueRange operand_1) {
static mlir::SmallVector<::mlir::Value, 4> concatTwoValueRange(
mlir::ValueRange operand_0, mlir::ValueRange operand_1) {
mlir::SmallVector<::mlir::Value, 4> operands;
operands.append(operand_0.begin(), operand_0.end());
operands.append(operand_1.begin(), operand_1.end());
......
......@@ -132,4 +132,4 @@ function main() {
main $@
rm -rf tmp_dir
rm -rf $tmp_dir
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册