Remove clobbers_all_regs
This commit is contained in:
@@ -86,8 +86,6 @@ pub(crate) struct InstructionContent {
|
|||||||
pub other_side_effects: bool,
|
pub other_side_effects: bool,
|
||||||
/// Does this instruction write to CPU flags?
|
/// Does this instruction write to CPU flags?
|
||||||
pub writes_cpu_flags: bool,
|
pub writes_cpu_flags: bool,
|
||||||
/// Should this opcode be considered to clobber all live registers, during regalloc?
|
|
||||||
pub clobbers_all_regs: bool,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl InstructionContent {
|
impl InstructionContent {
|
||||||
@@ -150,7 +148,6 @@ pub(crate) struct InstructionBuilder {
|
|||||||
can_store: bool,
|
can_store: bool,
|
||||||
can_trap: bool,
|
can_trap: bool,
|
||||||
other_side_effects: bool,
|
other_side_effects: bool,
|
||||||
clobbers_all_regs: bool,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl InstructionBuilder {
|
impl InstructionBuilder {
|
||||||
@@ -172,7 +169,6 @@ impl InstructionBuilder {
|
|||||||
can_store: false,
|
can_store: false,
|
||||||
can_trap: false,
|
can_trap: false,
|
||||||
other_side_effects: false,
|
other_side_effects: false,
|
||||||
clobbers_all_regs: false,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -298,7 +294,6 @@ impl InstructionBuilder {
|
|||||||
can_trap: self.can_trap,
|
can_trap: self.can_trap,
|
||||||
other_side_effects: self.other_side_effects,
|
other_side_effects: self.other_side_effects,
|
||||||
writes_cpu_flags,
|
writes_cpu_flags,
|
||||||
clobbers_all_regs: self.clobbers_all_regs,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -524,13 +524,6 @@ fn gen_opcodes(all_inst: &AllInstructions, fmt: &mut Formatter) {
|
|||||||
"Does this instruction write to CPU flags?",
|
"Does this instruction write to CPU flags?",
|
||||||
fmt,
|
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.line("}");
|
||||||
fmt.empty_line();
|
fmt.empty_line();
|
||||||
|
|||||||
Reference in New Issue
Block a user