diff --git a/lib/cretonne/meta/isa/intel/recipes.py b/lib/cretonne/meta/isa/intel/recipes.py index a32d3ec8df..531e291630 100644 --- a/lib/cretonne/meta/isa/intel/recipes.py +++ b/lib/cretonne/meta/isa/intel/recipes.py @@ -477,7 +477,8 @@ fnaddr4 = TailRecipe( 'fnaddr4', FuncAddr, size=4, ins=(), outs=GPR, emit=''' PUT_OP(bits | (out_reg0 & 7), rex1(out_reg0), sink); - sink.reloc_external(RelocKind::Abs4.into(), &func.dfg.ext_funcs[func_ref].name); + sink.reloc_external(RelocKind::Abs4.into(), + &func.dfg.ext_funcs[func_ref].name); sink.put4(0); ''') @@ -486,7 +487,8 @@ fnaddr8 = TailRecipe( 'fnaddr8', FuncAddr, size=8, ins=(), outs=GPR, emit=''' PUT_OP(bits | (out_reg0 & 7), rex1(out_reg0), sink); - sink.reloc_external(RelocKind::Abs8.into(), &func.dfg.ext_funcs[func_ref].name); + sink.reloc_external(RelocKind::Abs8.into(), + &func.dfg.ext_funcs[func_ref].name); sink.put8(0); ''') @@ -495,7 +497,8 @@ allones_fnaddr4 = TailRecipe( 'allones_fnaddr4', FuncAddr, size=4, ins=(), outs=GPR, emit=''' PUT_OP(bits | (out_reg0 & 7), rex1(out_reg0), sink); - sink.reloc_external(RelocKind::Abs4.into(), &func.dfg.ext_funcs[func_ref].name); + sink.reloc_external(RelocKind::Abs4.into(), + &func.dfg.ext_funcs[func_ref].name); // Write the immediate as `!0` for the benefit of BaldrMonkey. sink.put4(!0); ''') @@ -505,7 +508,8 @@ allones_fnaddr8 = TailRecipe( 'allones_fnaddr8', FuncAddr, size=8, ins=(), outs=GPR, emit=''' PUT_OP(bits | (out_reg0 & 7), rex1(out_reg0), sink); - sink.reloc_external(RelocKind::Abs8.into(), &func.dfg.ext_funcs[func_ref].name); + sink.reloc_external(RelocKind::Abs8.into(), + &func.dfg.ext_funcs[func_ref].name); // Write the immediate as `!0` for the benefit of BaldrMonkey. sink.put8(!0); ''') @@ -515,7 +519,8 @@ gvaddr4 = TailRecipe( 'gvaddr4', UnaryGlobalVar, size=4, ins=(), outs=GPR, emit=''' PUT_OP(bits | (out_reg0 & 7), rex1(out_reg0), sink); - sink.reloc_external(RelocKind::Abs4.into(), &func.global_vars[global_var].symbol_name()); + sink.reloc_external(RelocKind::Abs4.into(), + &func.global_vars[global_var].symbol_name()); sink.put4(0); ''') @@ -524,7 +529,8 @@ gvaddr8 = TailRecipe( 'gvaddr8', UnaryGlobalVar, size=8, ins=(), outs=GPR, emit=''' PUT_OP(bits | (out_reg0 & 7), rex1(out_reg0), sink); - sink.reloc_external(RelocKind::Abs8.into(), &func.global_vars[global_var].symbol_name()); + sink.reloc_external(RelocKind::Abs8.into(), + &func.global_vars[global_var].symbol_name()); sink.put8(0); ''') @@ -798,7 +804,8 @@ call_id = TailRecipe( 'call_id', Call, size=4, ins=(), outs=(), emit=''' PUT_OP(bits, BASE_REX, sink); - sink.reloc_external(RelocKind::PCRel4.into(), &func.dfg.ext_funcs[func_ref].name); + sink.reloc_external(RelocKind::PCRel4.into(), + &func.dfg.ext_funcs[func_ref].name); sink.put4(0); ''') diff --git a/lib/cretonne/meta/isa/riscv/recipes.py b/lib/cretonne/meta/isa/riscv/recipes.py index bfe30a0025..6874f95c36 100644 --- a/lib/cretonne/meta/isa/riscv/recipes.py +++ b/lib/cretonne/meta/isa/riscv/recipes.py @@ -183,7 +183,8 @@ UJ = EncRecipe( UJcall = EncRecipe( 'UJcall', Call, size=4, ins=(), outs=(), emit=''' - sink.reloc_external(RelocKind::Call.into(), &func.dfg.ext_funcs[func_ref].name); + sink.reloc_external(RelocKind::Call.into(), + &func.dfg.ext_funcs[func_ref].name); // rd=%x1 is the standard link register. put_uj(bits, 0, 1, sink); ''')