Files
Ranieri 5196a6672a Refactor runtime for move speed and better code style (#140)
* feat: added guestBranchKind enum to categorize branch types
feat: added missingFunctionPolicy enum to define behaviors for missing function scenarios
refactor: added handle guest branches and report missing functions
feat lookupFunction to utilize new dispatch logic and improve error handling for unregistered functions

* fix: fix test conflict

* feat: added debug sound driver logs

* feat: emmiter for return

* feat: added recompiler reporter
feat: added strict diagnostics flag for heavy debug calls

* feat: staticc table insted of hashmap for runtime

* feat: back file to ignore

* feat: explode code across helpers and classes

* feat: update codegen test
feat: better guest nop check

* feat: fix link problem on linux

* feat: fix Segmentation fault
2026-07-04 00:43:22 -03:00

27 lines
567 B
C++

#ifndef PS2RECOMP_FUNCTION_TABLE_EMITTER_H
#define PS2RECOMP_FUNCTION_TABLE_EMITTER_H
#include <cstdint>
#include <map>
#include <string>
#include <vector>
namespace ps2recomp
{
struct Function;
class CodeGenerator;
class FunctionTableEmitter
{
public:
explicit FunctionTableEmitter(CodeGenerator &codeGenerator);
std::string emit(const std::vector<Function> &functions, const std::map<uint32_t, std::string> &stubs);
private:
CodeGenerator &m_codeGenerator;
};
}
#endif // PS2RECOMP_FUNCTION_TABLE_EMITTER_H