mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-16 12:20:57 +00:00
24 lines
533 B
C++
24 lines
533 B
C++
#include "Core/MIPS/IR/IRInst.h"
|
|
#include "Common/x64Emitter.h"
|
|
|
|
namespace MIPSComp {
|
|
|
|
class IRToNativeInterface {
|
|
public:
|
|
virtual ~IRToNativeInterface() {}
|
|
|
|
virtual void ConvertIRToNative(const IRInst *instructions, int count, const u32 *constants) = 0;
|
|
};
|
|
|
|
|
|
class IRToX86 : public IRToNativeInterface {
|
|
public:
|
|
void SetCodeBlock(Gen::XCodeBlock *code) { code_ = code; }
|
|
virtual void ConvertIRToNative(const IRInst *instructions, int count, const u32 *constants) override;
|
|
|
|
private:
|
|
Gen::XCodeBlock *code_;
|
|
};
|
|
|
|
} // namespace
|