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

Method emit_jtbl_addend_declaration

src/cgenerator.cpp:441–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441void N64Recomp::CGenerator::emit_jtbl_addend_declaration(const JumpTable& jtbl, int reg) const {
442 std::string jump_variable = fmt::format("jr_addend_{:08X}", jtbl.jr_vram);
443 fmt::print(output_file, "gpr {} = {};\n", jump_variable, gpr_to_string(reg));
444}
445
446void N64Recomp::CGenerator::emit_branch_condition(const ConditionalBranchOp& op, const InstructionContext& ctx) const {
447 // Thread local variables to prevent allocations when possible.

Callers 1

process_instructionFunction · 0.45

Calls 1

gpr_to_stringFunction · 0.85

Tested by

no test coverage detected