MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / ctx_gpr_prefix

Function ctx_gpr_prefix

src/recompilation.cpp:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105using Cop0Reg = rabbitizer::Registers::Cpu::Cop0;
106
107std::string_view ctx_gpr_prefix(int reg) {
108 if (reg != 0) {
109 return "ctx->r";
110 }
111 return "";
112}
113
114template <typename GeneratorType>
115bool 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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected