Remove instructions used by old br_table legalization
This commit is contained in:
@@ -2676,34 +2676,6 @@ impl<'a> Parser<'a> {
|
||||
table,
|
||||
}
|
||||
}
|
||||
InstructionFormat::BranchTableBase => {
|
||||
let table = self.match_jt()?;
|
||||
ctx.check_jt(table, self.loc)?;
|
||||
InstructionData::BranchTableBase { opcode, table }
|
||||
}
|
||||
InstructionFormat::BranchTableEntry => {
|
||||
let index = self.match_value("expected SSA value operand")?;
|
||||
self.match_token(Token::Comma, "expected ',' between operands")?;
|
||||
let base = self.match_value("expected SSA value operand")?;
|
||||
self.match_token(Token::Comma, "expected ',' between operands")?;
|
||||
let imm = self.match_uimm8("expected width")?;
|
||||
self.match_token(Token::Comma, "expected ',' between operands")?;
|
||||
let table = self.match_jt()?;
|
||||
ctx.check_jt(table, self.loc)?;
|
||||
InstructionData::BranchTableEntry {
|
||||
opcode,
|
||||
args: [index, base],
|
||||
imm,
|
||||
table,
|
||||
}
|
||||
}
|
||||
InstructionFormat::IndirectJump => {
|
||||
let arg = self.match_value("expected SSA value operand")?;
|
||||
self.match_token(Token::Comma, "expected ',' between operands")?;
|
||||
let table = self.match_jt()?;
|
||||
ctx.check_jt(table, self.loc)?;
|
||||
InstructionData::IndirectJump { opcode, arg, table }
|
||||
}
|
||||
InstructionFormat::TernaryImm8 => {
|
||||
let lhs = self.match_value("expected SSA value first operand")?;
|
||||
self.match_token(Token::Comma, "expected ',' between operands")?;
|
||||
|
||||
Reference in New Issue
Block a user