PPCTables: Remove prefixed underscores from parameter names

This commit is contained in:
Lioncash 2018-03-24 16:42:59 -04:00
parent 2381aeecc3
commit 8a7abd72b4
2 changed files with 34 additions and 34 deletions

View File

@ -43,25 +43,25 @@ const std::array<u64, 16> m_crTable = {{
namespace PPCTables namespace PPCTables
{ {
GekkoOPInfo* GetOpInfo(UGeckoInstruction _inst) GekkoOPInfo* GetOpInfo(UGeckoInstruction inst)
{ {
GekkoOPInfo* info = m_infoTable[_inst.OPCD]; const GekkoOPInfo* info = m_infoTable[inst.OPCD];
if (info->type == OpType::Subtable) if (info->type == OpType::Subtable)
{ {
switch (_inst.OPCD) switch (inst.OPCD)
{ {
case 4: case 4:
return m_infoTable4[_inst.SUBOP10]; return m_infoTable4[inst.SUBOP10];
case 19: case 19:
return m_infoTable19[_inst.SUBOP10]; return m_infoTable19[inst.SUBOP10];
case 31: case 31:
return m_infoTable31[_inst.SUBOP10]; return m_infoTable31[inst.SUBOP10];
case 59: case 59:
return m_infoTable59[_inst.SUBOP5]; return m_infoTable59[inst.SUBOP5];
case 63: case 63:
return m_infoTable63[_inst.SUBOP10]; return m_infoTable63[inst.SUBOP10];
default: default:
ASSERT_MSG(POWERPC, 0, "GetOpInfo - invalid subtable op %08x @ %08x", _inst.hex, PC); ASSERT_MSG(POWERPC, 0, "GetOpInfo - invalid subtable op %08x @ %08x", inst.hex, PC);
return nullptr; return nullptr;
} }
} }
@ -69,32 +69,32 @@ GekkoOPInfo* GetOpInfo(UGeckoInstruction _inst)
{ {
if (info->type == OpType::Invalid) if (info->type == OpType::Invalid)
{ {
ASSERT_MSG(POWERPC, 0, "GetOpInfo - invalid op %08x @ %08x", _inst.hex, PC); ASSERT_MSG(POWERPC, 0, "GetOpInfo - invalid op %08x @ %08x", inst.hex, PC);
return nullptr; return nullptr;
} }
return m_infoTable[_inst.OPCD]; return m_infoTable[inst.OPCD];
} }
} }
Interpreter::Instruction GetInterpreterOp(UGeckoInstruction _inst) Interpreter::Instruction GetInterpreterOp(UGeckoInstruction inst)
{ {
const GekkoOPInfo* info = m_infoTable[_inst.OPCD]; const GekkoOPInfo* info = m_infoTable[inst.OPCD];
if (info->type == OpType::Subtable) if (info->type == OpType::Subtable)
{ {
switch (_inst.OPCD) switch (inst.OPCD)
{ {
case 4: case 4:
return Interpreter::m_op_table4[_inst.SUBOP10]; return Interpreter::m_op_table4[inst.SUBOP10];
case 19: case 19:
return Interpreter::m_op_table19[_inst.SUBOP10]; return Interpreter::m_op_table19[inst.SUBOP10];
case 31: case 31:
return Interpreter::m_op_table31[_inst.SUBOP10]; return Interpreter::m_op_table31[inst.SUBOP10];
case 59: case 59:
return Interpreter::m_op_table59[_inst.SUBOP5]; return Interpreter::m_op_table59[inst.SUBOP5];
case 63: case 63:
return Interpreter::m_op_table63[_inst.SUBOP10]; return Interpreter::m_op_table63[inst.SUBOP10];
default: default:
ASSERT_MSG(POWERPC, 0, "GetInterpreterOp - invalid subtable op %08x @ %08x", _inst.hex, PC); ASSERT_MSG(POWERPC, 0, "GetInterpreterOp - invalid subtable op %08x @ %08x", inst.hex, PC);
return nullptr; return nullptr;
} }
} }
@ -102,10 +102,10 @@ Interpreter::Instruction GetInterpreterOp(UGeckoInstruction _inst)
{ {
if (info->type == OpType::Invalid) if (info->type == OpType::Invalid)
{ {
ASSERT_MSG(POWERPC, 0, "GetInterpreterOp - invalid op %08x @ %08x", _inst.hex, PC); ASSERT_MSG(POWERPC, 0, "GetInterpreterOp - invalid op %08x @ %08x", inst.hex, PC);
return nullptr; return nullptr;
} }
return Interpreter::m_op_table[_inst.OPCD]; return Interpreter::m_op_table[inst.OPCD];
} }
} }
@ -126,21 +126,21 @@ std::vector<u32> rsplocations;
} }
#endif #endif
const char* GetInstructionName(UGeckoInstruction _inst) const char* GetInstructionName(UGeckoInstruction inst)
{ {
const GekkoOPInfo* info = GetOpInfo(_inst); const GekkoOPInfo* info = GetOpInfo(inst);
return info ? info->opname : nullptr; return info ? info->opname : nullptr;
} }
bool IsValidInstruction(UGeckoInstruction _inst) bool IsValidInstruction(UGeckoInstruction inst)
{ {
const GekkoOPInfo* info = GetOpInfo(_inst); const GekkoOPInfo* info = GetOpInfo(inst);
return info != nullptr && info->type != OpType::Unknown; return info != nullptr && info->type != OpType::Unknown;
} }
void CountInstruction(UGeckoInstruction _inst) void CountInstruction(UGeckoInstruction inst)
{ {
GekkoOPInfo* info = GetOpInfo(_inst); GekkoOPInfo* info = GetOpInfo(inst);
if (info) if (info)
{ {
info->runCount++; info->runCount++;

View File

@ -107,14 +107,14 @@ extern size_t m_numInstructions;
namespace PPCTables namespace PPCTables
{ {
GekkoOPInfo* GetOpInfo(UGeckoInstruction _inst); GekkoOPInfo* GetOpInfo(UGeckoInstruction inst);
Interpreter::Instruction GetInterpreterOp(UGeckoInstruction _inst); Interpreter::Instruction GetInterpreterOp(UGeckoInstruction inst);
bool IsValidInstruction(UGeckoInstruction _instCode); bool IsValidInstruction(UGeckoInstruction inst);
bool UsesFPU(UGeckoInstruction _inst); bool UsesFPU(UGeckoInstruction inst);
void CountInstruction(UGeckoInstruction _inst); void CountInstruction(UGeckoInstruction inst);
void PrintInstructionRunCounts(); void PrintInstructionRunCounts();
void LogCompiledInstructions(); void LogCompiledInstructions();
const char* GetInstructionName(UGeckoInstruction _inst); const char* GetInstructionName(UGeckoInstruction inst);
} // namespace PPCTables } // namespace PPCTables