Remove clobbers_all_regs

This commit is contained in:
bjorn3
2021-10-12 14:54:39 +02:00
parent e8b18b58a1
commit 99114547be
2 changed files with 0 additions and 12 deletions

View File

@@ -86,8 +86,6 @@ pub(crate) struct InstructionContent {
pub other_side_effects: bool,
/// Does this instruction write to CPU flags?
pub writes_cpu_flags: bool,
/// Should this opcode be considered to clobber all live registers, during regalloc?
pub clobbers_all_regs: bool,
}
impl InstructionContent {
@@ -150,7 +148,6 @@ pub(crate) struct InstructionBuilder {
can_store: bool,
can_trap: bool,
other_side_effects: bool,
clobbers_all_regs: bool,
}
impl InstructionBuilder {
@@ -172,7 +169,6 @@ impl InstructionBuilder {
can_store: false,
can_trap: false,
other_side_effects: false,
clobbers_all_regs: false,
}
}
@@ -298,7 +294,6 @@ impl InstructionBuilder {
can_trap: self.can_trap,
other_side_effects: self.other_side_effects,
writes_cpu_flags,
clobbers_all_regs: self.clobbers_all_regs,
})
}
}

View File

@@ -524,13 +524,6 @@ fn gen_opcodes(all_inst: &AllInstructions, fmt: &mut Formatter) {
"Does this instruction write to CPU flags?",
fmt,
);
gen_bool_accessor(
all_inst,
|inst| inst.clobbers_all_regs,
"clobbers_all_regs",
"Should this opcode be considered to clobber all the registers, during regalloc?",
fmt,
);
});
fmt.line("}");
fmt.empty_line();