mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
22 lines
393 B
C
22 lines
393 B
C
|
#ifndef JAK_IR_H
|
||
|
#define JAK_IR_H
|
||
|
|
||
|
#include <string>
|
||
|
#include "CodeGenerator.h"
|
||
|
#include "goalc/regalloc/allocate.h"
|
||
|
|
||
|
class IR {
|
||
|
public:
|
||
|
virtual std::string print() = 0;
|
||
|
virtual RegAllocInstr to_rai() = 0;
|
||
|
virtual void do_codegen(CodeGenerator* gen) = 0;
|
||
|
};
|
||
|
|
||
|
class IR_Set : public IR {
|
||
|
public:
|
||
|
std::string print() override;
|
||
|
RegAllocInstr to_rai() override;
|
||
|
};
|
||
|
|
||
|
#endif // JAK_IR_H
|