[meta] Make Instruction name/doc Strings so they can be automatically generated;

This commit is contained in:
Benjamin Bouvier
2019-04-30 18:14:40 +02:00
parent 22a6823496
commit feb90e376a
3 changed files with 15 additions and 14 deletions

View File

@@ -241,7 +241,7 @@ fn emit_runtime_typecheck<'a, 'b>(
/// Determine if `node` represents one of the value splitting instructions: `isplit` or `vsplit.
/// These instructions are lowered specially by the `legalize::split` module.
fn is_value_split(def: &Def) -> bool {
let name = def.apply.inst.name;
let name = &def.apply.inst.name;
name == "isplit" || name == "vsplit"
}