PPU/LLVM: Rename ProcessExecutionTrace to better reflect what it does.

This commit is contained in:
Vincent Lejeune 2015-09-05 00:28:22 +02:00
parent 359258c3d3
commit 667cb64c29
2 changed files with 5 additions and 5 deletions

View File

@ -344,7 +344,7 @@ void RecompilationEngine::Task() {
if (!m_current_execution_traces.empty()) {
for (u32 address : m_current_execution_traces)
work_done_this_iteration |= ProcessExecutionTrace(address);
work_done_this_iteration |= IncreaseHitCounterAndBuild(address);
}
if (!work_done_this_iteration) {
@ -374,7 +374,7 @@ void RecompilationEngine::Task() {
s_the_instance = nullptr; // Can cause deadlock if this is the last instance. Need to fix this.
}
bool RecompilationEngine::ProcessExecutionTrace(u32 address) {
bool RecompilationEngine::IncreaseHitCounterAndBuild(u32 address) {
auto It = m_block_table.find(address);
if (It == m_block_table.end())
It = m_block_table.emplace(address, BlockEntry(address)).first;

View File

@ -890,9 +890,9 @@ namespace ppu_recompiler_llvm {
RecompilationEngine & operator = (const RecompilationEngine & other) = delete;
RecompilationEngine & operator = (RecompilationEngine && other) = delete;
/// Process an execution trace.
/// Returns true if a block was compiled
bool ProcessExecutionTrace(u32);
/// Increase usage counter for block starting at addr and compile it if threshold was reached.
/// Returns true if block was compiled
bool IncreaseHitCounterAndBuild(u32 addr);
/**
* Analyse block to get useful info (function called, has indirect branch...)