Uses divert.apply for all instruction within binemit.
This commit is contained in:
committed by
Nicolas B. Pierron
parent
ad71715304
commit
3585ee34b0
@@ -75,13 +75,9 @@ fn gen_recipe(formats: &FormatRegistry, recipe: &EncodingRecipe, fmt: &mut Forma
|
|||||||
args += &unwrap_values(&recipe.operands_out, "out", "results", fmt);
|
args += &unwrap_values(&recipe.operands_out, "out", "results", fmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Special handling for regmove instructions. Update the register
|
// Optimization: Only update the register diversion tracker for regmove instructions.
|
||||||
// diversion tracker
|
if is_regmove {
|
||||||
match &*inst_format.name {
|
fmt.line("divert.apply(data);")
|
||||||
"RegMove" => fmt.line("divert.regmove(arg, src, dst);"),
|
|
||||||
"RegSpill" => fmt.line("divert.regspill(arg, src, dst);"),
|
|
||||||
"RegFill" => fmt.line("divert.regfill(arg, src, dst);"),
|
|
||||||
_ => {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
match &recipe.emit {
|
match &recipe.emit {
|
||||||
|
|||||||
Reference in New Issue
Block a user