Review comments

This commit is contained in:
bjorn3
2021-11-01 18:17:57 +01:00
parent 55f8f8ce05
commit 93e9bb02e4
2 changed files with 10 additions and 18 deletions

View File

@@ -946,21 +946,11 @@ fn gen_inst_builder(inst: &Instruction, format: &InstructionFormat, fmt: &mut Fo
op.kind.rust_type.to_string()
};
args.push(format!("{}: {}", op.name, t));
args_doc.push(format!(
"- {}: {}",
op.name,
op.doc()
.expect("every instruction's input operand must be documented")
));
args_doc.push(format!("- {}: {}", op.name, op.doc()));
}
for op in &inst.operands_out {
rets_doc.push(format!(
"- {}: {}",
op.name,
op.doc()
.expect("every instruction's output operand must be documented")
));
rets_doc.push(format!("- {}: {}", op.name, op.doc()));
}
let rtype = match inst.value_results.len() {