| 105 | using Cop0Reg = rabbitizer::Registers::Cpu::Cop0; |
| 106 | |
| 107 | std::string_view ctx_gpr_prefix(int reg) { |
| 108 | if (reg != 0) { |
| 109 | return "ctx->r"; |
| 110 | } |
| 111 | return ""; |
| 112 | } |
| 113 | |
| 114 | template <typename GeneratorType> |
| 115 | bool process_instruction(GeneratorType& generator, const N64Recomp::Context& context, const N64Recomp::Function& func, size_t func_index, const N64Recomp::FunctionStats& stats, const std::unordered_set<uint32_t>& jtbl_lw_instructions, size_t instr_index, const std::vector<rabbitizer::InstructionCpu>& instructions, std::ostream& output_file, bool indent, bool emit_link_branch, int link_branch_index, size_t reloc_index, bool& needs_link_branch, bool& is_branch_likely, bool tag_reference_relocs, std::span<std::vector<uint32_t>> static_funcs_out) { |
nothing calls this directly
no outgoing calls
no test coverage detected