Simplify "unimplemented" operation error message (#5429)

Now that all operations are implemented in ISLE, simplify Rust
code by providing a generic error message if any operation is
not implemented in ISLE.  Done across all targets.
This commit is contained in:
Ulrich Weigand
2022-12-14 00:22:49 +01:00
committed by GitHub
parent eba6b76511
commit 299be327d5
4 changed files with 21 additions and 647 deletions

View File

@@ -55,8 +55,9 @@ impl LowerBackend for Riscv64Backend {
assert!(temp_regs.len() == 0);
return Ok(());
}
unreachable!(
"implemented in ISLE: branch = `{}`",
"not implemented in ISLE: branch = `{}`",
ctx.dfg().display_inst(branches[0]),
);
}